agentleFS
MacroTechTitanMacroTechTitan/MaximusAI/skills/maximus-build-feature/SKILL.md

maximus-build-feature

Skill1 starsChanged 4 months agoMITView on GitHub

Implement a feature in an existing codebase with read-before-edit, minimum-change discipline: preserve unrelated code, test after each step, never blind-overwrite. Use for 'build this', 'implement', 'ship the feature', 'add X to the repo', or applying an approved plan.

  • Installs packages

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If there's no plan and the work is non-trivial, stop and plan first.

    line 19
  2. Distinctive:

    Read before edit: Always read the file you're editing — and the files that import or are imported by it — before changing a line.

    line 23
  3. Distinctive:

    Verify after every meaningful step: Run the relevant tests (or, at minimum, the file's typecheck/lint) after each task.

    line 26
  4. Distinctive:

    Never invent APIs: If you're not sure a function or library method exists, read the docs or the source — do not guess from training data.

    line 28
  5. Distinctive:

    Read the target file(s).

    line 35
  6. Distinctive:

    Run the task's verify step.

    line 37
  7. Distinctive:

    If green: commit with a message tying it to the plan task ("plan-task-3: validate webhook signature").

    line 38
  8. Distinctive:

    If red: stop and diagnose before continuing.

    line 39
  9. Distinctive:

    Surface deviations explicitly: When you change scope ("had to touch file X that wasn't in the plan"), note it in the PR description.

    line 42
  10. Very specific:

    Use the read tool to load a file before editing.

    line 46
  11. Very specific:

    Use the edit tool (exact string replacement) for surgical changes.

    line 47
  12. Very specific:

    Use the write tool only for new files or when the rewrite *is* the task.

    line 48
  13. Very specific:

    Use grep/glob to confirm an identifier or pattern's true usage across the repo before renaming, removing, or refactoring it.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Maximus — Build Feature

The build phase is execution, not invention. A plan and a design tell you what to do; this skill is the discipline of how you do it without breaking things on the way through.

When to use

  • Implementing a feature, fix, or refactor in an existing repository.
  • Applying an approved implementation plan (see maximus-plan-implementation).
  • The user says "build", "implement", "ship", "add X", "wire up Y".

If there's no plan and the work is non-trivial, stop and plan first.

Core rules (non-negotiable)

  1. Read before edit. Always read the file you're editing — and the files that import or are imported by it — before changing a line. Blind overwriting loses work; mis-imports break builds.
  2. Minimum change. Edit only what the task requires. Do not reformat, rename, reorder imports, or "clean up while I'm here" unless that is the task. Unrelated diffs make review impossible and revert risky.
  3. Preserve invariants. Existing tests pass before you start. They still pass after every step. If a test legitimately needs updating, that's a deliberate change in the plan, not a side effect.
  4. Verify after every meaningful step. Run the relevant tests (or, at minimum, the file's typecheck/lint) after each task. A green build is the unit of progress.
  5. Commit in small steps. One task → one commit (or one PR for a coherent slice). Commit messages explain why, not what the diff already shows.
  6. Never invent APIs. If you're not sure a function or library method exists, read the docs or the source — do not guess from training data. Hallucinated APIs are the most common AI-coding failure.

Procedure

  1. Confirm the plan and the branch. Working on the right branch? Plan loaded? If no plan and the work is more than one file, load maximus-plan-implementation first.
  2. Read the surface area. Open every file the plan touches. Note: naming conventions, error handling pattern, logging pattern, test pattern. New code conforms to existing patterns unless the plan explicitly says otherwise.
  3. Execute task by task. For each plan task:
    1. Read the target file(s).
    2. Apply the minimum edit.
    3. Run the task's verify step.
    4. If green: commit with a message tying it to the plan task ("plan-task-3: validate webhook signature").
    5. If red: stop and diagnose before continuing. Don't pile changes on top of a broken state.
  4. Run the full test suite at major milestones. End of each module. Before opening a PR. Before merging.
  5. Update the plan when reality diverges. Discovered a missing dependency? A wrong assumption? Edit the plan file before continuing. Future-you and reviewers depend on it.
  6. Surface deviations explicitly. When you change scope ("had to touch file X that wasn't in the plan"), note it in the PR description.

File-edit discipline (Computer's native tools)

  • Use the read tool to load a file before editing.
  • Use the edit tool (exact string replacement) for surgical changes. Prefer this over rewriting the whole file.
  • Use the write tool only for new files or when the rewrite is the task.
  • Use grep/glob to confirm an identifier or pattern's true usage across the repo before renaming, removing, or refactoring it.

Language-specific notes

  • Python: respect pyproject.toml/setup.cfg formatting (black, ruff). Add tests in tests/ matching existing structure. Use type hints if the project uses them. Never pip install globally — work inside the project's venv/uv/poetry setup.
  • JavaScript / TypeScript: respect tsconfig.json, eslint, prettier. Use the project's package manager (npm/pnpm/yarn/bun — lockfile tells you). Keep new code TS if the project is TS; don't smuggle in JS.
  • Go: match the module layout; go fmt is non-negotiable; new packages get a doc.go if the project has them elsewhere.

Gotchas

  • Blind overwriting is the catastrophic failure: a write to an existing file without reading first wipes work that wasn't in your context.
  • Scope creep ("while I was in there I also …") makes PRs un-reviewable and reverts dangerous. Refactors get their own plan.
  • Hallucinated APIs — verify any non-trivial library call against actual docs or source. The cost of a 30-second check beats a 30-minute debug.
  • Skipping tests because they're slow — find the targeted subset (pytest tests/test_x.py -k case, vitest --filter). Run the slow full suite at milestones.
  • Committing a broken state to "fix later" — don't. Land green commits or stash and diagnose.
  • Reformatting on save changing files you didn't mean to touch. Disable format-on-save for the session, or commit format changes separately and first.

Output

Commits on the working branch, each tied to a plan task. A final chat summary lists: files changed (count), tests added (count), plan tasks completed / deferred, anything to flag to the reviewer.

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.