agentleFS
QadrillionQadrillion/qadrillion-agent/.cursor/skills/qa-api/SKILL.md

qa-api

Skill3 starsChanged 2 months agoMITView on GitHub

Author, execute, diagnose and maintain API or service-contract tests during QA. Use for request/response, persisted state, asynchronous completion and integration behavior.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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 through qa; load qa-workflow and .cursor/rules/test-automation.mdc.

    line 8
  2. Distinctive:

    Create executable tests before calling the plan covered.

    line 29
  3. Distinctive:

    Keep fixture creation and cleanup in the runner's lifecycle.

    line 64

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

API execution

Use through qa; load qa-workflow and .cursor/rules/test-automation.mdc. Those own execution evidence and verdicts. This skill supplies API-specific work, using the team's existing language, client, collection or runner.

Prepare the contract and fixtures

  1. Resolve the deployed specification, relevant requirements and actual client version. Record base URL, API/schema version, authentication mechanism and observable state boundary. A generated schema describes structure; domain requirements supply constraints and business outcomes it may omit.
  2. Map operations to actors, inputs, transitions and observations: request → response → persisted/read-back state or asynchronous completion. Identify an independent expected value for each assertion. Verify which omissions, nulls, coercions, defaults, formats, limits and unknown fields the contract permits.
  3. Allocate run-specific users, resources and idempotency keys. Prepare teardown that works after partial creation and records unresolved leftovers. Establish the authorized target identity before sending mutations. Read access alone does not establish a safe write target.

Author a useful slice

Create executable tests before calling the plan covered. Use data-driven cases for equivalence partitions and limits; separate scenarios when their state or failure diagnosis differs.

RiskTest and observable assertion
Contract driftMethod/path/media type, required fields, types, enum/length/range boundaries and documented error shape; assert values and absence of forbidden fields as well as schema.
Invalid inputMissing versus null, below/at/above limit, malformed body and unsupported format; assert agreed rejection and unchanged business state.
AuthorizationOwn-object positive control and another fixture actor's object/action; use qa-security when access control is in scope.
PersistenceCreate/update then read through the independent public observation path; verify exact fields, ownership, totals and applicable invariant.
Retry/idempotencySame key and payload twice, conflicting payload under one key, and a fresh key; assert resource/side-effect count under the actual contract. Idempotent effect need not mean identical responses.
Async workCapture operation identity; poll documented status to a terminal state within its agreed deadline, then assert output and business state. Test failure/cancellation only where specified.
Pagination/concurrencyControlled dataset with boundaries and ties; prove no duplicate/missing records under the promised ordering/snapshot model. For a race, synchronize competing actions and check the final invariant.

Choose only applicable rows. No declared async deadline means the observation can be incomplete without proving a timeout defect. Do not turn eventual consistency into an arbitrary immediate read assertion.

Run and diagnose

Inspect the real test-discovery command and run a small positive control first. Execute the selected suite with transport timeouts and bounded response capture; preserve semantic HTTP errors for assertions instead of treating every non-2xx as a client exception. Retain sanitized requests, responses, correlation IDs and read-back evidence with the shared run identity.

On failure, compare the request actually sent with the contract. Distinguish serialization/authentication/setup problems from response, state or completion failures using a minimal request and correlated logs when available. A missing log is an observation gap. If a server accepted a write before a transport error, reconcile state before repeating it. Keep test corrections separate from product corrections; changing an oracle needs requirement evidence.

Maintain

Keep fixture creation and cleanup in the runner's lifecycle; assertions belong at the public contract boundary. Update tests alongside versioned contract changes, preserving valid older-client cases when compatibility is promised. Turn a reproduced defect into its smallest stable regression and retain one real integration path when other checks use doubles. Recheck actor isolation and stale IDs when parallelizing a suite.

For the disposable local service or Python stdlib authoring, read the HTTP recipe. It is a reference exercise, not a required team stack. General async/idempotency rationale: RFC 9110, sections 9.2.2 and 15.3.3.

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.