agentleFS
olgaiv39olgaiv39/claude-oss-skills/skills/implement-minimal/SKILL.md

implement-minimal

Skill13 starsChanged 4 months agoMITView on GitHub

Implement the smallest complete change that satisfies the current acceptance criteria for a public open-source project. Use when writing or editing code after a plan or a clear acceptance criterion exists. Avoids speculative abstraction, unrelated changes, obvious comments, and unverified validation claims. Keeps the project runnable after the increment.

The file

Show its rules and text

We split this skill into the rules it gives an agent

28 rules. About 0 are common, 26 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈26

    Distinctive · estimate

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

    Do not expand scope, add speculative structure, or refactor unrelated code while using this skill.

    line 14
  2. Very specific:

    No plan or acceptance criterion exists yet -> use oss-plan

    line 25
  3. Distinctive:

    Read the first of these that exists, then follow it:

    line 38
  4. Distinctive:

    If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse …

    line 43
  5. Distinctive:

    If neither exists, apply this fallback: select files before reading.

    line 55
  6. Distinctive:

    If unrelated uncommitted changes exist, stop and report before editing

    line 70
  7. Distinctive:

    Before editing, state files to modify, files to create, any new dependency, and the targeted validation command

    line 82
  8. Very specific:

    If a new dependency is required, stop and route to dependency-review

    line 84
  9. Distinctive:

    Run the targeted validation for the changed code only

    line 88
  10. Distinctive:

    If validation fails, repair only failures caused by this increment.

    line 89
  11. Distinctive:

    Update docs only when public behavior changed

    line 92
  12. Distinctive:

    Stop after the increment

    line 95
  13. Distinctive:

    Do not change unrelated files

    line 99
  14. Distinctive:

    Do not silently rewrite entire modules

    line 100
  15. Distinctive:

    Do not introduce an interface for a single implementation

    line 101
  16. Distinctive:

    Do not introduce factories, repositories, providers, adapters, managers, registries, or service layers without a demonstrated current need

    line 102
  17. Distinctive:

    Do not extract a helper used only once unless it materially improves clarity

    line 104
  18. Distinctive:

    Do not create generic utilities for possible future use

    line 105
  19. Distinctive:

    Do not add fallback behavior not required by the acceptance criterion

    line 106
  20. Distinctive:

    Do not add defensive branches for impossible or unsupported states

    line 107
  21. Distinctive:

    Do not add architecture for anticipated future requirements

    line 108
  22. Distinctive:

    Prefer existing project conventions over introducing new ones

    line 109
  23. Distinctive:

    Avoid unrelated formatting churn and broad renaming

    line 111
  24. Distinctive:

    Do not claim validation that was not run

    line 113
  25. Distinctive:

    Prefer clear names and small functions over explanatory comments

    line 121
  26. Distinctive:

    Remove a stale comment only in code you directly modify, and only when safe

    line 122
  27. Distinctive:

    Run the smallest check that proves the increment:

    line 141
  28. Distinctive:

    Never run the full suite after every edit.

    line 151

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

implement-minimal

Central rule:

Implement the smallest complete change that satisfies the current acceptance criteria, and leave the project runnable.

Do not expand scope, add speculative structure, or refactor unrelated code while using this skill.

Activate when

  • A plan or a single clear acceptance criterion exists and code must change
  • The next step is one runnable increment
  • The change is larger than a one-line edit but smaller than a full feature

Do not activate when

  • No plan or acceptance criterion exists yet -> use oss-plan
  • The repository does not exist yet -> use oss-bootstrap
  • A test or build is failing and the cause is unknown -> use test-and-debug
  • The change only adds or upgrades a dependency -> use dependency-review

Required inputs

  • The acceptance criterion for this increment
  • Access to the repository to inspect status, conventions, and diff
  • The targeted validation command for the affected code

Low-resource policy

Read the first of these that exists, then follow it:

  • ${CLAUDE_PROJECT_DIR}/.claude/shared/LOW_RESOURCE.md
  • $HOME/.claude/shared/LOW_RESOURCE.md

