new-feature
Skill28 starsChanged 7 months agoMITView on GitHub
Pre-flight checklist that must complete before writing the first line of code for any new feature. Load this skill when starting a new endpoint, service method, or integration. Prevents the most common AI-coding failure mode — writing code before defining layer boundaries, which leads to features that work today and break in 3 months.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- nerviz-ai/nerviztheir own version, first seen Oct 3, 2026
- alfredobs97/flutter_agentic_templatetheir own version, first seen Sep 24, 2026
- dan-the-dev/xp-developer-skillstheir own version, first seen Sep 23, 2026
- chenson42/stackkeeltheir own version, first seen Sep 22, 2026
- Wrosinski/heddletheir own version, first seen Sep 20, 2026
- Lance0724/agent-skillstheir own version, first seen Sep 18, 2026
Used with
Projects with it also use greploop-apps, evidence-driven-testing and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
michaelshimelesSkillgreploop-apps
Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments. Identical to greploop, but triggers reviews by tagging @greptile-apps, which bypasses Greptile's file-count limit on huge PRs that the plain @greptile mention refuses to review. Use when the user wants to fully optimize a large PR/MR/CL against Greptile's code review standards.
Also in 3 projects that use this
kellykampenSkillevidence-driven-testing
Records visual proof while testing UI behavior — screen recording with structured test/assertion annotations — then posts the video and a results summary to the PR and tracker issue. Use whenever a UI change needs verifiable evidence that it works, instead of prose claims.
Also in 3 projects that use this
VercelSkillbefore-and-after
Add existing screenshots or screen recordings to a GitHub pull request as a before/after or preview block. Use when a PR needs visual media attached to its description. Browser navigation and capture belong to agent-browser.
Also in 3 projects that use this
nitikeshqSkillcode-structure
Use this skill whenever you're designing or refactoring backend code architecture — especially when multiple workflows duplicate operational logic, when deciding what belongs in actions vs shared services, when extracting repeated blocks across domain flows, or when adding features that share mechanics with existing ones. Trigger this skill for questions like "where should this logic live?", "how do I avoid copy-pasting this?", "should this be a service?", "how do I structure this new feature?", or any time someone is untangling messy action/handler files. Also use when reviewing PRs for architectural smells like god services, leaky services, or over-abstraction.
Also in 3 projects that use this
haseeb-heavenSkillgreploop
Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments. Triggers Greptile review, fixes all actionable comments, pushes/re-shelves, re-triggers review, and repeats. Use when the user wants to fully optimize a PR/MR/CL against Greptile's code review standards.
Also in 3 projects that use this
MicrosoftSkillunslop
Cut AI tells from any writing. Must always apply.
Also in 3 projects that use this
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- michaelshimeles/skills★ 1.2ksame name
- undeadlist/claude-code-agents★ 149same name
- X-isdoingreat/canvas-pilot★ 125same name
- dan-the-dev/xp-developer-skills★ 30same name
- jeremymcs/skills★ 8same name
- Eipi-Tong/agentic-coding-starter-kit★ 3same name
- nerviz-ai/nerviz★ 3same name
- SaketMunda/claude-org-template★ 3same name
- samsam007b/claude-code-standards-kit★ 2same name
- bibektimilsina00/runmycrew★ 1same name
8 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 repository14 other files it gives its agents.
- website/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- website/CLAUDE.mdCLAUDE.md
- .cursor/rules/architecture.mdcCursor rule
- .cursor/rules/decomposition.mdcCursor rule
- .cursor/rules/integrations.mdcCursor rule
- llms.txtllms.txt
- add-providerSkill
- debug-backendSkill
- debug-frontendSkill
- debug-goSkill
- new-feature-goSkill
- new-feature-nextjsSkill
- split-monolithSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Do not open any file for editing until all 5 steps below are completed.
- Distinctive: line 14
Write the contract in plain text before any code.
- Distinctive: line 23
If you cannot answer all 4 in 2 sentences, the feature scope is unclear.
- Distinctive: line 29
Use this decision matrix to know which files you will create or modify:
- Distinctive: line 41
Do not touch more layers than listed.
- Distinctive: line 47
Write the test scenario before code.
- Distinctive: line 67
Always build in this order.
- Distinctive: line 110
Run through this checklist before calling the feature done:
“Common” is measured: kept by at least 6 in 10 of the 16 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
new-feature
Do not open any file for editing until all 5 steps below are completed.
Step 1 — Define the API contract
Write the contract in plain text before any code. Answer these 4 questions:
Endpoint: POST /generate/image
Request: { prompt: str, model_id: str, width: int, height: int }
Response: { task_id: str, status: "queued" }
Side effect: creates a task, holds creditsIf you cannot answer all 4 in 2 sentences, the feature scope is unclear. Stop and clarify with the user.
Step 2 — Identify layers touched
Use this decision matrix to know which files you will create or modify:
| What the feature needs | Layers touched | Files |
| New HTTP endpoint only | Router | routers/<domain>.py |
| Endpoint + business logic | Router + Service | + services/<domain>/ |
| Logic + database | Router + Service + Repo | + repositories/protocols.py, repositories/sqlalchemy/<domain>.py |
| Logic + external API | Router + Service + Provider | + providers/<name>.py |
| Logic + credits charge | All of the above + Credits | + services/credits/user.py (read-only — single writer!) |
Write the list: "This feature touches: Router, Service, Repo."
Do not touch more layers than listed. If you discover you need more, stop and re-plan.
Step 3 — Define the test scenario
Write the test scenario before code. Two scenarios minimum:
# Scenario 1: happy path
# Given: user has 10.00 credits, valid prompt
# When: POST /generate/image with correct payload
# Then: 202 response, task_id returned, credits held
# Scenario 2: edge case
# Given: user has 0.00 credits
# When: POST /generate/image
# Then: 402 response, no task created, no credits touchedThese become your actual pytest tests in tests/unit/ or tests/integration/.
Step 4 — Build bottom-up
Always build in this order. Never start from the router.
1. Repository (if new data access needed)
└── Add method to CreditsRepoProtocol
└── Implement in SQLAlchemyCreditsRepo
└── Implement in FakeCreditsRepo (tests/conftest.py)
2. Service
└── Accepts repo via Protocol (never imports SQLAlchemy)
└── Contains all business logic
└── Raises domain exceptions (ValueError, not HTTPException)
3. Router
└── Thin: validate schema → call service → return response
└── Maps domain exceptions to HTTP codes
└── No logic beyond 10 lines per endpoint handler
4. Schema
└── Request and response Pydantic models
└── Goes in schemas/<domain>.py, never inside routers/Code template for a new router endpoint:
@router.post("/<resource>", response_model=ResourceResponse, status_code=202)
async def create_resource(
body: ResourceRequest,
user_id: str = Depends(get_current_user_id),
service: ResourceService = Depends(get_resource_service),
) -> ResourceResponse:
try:
result = await service.create(user_id=user_id, **body.model_dump())
except ValueError as e:
raise HTTPException(status_code=400, detail=str(e))
return ResourceResponse.model_validate(result)Step 5 — Verify principles before committing
Run through this checklist before calling the feature done:
# Architecture lint — must exit 0
bash scripts/lint-architecture.sh
# No SQLAlchemy in service layer
grep -rn "AsyncSession\|from sqlalchemy" app/services/<new-service>/
# Auth on every new endpoint
grep -n "get_current_user_id" app/routers/<new-router>.py
# user_id scoping in every new query
grep -n "user_id" app/repositories/sqlalchemy/<new-repo>.py| Principle | Check |
| A1 — folder if 3+ endpoints in domain | ls app/routers/<domain>/ |
| A7 — file under 400 LOC | wc -l app/services/<file>.py |
| B1 — no SQLAlchemy in service | grep above |
| B2 — service via Protocol, not concrete | constructor accepts Protocol type |
| B10 — credits only via CreditsUserService | no direct repo.hold() calls |
Verification
The skill was applied correctly when:
- API contract written before code
- Layers listed and respected during implementation
- Test scenarios written, tests are green
- Built bottom-up (repo → service → router)
bash scripts/lint-architecture.shexits 0- No new file exceeds 200 LOC (it's a new file — keep it small)
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.

