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
In this repository49 other files it gives its agents.
- core/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- file-opsSkill
- maximus-agent-designSkill
- maximus-ai-cost-controlSkill
- maximus-ai-data-pipelineSkill
- maximus-ai-fluency-for-buildersSkill
- maximus-ai-product-specSkill
- maximus-ai-safety-governanceSkill
- maximus-ai-ux-patternsSkill
- maximus-brainSkill
- maximus-chain-of-verificationSkill
- maximus-code-reviewSkill
- maximus-contact-intelligenceSkill
- maximus-counterparty-discoverySkill
- maximus-debug-incidentSkill
- maximus-deep-research-proSkill
- maximus-deep-researchSkill
- maximus-design-specSkill
- maximus-devops-shipSkill
- maximus-eval-and-testSkill
- maximus-fine-tuningSkill
- maximus-fintech-paymentsSkill
- maximus-investigative-researchSkill
- maximus-k3-model-selectionSkill
- maximus-k3-self-hostingSkill
- maximus-literature-reviewSkill
- maximus-llm-model-selectionSkill
- maximus-local-research-assistantSkill
- maximus-local-research-assistantSkill
- maximus-mlops-deploySkill
- maximus-ollama-opsSkill
- maximus-openclaw-localSkill
- maximus-people-finder-recruiterSkill
- maximus-people-finderSkill
- maximus-plan-implementationSkill
- maximus-prompt-engineeringSkill
- maximus-python-scientificSkill
- maximus-rag-pipelineSkill
- maximus-replit-handoff-proSkill
- maximus-slm-evalSkill
- maximus-slm-local-finetuneSkill
- maximus-slm-local-stackSkill
- maximus-slm-tool-callingSkill
- maximus-transaction-analystSkill
- maximus-write-articleSkill
- memory-keeperSkill
- skill-templateSkill
- web-researchSkill
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
- Distinctive: line 19
If there's no plan and the work is non-trivial, stop and plan first.
- Distinctive: line 23
Read before edit: Always read the file you're editing — and the files that import or are imported by it — before changing a line.
- Distinctive: line 26
Verify after every meaningful step: Run the relevant tests (or, at minimum, the file's typecheck/lint) after each task.
- Distinctive: line 28
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.
- Distinctive: line 35
Read the target file(s).
- Distinctive: line 37
Run the task's verify step.
- Distinctive: line 38
If green: commit with a message tying it to the plan task ("plan-task-3: validate webhook signature").
- Distinctive: line 39
If red: stop and diagnose before continuing.
- Distinctive: line 42
Surface deviations explicitly: When you change scope ("had to touch file X that wasn't in the plan"), note it in the PR description.
- Very specific: line 46
Use the read tool to load a file before editing.
- Very specific: line 47
Use the edit tool (exact string replacement) for surgical changes.
- Very specific: line 48
Use the write tool only for new files or when the rewrite *is* the task.
- Very specific: line 49
Use grep/glob to confirm an identifier or pattern's true usage across the repo before renaming, removing, or refactoring it.
≈ “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.
Files
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)
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- 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-implementationfirst. - 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.
- Execute task by task. For each plan task:
- Read the target file(s).
- Apply the minimum edit.
- Run the task's verify step.
- If green: commit with a message tying it to the plan task ("plan-task-3: validate webhook signature").
- If red: stop and diagnose before continuing. Don't pile changes on top of a broken state.
- Run the full test suite at major milestones. End of each module. Before opening a PR. Before merging.
- 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.
- 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
readtool to load a file before editing. - Use the
edittool (exact string replacement) for surgical changes. Prefer this over rewriting the whole file. - Use the
writetool only for new files or when the rewrite is the task. - Use
grep/globto 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.cfgformatting (black,ruff). Add tests intests/matching existing structure. Use type hints if the project uses them. Neverpip installglobally — 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 —lockfiletells you). Keep new code TS if the project is TS; don't smuggle in JS. - Go: match the module layout;
go fmtis non-negotiable; new packages get adoc.goif the project has them elsewhere.
Gotchas
- Blind overwriting is the catastrophic failure: a
writeto 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.
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
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.

