add-endpoint
Skill0 starsChanged 51 days agoMITView on GitHub
Add an endpoint or use case to an existing API module following the action pattern. Use when the user asks for a new route, operation, or business rule on an existing resource.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- nanotaboada/python-samples-fastapi-restfultheir own version, first seen Nov 1, 2026
- nikzlabs/shipittheir own version, first seen Oct 28, 2026
- KevinArce/create-bun-apitheir own version, first seen Oct 25, 2026
- Ssoulisack/claude-skillstheir own version, first seen Oct 15, 2026
- Azure/azure-sdk-toolstheir own version, first seen Oct 13, 2026
- Azure-Samples/art-voice-agent-acceleratortheir own version, first seen Oct 8, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- nanotaboada/python-samples-fastapi-restful★ 141same name
- Azure/azure-sdk-tools★ 134same name
- atherio-danp/cde-dotnetcc★ 109same name
- Azure-Samples/art-voice-agent-accelerator★ 74same name
- paulieb89/property-shared★ 16same name
- KevinArce/create-bun-api★ 11same name
- nikzlabs/shipit★ 9same name
- aiqadam/qadam-flow★ 5same name
- jpoindexter/theft-kit★ 1same name
- Ssoulisack/claude-skills★ 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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/000-project.mdcCursor rule
- .cursor/rules/010-typescript.mdcCursor rule
- .cursor/rules/020-api.mdcCursor rule
- .cursor/rules/030-web.mdcCursor rule
- .cursor/rules/040-database.mdcCursor rule
- .cursor/rules/050-worker.mdcCursor rule
- .cursor/rules/060-testing.mdcCursor rule
- llms.txtllms.txt
- db-migrationSkill
- new-moduleSkill
- verifySkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Read the module folder (apps/api/src/modules/<feature>/) and its integration test first.
- Very specific: line 10
Error codes: add each expected failure to ERROR_CODES, then its status in apps/api/src/shared/errors/error-catalog.ts and copy in …
- Distinctive: line 11
Repository: add the query, executor first, owner-scoped.
- Very specific: line 15
Run the verify skill for @groundwork/shared and @groundwork/api (and @groundwork/web if copy changed).
“Common” is measured: kept by at least 6 in 10 of the 10 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
Add an endpoint
- Read the module folder (
apps/api/src/modules/<feature>/) and its integration test first. - Contract in
packages/shared/src/<feature>.ts: request schema (normalizing input) and responsestrictObject. Rebuild shared. - Error codes: add each expected failure to
ERROR_CODES, then its status inapps/api/src/shared/errors/error-catalog.tsand copy inapps/web/src/lib/errors.ts. - Repository: add the query, executor first, owner-scoped.
- Action in
actions/<verb>-<noun>.action.ts:@Injectable(), oneexecute(), returnsResult<T, ErrorCode>withok()/fail(). Wrap multi-statement writes indb.transaction(); register side effects withregisterAfterCommitHook. - Controller: DTO from the shared schema,
@ZodResponse({ status, type }),@ApiErrors(...), andthrow new DomainException(result.error)on failure. Register the action in the moduleproviders. - Tests in
apps/api/test/integration/<feature>.test.ts: happy path, each error code, ownership, validation, and a database assertion for every mutation. Parse responses with the shared schema. - Run the
verifyskill for@groundwork/sharedand@groundwork/api(and@groundwork/webif copy changed).
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.

