agentleFS
akshaypimprikarakshaypimprikar/pragma/.claude/skills/feature/SKILL.md

feature

Skill4 starsChanged 2 months agoMITView on GitHub

Implement an approved plan task by task, with tests and commits. Invoke after a plan is approved, passing the plan document's path.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use bug, fix and 5 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.
  • pvnarpSkill

    bug

    Investigates and resolves bugs using structured diagnosis. Categorizes by system, traces root cause, proposes minimal fix, and suggests prevention. Use when debugging issues or investigating unexpected behavior.

    Also in 4 projects that use this

  • Google CloudSkill

    fix

    Plan a remediation strategy after a test failure.

    Also in 5 projects that use this

  • OpenAISkill

    ideate

    Generate image-based alternatives, remixes, or new design directions from a Product Design brief. Use when the user asks for design variants, visual exploration, remixes, or image-generated approaches from provided context.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 5 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 4 projects that use this

  • 0xSeroSkill

    security

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting any task:

    line 16
  2. Very specific:

    Read AGENTS.md/CLAUDE.md — build commands, architecture rules

    line 17
  3. Distinctive:

    Read the plan document in full

    line 18
  4. Very specific:

    Read .claude/context/invariants.md if it exists — inviolable rules.

    line 19
  5. Very specific:

    Read .claude/context/rejections.md if it exists — past review violations.

    line 20
  6. Very specific:

    After implementation passes tests, run the simplify skill on changed files before committing

    line 26
  7. Very specific:

    Run the full test suite (including UI tests) after every task — do not proceed if tests fail.

    line 32
  8. Very specific:

    Never edit project.pbxproj — files auto-compile via PBXFileSystemSynchronizedRootGroup

    line 33

“Common” is measured: kept by at least 6 in 10 of the 32 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

Feature Agent

You are the Feature Agent for an iOS app project. Your job is to implement an approved plan, task by task, with tests and commits.

Trigger

Invoked after the user approves a plan. The plan path is passed as the argument (e.g. /feature docs/superpowers/plans/2026-05-07-recurring-transactions.md).

Process

Before starting any task:

  • Read AGENTS.md/CLAUDE.md — build commands, architecture rules
  • Read the plan document in full
  • Read .claude/context/invariants.md if it exists — inviolable rules; every implementation decision must respect these (skip if absent)
  • Read .claude/context/rejections.md if it exists — past review violations; do not repeat these patterns (skip if absent)
  • Confirm you are on a feature/<name> branch (create it off develop if not)

Per-task rules

  • Iron law before the RED step of each task: no production code without a failing test that already exists. Write the test, run it, and confirm it fails for the expected reason (feature missing, not a typo or setup error) before writing a single line of implementation. If you catch yourself writing production code first "to see the shape of it" or "just this once," that's the rationalization to stop on — delete what you wrote and start over from a failing test. A test that only exists after the code it verifies proves nothing: it can't fail on the behavior it's supposedly protecting, so passing on the first run is not evidence, it's an artifact of writing the test to match code that already exists. (A plugin's enabledPlugins flag being true in .claude/settings.json does not guarantee its skills are actually invocable in a given environment — confirmed the hard way in the parent project. Don't gate this discipline on an external skill invocation; keep it self-contained.)
  • If the task adds or modifies a mutation on a shared/persisted entity (create, update, or delete on an @Model type), the failing test written first must cover both a repeat-call/duplicate case (e.g. calling the same mutation twice with the same identity) and a missing-required-field case — not just the happy path. TDD's write-test-first sequencing alone does not force imagining a failure mode, only that some test exists for whatever was imagined — this rule closes the specific gap where a missing-guard bug ships because the negative case was never considered. If your project keeps a bug postmortem or decision log, cite the specific past incident here once you have one.
  • After implementation passes tests, run the simplify skill on changed files before committing
  • If this task's implementation introduces a new protocol declaration, or adds/modifies a mutation on an @Model type (the same shapes /gates Gate 8 and Gate 10 check for), run a doubt-driven review before the GREEN commit: hand a fresh-context subagent only the diff plus this task's acceptance criteria from the plan — not your reasoning or this session's conversation — and instruct it explicitly to find problems with the change or state plainly that it found none. Address real findings, or record why not; bounded to 2 rounds of this cycle. Log any real finding to .claude/context/incidents.md (create the file with a one-line header if it doesn't exist, matching /bugfix's existing convention) so /review and future /bugfix runs flag a repeat as high severity. This exists because /review's isolated reviewer only sees the change once the PR is open (see review/SKILL.md's "Context isolation" section), and /parallel-review, the other pre-PR review, is optional and run manually (it is not in the standard pipeline in AGENTS.md/CLAUDE.md) — so nothing else in the standard pipeline catches a bad call in isolation while it's still cheap to reverse.
  • Append a one-line entry to the ## [Unreleased] section of CHANGELOG.md (create the section if absent)
  • Two commits per task, in this order — not one:
    1. RED commit — the new/modified test file(s) only, no production code. Commit message should quote the actual failing-test output (the assertion/error line, not just "test written"). Never bundle a test file and the production file it exercises in the same commit — a single commit for both makes the red step unverifiable from git history (see /gates Gate 9).
    2. GREEN commit — the production code that makes it pass, plus the simplify pass and CHANGELOG.md entry. Commit message should quote the passing-test output line.
  • Run the full test suite (including UI tests) after every task — do not proceed if tests fail. Use the "Full test suite" command in AGENTS.md/CLAUDE.md; never add -skip-testing or -only-testing flags.
  • Never edit project.pbxproj — files auto-compile via PBXFileSystemSynchronizedRootGroup

Build commands (all run from git root — see AGENTS.md/CLAUDE.md for exact path)

# Full test suite
xcodebuild test -project <AppName>.xcodeproj -scheme <AppName> \
  -destination 'platform=iOS Simulator,name=<simulator from AGENTS.md/CLAUDE.md>' \
  2>&1 | grep -E "Test.*passed|Test.*failed|TEST SUCCEEDED|TEST FAILED"

# Single suite
xcodebuild test -project <AppName>.xcodeproj -scheme <AppName> \
  -destination 'platform=iOS Simulator,name=<simulator from AGENTS.md/CLAUDE.md>' \
  -only-testing:<AppName>Tests/<SuiteName> \
  2>&1 | grep -E "Test.*passed|Test.*failed|BUILD"

Architecture rules (from AGENTS.md/CLAUDE.md)

  • Domain Services: zero SwiftData imports
  • Repository Protocols: Foundation-only imports
  • <type-safety rule from AGENTS.md, e.g. money values: Decimal, never Double>
  • ViewModels depend on protocols, never concrete implementations
  • Views contain no business logic

Done when

All tasks complete, full test suite green, /test's coverage-gap audit done, and all blocking /gates criteria pass (Gate 8 is advisory). Then open a PR to develop and run /pr-followup, which runs code-review:code-review and then /review and records both in the PR body for the review-evidence check.

To drive the entire feature-to-gates cycle autonomously:

/loop run /feature on the next uncovered task from the plan. Then run /gates. Stop when all blocking gates pass.

Or target only gate-fixing after tasks are done:

/loop Fix failing gates. Stop when all blocking gates pass (Gate 8 abstraction bloat is advisory, never blocks): tree clean and SHA recorded, build succeeds, all tests pass with a non-zero executed count, no TODO/FIXME/HACK, branch name valid, CHANGELOG updated, coverage ≥80% on new files, security review clean, RED commit precedes GREEN commit for every new file in a scoped layer, architecture & layer-rule compliance clean, gate integrity clean.

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.