engineering-loop
FreeNo executable scriptsNot checkedUse this skill when the user asks to "implement this change", "fix this issue", "add this feature", "make this change properly", "ship this", or for any…
by neuromechanist★ 61 GitHub starsAbout this skill
Engineering Loop (single change, one PR)
The standard loop for one ordinary change: spec to merged PR with review and verification. Lightweight counterpart to the epic-dev workflow.
Scale check (before starting)
| Signal | Route |
|---|---|
| One reviewable unit: one subsystem, roughly a day or less | This skill. |
| 2+ independently reviewable/testable units, or multiple subsystems | epic-dev (phased epic with worktrees). |
| You have not worked in this code before | codebase-onboarding first, then return here. |
| Behavior is wrong and cause unknown | debugging skill first; the fix then follows this loop. |
| No issue exists yet | Create one (except trivial fixes); it is the durable spec. |
| An approved plan of many steps to run hands-off over hours or days | project:manager-loop; each step's PR still follows this loop. |
The loop
- Read the spec.
gh issue view N. If the request is a one-line or ambiguous instruction, restate your interpretation in one sentence with an opt-out ("proceeding on that basis; tell me if you meant X") and continue; do not stall. - Explore just enough, then find the pattern to mirror. Read the target area and locate an existing correct implementation of the same shape (a similar route, a similar test, the sibling module). New code mirrors the house pattern; do not invent a new one for an ordinary change. If the change builds on a third-party API you have not used in this repo, probe the installed version first (import and inspect; do not trust memory).
- Branch.
gh issue develop N --checkout(orgit checkout -b feature/issue-N-<slug>per repo convention). Never work on the default branch. - Pin test first (refactors only). If the change claims to preserve behavior, commit #1 is a characterization test captured against the ORIGINAL code (route inventory, golden output). A pin test written after the move proves nothing.
- Implement the smallest coherent diff. Match surrounding style. Discard incidental churn before committing (lockfiles, formatting of untouched lines). No backward-compatibility shims when the user confirms zero consumers; remove outright and preserve the substantive invariant instead. For every new guard or error path, decide fail-open vs fail-closed explicitly and say why in the code or PR. If you find a genuine adjacent bug outside the assigned scope: fix it only if it is small and mechanistically connected to the change you are already making, and disclose it under its own heading in the PR with evidence; otherwise file an issue. Never fold it silently into the main diff.
- Gate every commit. Format, lint, typecheck, test; the bar is zero NEW
diagnostics against the MEASURED baseline (measure it; do not trust a
documented number, and note discrepancies). Python:
uv run ruff format && uv run ruff check --fix && uv run ty check && uv run pytest. JS/TS:bun run biome check --write && bun test(or the project's configured commands). Commit atomically: subject under 50 characters, no emojis, no AI attribution. For changes to decision logic (parsing, approve/deny paths, routing, security gates), green tests alone are not enough: run a repeatable scenario suite and quote the before/after scores in the PR. - Long-running steps (benchmarks, big builds, batch jobs over ~10
minutes): detach them per
references/background-jobs.md; never leave them as session-tracked shells. Commit expensive-to-reproduce results the moment they land, separately from code. - Push and open the PR. Body: what changed, why (link "Closes #N"), and what was tested with commands and counts. No emojis, no AI attribution. Semantic line breaks remain the default for prose source, but text posted to GitHub (issue and PR bodies, comments, reviews, and discussions) is the exception: keep each paragraph and list item on one source line and separate paragraphs with blank lines; do not insert sentence- or clause-level newlines inside a paragraph. Verify any user-supplied factual claim (dates, numbers, attributions) against available evidence before writing it into a PR, issue, or other durable document; if the evidence contradicts the claim, surface the discrepancy instead of transcribing it.
- Review (two rounds at most). Start the
project:pr-review-toolkitskill while CI runs and follow itsreview-convergence.mdreference: one full review; every finding fixed, rejected with a reason, or filed as an issue; fixes committed on the PR branch and pushed once (a large fix goes in one fix PR based on the PR branch); one delta review only if round 1 was substantial; no third round. A deleted test that held the only coverage of a scenario is a blocking gap, not a nit. - CI, then merge. Wait for checks within the limits in
references/unblock-rules.md; merge when green, using
Install engineering-loop in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the engineering-loop skill do?
Use this skill when the user asks to "implement this change", "fix this issue", "add this feature", "make this change properly", "ship this", or for any ordinary single-PR development task: one issue, one branch, one pull request. For multi-phase features use epic-dev; for unfamiliar code run codebase-onboarding first; for failing behavior use the debugging skill.
How do I install the engineering-loop skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the engineering-loop skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic