api-client
Skill4 starsChanged 6 months agoMITView on GitHub
Triggers when the agent modifies backend API routes, Pydantic models, or request/response types; when frontend TypeScript shows type errors against api-client/; or when openapi.json or schema.d.ts need regeneration. Covers the openapi-typescript generation workflow.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- nek1987/auto-agent-harnesstheir own version, first seen Oct 11, 2026
- roborracle/agent-workflow-kittheir own version, first seen Aug 11, 2026
- leonardoaraujosantos/my_ai_skillstheir own version, first seen Jul 6, 2026
- microsoft/TypeScripttheir own version, first seen Jul 26, 2024
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- microsoft/TypeScript★ 112ksame name
- nek1987/auto-agent-harness★ 4same name
- leonardoaraujosantos/my_ai_skills★ 1same name
- roborracle/agent-workflow-kit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adr-workflowSkill
- agent-frameworkSkill
- databaseSkill
- releaseSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
No running backend needed — uses the committed openapi.json
- Distinctive: line 21
After ANY backend API schema change (models, endpoints, request/response types)
- Very specific: line 22
After adding/removing/modifying route decorators
- Distinctive: line 23
After changing Pydantic model fields
- Very specific: line 26
Commit both openapi.json and schema.d.ts together (commit-and-verify pattern)
- Very specific: line 27
Run cd frontend && bun run build to verify TypeScript compiles
- Very specific: line 28
Run cd frontend && bun test:run to verify tests pass
- Very specific: line 31
All API calls go through frontend/src/services/api.ts — never import from api-client/ directly
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
API Client Workflow
Key Facts
- Tool:
openapi-typescript(NOT openapi-generator, NOT Java) - Output:
frontend/src/api-client/schema.d.ts(committed to git) - Schema source:
frontend/openapi.json(committed to git) - No running backend needed — uses the committed
openapi.json - Frontend uses
openapi-fetchSDK client viafrontend/src/services/api.ts
Generate
./scripts/generate-client.shWhen to Regenerate
- After ANY backend API schema change (models, endpoints, request/response types)
- After adding/removing/modifying route decorators
- After changing Pydantic model fields
After Regeneration
- Commit both
openapi.jsonandschema.d.tstogether (commit-and-verify pattern) - Run
cd frontend && bun run buildto verify TypeScript compiles - Run
cd frontend && bun test:runto verify tests pass
Usage Rules
- All API calls go through
frontend/src/services/api.ts— never import fromapi-client/directly - The
api.tsservice wrapsopenapi-fetchwith typed helpers
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.

