add-feature
Skill15 starsChanged 8 months agoMITView on GitHub
You MUST use this skill before writing any code for a new feature, module, class, or API endpoint. Use when the thing being built does not yet exist in the codebase — adding net-new functionality. Stronger signals: "add", "implement", "create", "build", "new feature", "new endpoint", explicit new requirement. Use sextant:modify-feature instead when the functionality already exists and you are changing its behavior. Use sextant:refine-requirements first if the requirement is vague or the scope is unclear.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- NVIDIA/nvcftheir own version, first seen Oct 1, 2026
- Azure/azure-functions-agents-runtimetheir own version, first seen Oct 1, 2026
- aiqadam/qadam-flowtheir own version, first seen Sep 20, 2026
- kconfesor/zergtheir own version, first seen Aug 27, 2026
- ltatarev/skillstheir own version, first seen Aug 9, 2026
- Bravo6Dev/skillstheir own version, first seen Jul 15, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- microsoft/SqlScriptDOM★ 279same name
- NVIDIA/nvcf★ 230same name
- nikandr-surkov/ai-saas-starter★ 23same name
- Azure/azure-functions-agents-runtime★ 11same name
- aiqadam/qadam-flow★ 4same name
- subhashkhileri/agntree★ 4same name
- kunalsuri/ai-fication-kit★ 3same name
- Bravo6Dev/skills★ 1same name
- kconfesor/zerg★ 1same name
- AnitChaudhry/10x-development-team★ 0same name
2 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 repository12 other files it gives its agents.
- debugSkill
- fix-bugSkill
- migrateSkill
- modify-featureSkill
- planSkill
- sextantSkill
- refine-requirementsSkill
- review-codeSkill
- securitySkill
- shipSkill
- tool-gitnexusSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 10 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
When adding new features, integrate into the existing architecture like a native, not an outsider who starts from scratch.
- Distinctive: line 43
Before starting, you must be able to answer the following questions:
- Distinctive: line 75
Before writing code, clarify the design:
- Distinctive: line 78
Place it at the same directory level as similar features
- Distinctive: line 79
If it's an entirely new domain, create a parallel structure referencing existing module directory structure
- Distinctive: line 124
If user selects "No": ask *"What would you like to change about the design?"*, revise the Implementation Plan, and use the confirmation …
- Very specific: line 142
Write complete, runnable tests for each new public interface: all three of Arrange, Act, and Assert — no TODO placeholders
- Distinctive: line 156
Dependency direction: Only upper layers depend on lower layers.
- Distinctive: line 165
If the module needs to share data structures with other modules, place them in a dedicated shared layer
- Distinctive: line 185
After completing the new module, run through an architecture audit:
- Very specific: line 221
If .sextant/state.json exists in the project root and the current task matches a sprint task:
- Distinctive: line 227
Do not write the file without explicit user confirmation.
“Common” is measured: kept by at least 6 in 10 of the 12 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
!../principles/SKILL_BODY.md
!../tool-gitnexus/SKILL_BODY.md
New Feature / Module Workflow
Core Principle
When adding new features, integrate into the existing architecture like a native, not an outsider who starts from scratch. New code should be fully consistent with existing code in style, structure, and interaction patterns.
Complete Execution Workflow
Progress tracking: At the start of each step, output an updated progress block. For Lightweight tasks show only Steps 3–4; for Medium/Large tasks show all steps.
Add Feature Progress ✓ Step 1: Architecture Research — <one-line finding> → Step 2: Solution Design + Confirm — in progress ○ Step 2.5: TDD Contract Tests — (Large/Medium only) ○ Step 3: Implement ○ Step 4: Architecture AuditReplace
○with→for the current step, and✓once complete.
Step 1: Understand the Existing Architecture
Before starting, you must be able to answer the following questions:
Architecture awareness:
- What architectural pattern does the project use? (MVC / MVVM / Clean Architecture / Component-based / Microservices…)
- How are similar existing features implemented? (Find the best reference)
- What is the logic behind the project's directory structure? (By layer, by feature, by domain?)
Positioning analysis:
- Which layer does the new feature belong to? Where is its entry point?
- Which existing modules does the new feature need to depend on?
- Are there already extendable abstraction points (e.g., existing strategy interfaces, factory registries, event buses), or do new ones need to be created?
Reference module:
- Find the most similar existing module to the new feature as an implementation reference
- Observe its file structure, naming conventions, dependency injection approach, error handling patterns, and test organization
- The new module should follow the same patterns as closely as possible
🔗 When GitNexus is available, use query / context MCP tools for architecture exploration.
─── Pre-Implementation Research Checklist ───────────
[ ] Understand the project architecture pattern and directory organization
[ ] Found the most similar reference module
[ ] Determined which layer the new feature belongs to
[ ] Determined the new feature's dependencies
[ ] Confirmed whether there are extendable abstraction points
[ ] Confirmed no overlap with responsibilities of existing modules
─────────────────────────────────────────────────────Step 2: Design the Solution
Before writing code, clarify the design:
Location decision:
- Place it at the same directory level as similar features
- If it's an entirely new domain, create a parallel structure referencing existing module directory structure
Integration approach (priority order, high to low):
─── Integration Strategy Priority ───────────────────
1. Registry-based: Register with existing factory/registry/routing table → zero changes to existing code
2. Extension-point-based: Implement existing abstraction/strategy interface → add only, don't modify
3. Event-driven: Publish/subscribe via event bus → decoupled from existing modules
4. Config-driven: Enable new feature through config files → main flow is unaware
5. Invasive: Modify existing module code to integrate new feature → last resort
─────────────────────────────────────────────────────For large tasks, inform the user of:
- Which integration approach is being used
- The responsibility boundary of the new module
- How it interacts with existing modules
- Expected file structure
Confirmation Gate (between Step 2 and Step 3)
For Medium and Large tasks, after presenting the design, use the confirmation gate with:
- question: A concise Implementation Plan (see format below)
- options:
"Yes, proceed with implementation""No — let's adjust the design"
Implementation Plan format:
Integration strategy : <which priority level from the Integration Strategy list>
New module location : <file/directory path>
Public interfaces : <what is exposed>
Existing code touched: <files modified, or "none — pure addition">
Dependencies : <what this module depends on>Decision rules by task scale:
| Scale | Behavior |
| Large | Always use the confirmation gate. Do not create any file until user selects "Yes". |
| Medium | Always use the confirmation gate. Do not create any file until user selects "Yes". |
| Lightweight | Skip — proceed directly to Step 3. |
If user selects "No": ask "What would you like to change about the design?", revise the Implementation Plan, and use the confirmation gate again before proceeding.
Step 2.5: TDD Mode — Write Contract Tests First (Medium / Large Tasks Only)
Skip this step for Lightweight tasks. Only activate when the task scale is Medium or Large (per §3.2).
§P config check: read
.sextant.yamlbefore prompting.
tdd: enforce→ skip the prompt; TDD is mandatory for all taskstdd: default_on→ treat both Large and Medium as default Ytdd: offor absent → use the scale-based defaults below
TDD mode: write contract tests first? Large task → default Y (opt out explicitly if not applicable) Medium task → default n (opt in if you want contract-first coverage)
If Y:
- Write complete, runnable tests for each new public interface: all three of Arrange, Act, and Assert — no
TODOplaceholders - The Act calls the not-yet-implemented function or method directly; the test will fail because the implementation is absent or returns wrong output
- Valid red-light failure:
NameError/ImportError/ assertion on wrong return value - Invalid "failure": syntax error, placeholder comment, test that cannot run at all — these are not TDD red tests
- Cover: 1 happy path, 1 null/boundary case, 1 error path
- These tests must fail because the contract is not yet fulfilled — that is the correct red state in red-green-refactor
- For full test writing guidance, link
sextant:write-tests.
If N (or Lightweight task): Proceed directly to Step 3.
Step 3: Implement — Follow Architecture Conventions
Naming: Fully consistent with the project's existing naming style (camelCase/snake_case, prefix/suffix conventions, abbreviation habits)
Dependency direction: Only upper layers depend on lower layers; reverse dependencies are not allowed. New modules must not introduce reverse dependencies.
Interface protocol: Interaction with existing modules must be consistent — if existing modules communicate through dependency injection, the new module uses dependency injection; if through event bus, use event bus.
Extend, don't modify: Prioritize OCP-compatible integration; avoid changing existing stable modules.
Internal module structure:
- Internal classes/functions are private by default; only expose necessary public interfaces
- Public interfaces must have explicit type declarations and parameter validation
- If the module needs to share data structures with other modules, place them in a dedicated shared layer
Hollywood Principle: New modules only declare dependencies (constructor injection / config registration) and do not proactively pull them.
# ✅ Correct dependency approach for new module
class NewFeatureService:
def __init__(self, repo: FeatureRepository, bus: EventBus):
self._repo = repo
self._bus = bus
# ❌ Incorrect dependency approach for new module
class NewFeatureService:
def __init__(self):
self._repo = MySQLFeatureRepository("localhost") # Self-construct
self._bus = EventBus.get_instance() # Proactively pullStep 4: Architecture Compliance Audit (Required)
After completing the new module, run through an architecture audit:
─── New Module Architecture Audit Checklist ─────────
[ ] Is the layering correct? No layer-crossing calls?
[ ] Has any circular dependency been introduced?
[ ] Has any existing module's boundary been violated? (No direct references to other modules' internal implementations)
[ ] Does the new module's responsibility overlap with existing modules?
[ ] Is the external interface consistent with project style? (Naming, parameter style, error handling)
[ ] Has any new global state or side effects been introduced?
[ ] Is the dependency direction compliant? Any reverse dependencies?
[ ] Does it follow the Hollywood Principle? (Dependencies injected, not pulled)
[ ] Does documentation / comments / type definitions / routing config need to be updated?
[ ] Does it need to be registered with existing factories / registries / config files?
─────────────────────────────────────────────────────Audit results must be clearly communicated to the user: Passed ✅ or Issues found ⚠️ (with specific details).
Common Pitfalls
| Pitfall | Description | Correct Approach |
| Responsibility overlap | New module implements functionality already covered by existing modules | Search for existing implementations first; prefer reusing or extending |
| Style break | New code is inconsistent with existing project style | Strictly reference the most similar existing module |
| Over-abstraction | New module only has one implementation yet introduces an abstraction layer | Follow YAGNI; abstract only when there's a second implementation |
| Implicit coupling | New module interacts with other modules through global variables or implicit conventions | All interactions through public interfaces or event bus |
| Missing registration | New module implemented but forgot to register with factory/routing/config | Audit checklist includes registration check |
| Reverse dependency | For "convenience," lower-layer module references higher-layer module | Strictly follow dependency direction rules |
Sprint State Integration
If .sextant/state.json exists in the project root and the current task matches a sprint task:
- On start: offer to update the task's
statusfrompending→in_progress. Ask: "Update sprint state to mark Task N as in_progress?" - On completion (acceptance condition met): offer to update
statustodone. Ask: "Update sprint state to mark Task N as done?" - On blocker (test failure, missing dependency, unresolvable ambiguity that halts progress): surface the issue, then ask: "Mark Task N as blocked and record the reason in flags?" If confirmed, set
status: "blocked"and append{"task": N, "reason": "<one-sentence blocker description>"}to the top-levelflagsarray. Do not proceed to the next task while a task is blocked.
Do not write the file without explicit user confirmation. If the user declines, continue without state updates.
Reply Format
End every new-feature response with this block (omit a field only if it genuinely has nothing to report):
Feature Summary:
| # | Item | Detail |
| [1] | Conclusion | <one sentence: feature name + integration strategy used + outcome> |
| [2] | Changes | <new files created; existing files modified; registrations added> |
| [3] | Risks / Assumptions | <architectural assumptions; items not yet tested or integrated> |
| [4] | Verification | <Step 4 architecture audit result: Passed ✅ / Issues ⚠️ (details)> |
| [5] | Needs your input | <design decisions to confirm; manual registrations the user must handle> |
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.

