agentleFS
thesawdawgthesawdawg/agent-skills/rest-graphql-debug/SKILL.md

rest-graphql-debug

Skill2 starsChanged 57 days agoMITView on GitHub

Debug REST/GraphQL API failures — status codes, auth, TLS, schema drift, pagination — by isolating the failing layer before guessing at a fix. Use when an API returns an unexpected status or body, auth fails after a token refresh, something works in Postman but fails in code, or you're reviewing/writing API integration tests.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Use an available HTTP tool or shell with curl.

    line 10
  2. Distinctive:

    Do not install dependencies into the user's environment implicitly.

    line 12
  3. Distinctive:

    Read only the relevant lookup:

    line 24
  4. Distinctive:

    Use explicit timeouts. Redact tokens, cookies, personal data, and secrets from all shared evidence.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

REST and GraphQL debugging

Diagnose the smallest reproducible failing request. Confirm target, expected behavior, credentials source, and whether state-changing requests are authorized. Use an available HTTP tool or shell with curl. Python examples require the optional requests package; check before use and prefer curl if unavailable. Do not install dependencies into the user's environment implicitly.

  1. Capture the failing request, status, headers, request ID, and sanitized body.
  2. Work outward-in: connectivity → timeouts → TLS → authentication → request format → response parsing → business semantics. Change one variable at a time.
  3. For GraphQL, inspect errors even on HTTP 200. A transport success does not establish a successful operation.
  4. Reproduce a fix and verify failure cases, pagination, or idempotency where relevant. Do not retry state-changing requests without establishing safety.
  5. Report observed vs expected behavior, sanitized repro, root cause confidence, proposed fix, and tests run/not run. Never expose credentials in logs or chat.

Read only the relevant lookup:

  • Quickstart: curl and optional Python examples.
  • Layered diagnosis: connectivity through semantics.
  • Status playbook: 401/403/404/409/422/429/5xx.
  • Contracts and regression: pagination, schemas, correlation IDs, and test examples.
  • Credential handling: read before handling secrets.

Use explicit timeouts. Redact tokens, cookies, personal data, and secrets from all shared evidence. Preserve TLS validation; diagnostic bypasses do not count as a production fix.

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.