agentleFS
NikolasgrizliNikolasgrizli/discogs-api-skills/discogs-authentication/SKILL.md

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.

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
  1. Very specific:

    Always send a unique User-Agent.

    line 58

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Discogs API — Authentication

Discogs offers three ways to authenticate. Pick based on what the request needs.

Quick decision

MethodIdentifies a user?Image URLs + high rate limit?Use when
No authNoNoPublic, low-volume reads only
Discogs Auth — Consumer Key/SecretNoYes3rd-party app reads that don't need a specific user
Discogs Auth — User tokenYes (token holder only)YesAccessing your own account (simplest secure option)
OAuth 1.0aYes (any user, on their behalf)YesApp 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:

  1. Get Consumer Key/Secret from Developer Settings.
  2. GET https://api.discogs.com/oauth/request_token → request token + secret.
  3. Redirect user to https://discogs.com/oauth/authorize?oauth_token=… → verifier (15 min TTL).
  4. POST https://api.discogs.com/oauth/access_token → access token + secret (do not expire; store them).
  5. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.