discogs-authentication
Skill0 starsChanged 5 months agoMITView on GitHub
Reference for authenticating with the Discogs API (api.discogs.com). Make sure to use this skill whenever the task touches Discogs auth, credentials, tokens, or signed requests — even if "authentication" isn't said outright. Triggers include: choosing between a User (personal access) token, a Consumer Key/Secret pair (Discogs Auth), or the full OAuth 1.0a flow; building or fixing the Authorization header; wiring up the oauth/request_token, oauth/authorize, oauth/access_token or oauth/identity endpoints; getting 401/403 or "authentication failed" from Discogs; or troubleshooting why image URLs, the higher rate-limit tier, or per-user resources (marketplace orders, a user's collection or wantlist, private inventory fields) are missing from responses.
In this repository10 other files it gives its agents.
- discogs-databaseSkill
- discogs-imagesSkill
- discogs-inventory-exportSkill
- discogs-inventory-uploadSkill
- discogs-marketplaceSkill
- discogs-overviewSkill
- discogs-user-collectionSkill
- discogs-user-identitySkill
- discogs-user-listsSkill
- discogs-user-wantlistSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
Always send a unique User-Agent.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Discogs API — Authentication
Discogs offers three ways to authenticate. Pick based on what the request needs.
Quick decision
| Method | Identifies a user? | Image URLs + high rate limit? | Use when |
| No auth | No | No | Public, low-volume reads only |
| Discogs Auth — Consumer Key/Secret | No | Yes | 3rd-party app reads that don't need a specific user |
| Discogs Auth — User token | Yes (token holder only) | Yes | Accessing your own account (simplest secure option) |
| OAuth 1.0a | Yes (any user, on their behalf) | Yes | App acting for other users' accounts |
Per-user resources — marketplace orders, private inventory fields, private collections — require a token or OAuth; a bare Consumer Key/Secret will not grant them.
Discogs Auth (simple)
Send credentials in the query string or an Authorization header (HTTPS required):
curl "https://api.discogs.com/database/search?q=Nirvana&token=abcxyz123456"
curl "https://api.discogs.com/database/search?q=Nirvana&key=foo123&secret=bar456"
curl "https://api.discogs.com/database/search?q=Nirvana" \
-H "Authorization: Discogs token=abcxyz123456"
curl "https://api.discogs.com/database/search?q=Nirvana" \
-H "Authorization: Discogs key=foo123, secret=bar456"OAuth 1.0a (act on behalf of users)
Three server-side endpoints; PLAINTEXT signature recommended over HTTPS
(oauth_signature = consumer_secret&). Flow:
- Get Consumer Key/Secret from Developer Settings.
GET https://api.discogs.com/oauth/request_token→ request token + secret.- Redirect user to
https://discogs.com/oauth/authorize?oauth_token=…→ verifier (15 min TTL). POST https://api.discogs.com/oauth/access_token→ access token + secret (do not expire; store them).- Sign every request with the access token/secret. Test with
GET https://api.discogs.com/oauth/identity.
Always send a unique User-Agent. Invalid/expired OAuth requests return 400 Bad Request.
Full reference
See reference.md for the complete text: registration steps, endpoint URLs, per-step request headers, response fields, and the full credentials comparison.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

