agentleFS
htnabehtnabe/skills/feature-implementation/SKILL.md

feature-implementation

Skill0 starsChanged 2 months agoMITView on GitHub

Workflow skill for implementing features, behavior changes, and bug fixes using a test-driven development approach. Use when: implementing a new feature, changing existing behavior, or fixing a bug that requires code changes. Guides repository inspection, requirements analysis, planning, TDD, implementation, refactoring, and validation.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 10

    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
  1. Distinctive:

    Use this skill for feature work, behavior changes, and bug fixes that require code changes.

    line 9
  2. Distinctive:

    Follow repository-specific instructions and conventions.

    line 14
  3. Distinctive:

    Prefer existing abstractions and dependencies, minimal changes, preserved public behavior, and no speculative refactoring.

    line 15
  4. Distinctive:

    Test observable behavior and meaningful success, failure, boundary, and regression cases rather than chasing coverage metrics.

    line 16
  5. Distinctive:

    Before implementation, create a concise plan covering behavior, tests, implementation, validation, and risks.

    line 28
  6. Distinctive:

    Red: write the smallest useful failing test and confirm it fails for the expected reason.

    line 34
  7. Distinctive:

    Do not skip Red unless TDD is impractical.

    line 38
  8. Distinctive:

    Do not alter unrelated code to hide unrelated failures.

    line 52
  9. Distinctive:

    If requirements conflict, identify the conflict, prioritize explicit requirements, and add compatibility or migration handling as needed.

    line 53
  10. Distinctive:

    Do not claim completion while known validation failures remain unexplained.

    line 54

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

Use this skill for feature work, behavior changes, and bug fixes that require code changes. It covers implementation only; use dedicated workflows for review, documentation maintenance, release, deployment, or pull requests.

Principles

  • Inspect relevant implementation, tests, configuration, documentation, and repository guidance before editing.
  • Follow repository-specific instructions and conventions; do not invent a competing pattern.
  • Prefer existing abstractions and dependencies, minimal changes, preserved public behavior, and no speculative refactoring.
  • Test observable behavior and meaningful success, failure, boundary, and regression cases rather than chasing coverage metrics.

Workflow

1. Analyze the Request

Identify the requested behavior, expected outcome, inputs and outputs, constraints, affected existing behavior, and possible breaking changes. Establish concrete acceptance criteria before implementation. Ask only focused questions that repository inspection cannot answer.

2. Inspect the Repository

Inspect only relevant areas. Check existing implementation and tests, build and package configuration, APIs and CLI definitions, schemas, CI, documentation, repository instructions, and reusable abstractions. Determine where the change belongs, what tests and conventions apply, which validation commands are relevant, and whether compatibility or migration concerns exist. Do not edit during inspection.

Before implementation, create a concise plan covering behavior, tests, implementation, validation, and risks. Resolve ambiguities that could materially change behavior before making irreversible changes.

3. Follow TDD

For each meaningful behavior, repeat:

  1. Red: write the smallest useful failing test and confirm it fails for the expected reason.
  2. Green: implement the minimum change needed to pass, then run the new and relevant existing tests.
  3. Refactor: improve naming, control flow, duplication, responsibilities, errors, and readability without changing behavior; rerun tests.

Do not skip Red unless TDD is impractical; explain the deviation and use the closest test-first approach. Prefer several small cycles for independent behaviors. See TDD and quality details when the detailed checklist is needed.

4. Preserve Quality and Boundaries

Preserve behavior that is not being changed, public APIs, and expected backward compatibility. For relevant trust boundaries, validate input, preserve security controls, avoid sensitive-data exposure and unsafe parsing or execution, and follow existing mechanisms. Consider realistic error and edge cases without adding speculative complexity.

5. Validate and Complete

Run targeted tests first, then relevant regression tests and repository checks such as type checking, linting, builds, packaging, or documentation validation. Inspect git diff and git status; confirm only intended files changed, tests and documentation are included where needed, and no debug or temporary artifacts remain. See Validation and completion for the detailed checklist and reporting format.

Failure and Ambiguity Rules

  • Fix failures caused by the implementation.
  • Correct a test only when requirements or established repository behavior show its assumption is wrong.
  • Do not alter unrelated code to hide unrelated failures; report them separately.
  • If requirements conflict, identify the conflict, prioritize explicit requirements, and add compatibility or migration handling as needed.
  • Do not claim completion while known validation failures remain unexplained.

Completion Criteria

Complete only when acceptance criteria are met, appropriate tests are added or updated, TDD was followed or its deviation documented, relevant validation passes, existing behavior is preserved unless intentionally changed, the final diff is scoped, required documentation is updated, and no known in-scope issue remains.

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.