add-feature
Skill0 starsChanged 5 months agoMITView on GitHub
Use when adding a new resource or use case to this FastAPI hexagonal template. Drives the domain-outward runbook that mirrors the Task slice and ends at a green validation loop.
27 other projects use a version of this.
Adopted by
Most recently taken up by
- kunchalavikram1427/better-todo-apptheir own version, first seen Nov 22, 2026
- Crypto69/claude-skillstheir own version, first seen Nov 16, 2026
- NVIDIA/nvcftheir own version, first seen Nov 15, 2026
- SHREESHMAN/lineupifytheir own version, first seen Nov 15, 2026
- subhashkhileri/agntreetheir own version, first seen Oct 25, 2026
- WhatIfWeDigDeeper/claude-code-courseratheir own version, first seen Oct 20, 2026
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- fullstackhero/dotnet-starter-kit★ 6.9ksame name
- CliMA/Oceananigans.jl★ 1.5ksame name
- OpusGameLabs/game-creator★ 360same name
- microsoft/SqlScriptDOM★ 284same name
- NVIDIA/nvcf★ 272same name
- nikandr-surkov/ai-saas-starter★ 16same name
- Azure/azure-functions-agents-runtime★ 13same name
- subhashkhileri/agntree★ 7same name
- aiqadam/qadam-flow★ 5same name
- rsml/tutor★ 4same name
17 more not listed
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 repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/architecture.mdcCursor rule
- docs/llms.txtllms.txt
- add-migrationSkill
- check-fixSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
0
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
Add a new resource (or use case) by mirroring the canonical Task slice, building from the domain outward so each layer compiles against the …
- Very specific: line 13
Follow docs/adding-a-feature.md in order.
- Very specific: line 35
Run the check-fix skill (or uv run poe check directly) and iterate until green.
“Common” is measured: kept by at least 6 in 10 of the 24 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 a feature
Add a new resource (or use case) by mirroring the canonical Task slice, building from the
domain outward so each layer compiles against the one beneath it.
Steps
Follow docs/adding-a-feature.md in order. Do not skip ahead a layer; each depends on the
one before it.
- Domain (
src/app/domain/<name>.py): entity (extendEntity) and any state machine or invariants. Pure: no framework imports. Add domain exceptions insrc/app/domain/exceptions.py. Write the unit test for the invariants first. - Output port (
src/app/application/ports/output/<name>_repository.py): the driven contract the use cases need. Add an in-memory fake intests/support/and a contract test asserting adapters satisfy the port. - Input ports + use cases (
ports/input/<name>_ports.py,use_cases/<name>_use_cases.py): one use case per operation. Mutating use cases take(repository, uow, logger)and callawait uow.commit(). Unit-test each with the in-memory repo, no mocks. - Persistence (
db/models/<name>.py+ Alembic migration via theadd-migrationskill;db/repositories/<name>_repository.py). - API edge (
web/schemas/<name>.pyDTOs,web/controllers/<name>.pyrouter). Bound DTO fields to the DB column limits so bad input is rejected at the edge, not in the database. Wire the router inweb/app.py. - Tests: integration (repository against Postgres via testcontainers; API via ASGI).
Definition of done
Run the check-fix skill (or uv run poe check directly) and iterate until green. The
feature is not done until the full loop passes and coverage stays above the floor. Commit
with a Conventional Commit message (feat(<layer>): ...).
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.

