agentleFS
samsam007bsamsam007b/claude-code-standards-kit/skills/new-feature/SKILL.md

new-feature

Skill2 starsChanged 8 months agoMITView on GitHub

Complete RESEARCH → CONTRACT → CODE → AUDIT workflow for a new feature. Identifies applicable standards, activates contracts, and runs audit agents on completion.

18 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • michaelshimelesSkill

    greploop-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

  • kellykampenSkill

    evidence-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

  • VercelSkill

    before-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

  • nitikeshqSkill

    code-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-heavenSkill

    greploop

    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

  • MicrosoftSkill

    unslop

    Cut AI tells from any writing. Must always apply.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 7

    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
  1. Very specific:

    Read workflows/WORKFLOW-NEW-FEATURE.md for the full process

    line 29
  2. Distinctive:

    Search across the 29 contracts to find which apply.

    line 41
  3. Distinctive:

    Run the following to identify relevant contracts:

    line 43
  4. Distinctive:

    Check these domains for your feature:

    line 48
  5. Distinctive:

    Read each relevant contract and extract the specific rules that apply.

    line 56
  6. Distinctive:

    Run the audit agents relevant to the feature.

    line 78
  7. Distinctive:

    Observable truth: All audit scores above their thresholds (Security ≥70, Code-Quality ≥75, Accessibility ≥80 for EU).

    line 93
  8. Very specific:

    Update CHANGELOG.md with the new feature under [Unreleased]

    line 101
  9. Distinctive:

    Create a PR with audit scores in the description

    line 102
  10. Very specific:

    Ensure CI passes (verify-kit.sh equivalent for the project)

    line 103

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/new-feature — Complete Feature Workflow

Usage: /new-feature [description of feature]

This skill runs the full RESEARCH → CONTRACT → CODE → AUDIT cycle for the feature described in $ARGUMENTS.


Gate 0 — Scope

Define the feature before writing any code.

  1. Read workflows/WORKFLOW-NEW-FEATURE.md for the full process
  2. Draft a Shape Up Pitch with:
    • Problem: What user need does this solve?
    • Appetite: How much effort is this worth?
    • No-Gos: What is explicitly out of scope?

Observable truth: Scoping doc exists before implementation starts.


Gate 1 — Research (identify applicable contracts)

Search across the 29 contracts to find which apply.

  1. Run the following to identify relevant contracts:
grep -l "$ARGUMENTS" contracts/ 2>/dev/null | head -10 || echo "No exact match — use semantic search"
  1. Check these domains for your feature:
    • Any form input? → CONTRACT-SECURITY.md §3 (Zod validation), CONTRACT-ACCESSIBILITY.md §2 (WCAG 1.3.1)
    • Any API call? → CONTRACT-API-DESIGN.md, CONTRACT-RESILIENCE.md
    • Any UI component? → CONTRACT-DESIGN.md, CONTRACT-ACCESSIBILITY.md
    • Any data storage? → CONTRACT-SUPABASE.md, CONTRACT-DATABASE-MIGRATIONS.md
    • Any TypeScript? → CONTRACT-TYPESCRIPT.md (always)
    • Any test? → CONTRACT-TESTING.md (always)
  2. Read each relevant contract and extract the specific rules that apply.

Observable truth: List of applicable contracts and specific rules documented in CLAUDE.md "Active contracts" section.


Gate 2 — Implement

Code with active hooks enforcing contracts.

Before coding, ensure .claude/settings.json references the SQWR hooks.

During implementation, watch for hook warnings:

  • hook-contract-compliance.sh fires on every Write — address warnings immediately
  • hook-no-dangerous-html.sh fires on TSX writes — never bypass without DOMPurify

Observable truth: npm run build && npm test exits 0 (or equivalent for your stack).


Gate 3 — Audit

Run the audit agents relevant to the feature.

Ask Claude: "Run agents/AGENT-SECURITY-AUDIT.md on this feature"
Ask Claude: "Run agents/AGENT-CODE-QUALITY-AUDIT.md"

For UI features, also run:

Ask Claude: "Run agents/AGENT-ACCESSIBILITY-AUDIT.md"
Ask Claude: "Run agents/AGENT-DESIGN-AUDIT.md"

Fix all findings above the blocking threshold before continuing.

Observable truth: All audit scores above their thresholds (Security ≥70, Code-Quality ≥75, Accessibility ≥80 for EU).


Gate 4 — Ship

Prepare the feature for review and merge.

  1. Update CHANGELOG.md with the new feature under [Unreleased]
  2. Create a PR with audit scores in the description
  3. Ensure CI passes (verify-kit.sh equivalent for the project)

Observable truth: PR created with CHANGELOG entry and audit scores visible.


Reference

Full workflow details: workflows/WORKFLOW-NEW-FEATURE.md Source methodology: METHODOLOGY.md — "search first, implement after"

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.