If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse existing environments, and run full validation only at a milestone boundary. Do not scan the whole filesystem to locate the policy.

Context-efficiency policy

Read the first of these that exists, then follow it:

  • ${CLAUDE_PROJECT_DIR}/.claude/shared/CONTEXT_EFFICIENCY.md
  • $HOME/.claude/shared/CONTEXT_EFFICIENCY.md

If neither exists, apply this fallback: select files before reading; use targeted searches and bounded ranges; do not preload references; do not reread unchanged files; finish one atomic increment and stop; create a compact handoff before context is exhausted.

Facts that must not be assumed

  • The test runner, package manager, or build tool
  • That existing tests pass right now
  • That an external API, wallet, or MCP tool is reachable
  • That a dependency is already approved

Preflight

  1. git status --short and git diff --stat to see current work in progress
  2. If unrelated uncommitted changes exist, stop and report before editing
  3. Identify the affected files and the convention they already follow -> references/change-types.md
  4. Identify any external input the change reads -> references/external-boundaries.md

Workflow

  1. Restate the single acceptance criterion this increment satisfies
  2. Inspect git status and git diff for in-progress work
  3. Discover conventions from neighboring files and existing scripts
  4. Identify the one runnable increment that satisfies the criterion
  5. Before editing, state files to modify, files to create, any new dependency, and the targeted validation command
  6. If a new dependency is required, stop and route to dependency-review
  7. Implement only that increment, following existing conventions
  8. Validate external input at the boundary once -> references/external-boundaries.md
  9. Run the targeted validation for the changed code only
  10. If validation fails, repair only failures caused by this increment; an unrelated pre-existing failure is a stop-and-report condition
  11. Inspect git diff and remove churn, stray edits, and obvious comments
  12. Update docs only when public behavior changed
  13. Produce the report using templates/implementation-report.md
  14. Stop after the increment

Implementation rules

  • Do not change unrelated files
  • Do not silently rewrite entire modules
  • Do not introduce an interface for a single implementation
  • Do not introduce factories, repositories, providers, adapters, managers, registries, or service layers without a demonstrated current need
  • Do not extract a helper used only once unless it materially improves clarity
  • Do not create generic utilities for possible future use
  • Do not add fallback behavior not required by the acceptance criterion
  • Do not add defensive branches for impossible or unsupported states
  • Do not add architecture for anticipated future requirements
  • Prefer existing project conventions over introducing new ones
  • Validate external data at system boundaries, not at every internal call
  • Avoid unrelated formatting churn and broad renaming
  • Preserve public APIs unless the task explicitly changes them
  • Do not claim validation that was not run

Comment policy

  • Comments may explain a non-obvious constraint, trade-off, external behavior, security decision, or mathematical assumption
  • Comments must not narrate the next line, a function name, a loop, a condition, an assignment, or obvious control flow
  • Prefer clear names and small functions over explanatory comments
  • Remove a stale comment only in code you directly modify, and only when safe

Change-type branches

Route by the kind of change; each branch names its own discovery, implementation boundary, validation, and stop condition -> references/change-types.md

  • New feature slice
  • Bug fix
  • Integration with an external system
  • Refactoring in isolation
  • UI change
  • CLI change
  • Configuration change
  • Documentation-affecting behavior change

Validation escalation

Run the smallest check that proves the increment:

single test or command
related test file
changed-file lint or typecheck
related integration path
full suite only at the milestone that ends the work

Never run the full suite after every edit.

Stop conditions

  • The increment cannot be validated cheaply
  • A pre-existing unrelated failure blocks the targeted validation
  • The change requires a new dependency not yet reviewed
  • The acceptance criterion is ambiguous after one clarification pass

Human review boundaries

  • Any change to auth, wallet, or user-data handling
  • Any change to a public API surface
  • Any validation that could only be run against an unavailable live system

Final report

Produce the report in the exact section order of templates/implementation-report.md, then stop. Broader review happens under public-code-review.

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.