agentic-coding-loop
Skill0 starsChanged 3 days agoMITView on GitHub
Use when implementing code from a spec through a bounded build-test-fix loop with explicit acceptance criteria, automated checks, live verification when needed, and clear stop conditions.
In this repository108 other files it gives its agents.
- adaptive-estimationSkill
- adaptive-loop-budgetingSkill
- adopt-and-deleteSkill
- adversarial-reviewSkill
- agent-drives-uiSkill
- agent-otel-trajectorySkill
- agents-as-iac-modulesSkill
- ascii-ui-mockupsSkill
- authoring-html-emailSkill
- authoring-skills-vs-mcpSkill
- batched-ssh-enumerationSkill
- c4-architectureSkill
- challenge-the-premiseSkill
- codegraph-bootstrapSkill
- codegraph-worktree-startupSkill
- colocated-pod-tolerationsSkill
- command-creatorSkill
- complexity-budgetsSkill
- connector-readinessSkill
- context-anchored-patchingSkill
- continuous-issue-resolutionSkill
- credential-proxySkill
- criticality-tiered-reportingSkill
- data-connector-buildingSkill
- declarative-firstSkill
- disk-pressure-forensicsSkill
- early-return-over-elseSkill
- email-triageSkill
- enums-codify-behaviorSkill
- ephemeral-workspace-lifecycleSkill
- event-sourcingSkill
- evidence-claim-boundariesSkill
- exhaustive-matchSkill
- feature-coverage-not-just-line-coverageSkill
- full-disk-forensicsSkill
- gate-before-pushSkill
- github-pr-shepherdingSkill
- graceful-shutdown-stateful-agentsSkill
- grounded-generationSkill
- iac-incident-responseSkill
- iac-not-ad-hocSkill
- instrumented-service-scaffoldSkill
- interface-over-conditionalsSkill
- knowledge-routingSkill
- lean-on-oss-standardsSkill
- live-money-disciplineSkill
- live-state-verificationSkill
- loop-governance-and-learningSkill
- low-level-executor-task-specSkill
- map-dispatch-over-conditionalsSkill
- merge-conflict-disciplineSkill
- mermaid-diagramsSkill
- oke-arc-runners-opentofuSkill
- orchestrate-agySkill
- orchestrate-claudeSkill
- orchestrate-codexSkill
- orchestrate-geminiSkill
- otel-emit-at-willSkill
- parameter-designSkill
- parse-dont-validateSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
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
- Distinctive: line 8
Use this when a coding task should move through a closed loop: understand the spec, create or identify checks, implement the smallest …
- Distinctive: line 19
Before changing code, name:
- Distinctive: line 38
Orient: Read the relevant code, docs, tests, issue, or spec.
- Distinctive: line 40
Ratchet first when possible: If the task fixes a bug or adds observable behavior, create the cheapest check that should fail before the …
- Distinctive: line 44
Implement the smallest coherent slice: Prefer one behavior change over a broad refactor.
- Distinctive: line 46
Run the nearest checks: Start with fast local checks, then escalate to integration, browser, API, or live verification when the behavior …
- Distinctive: line 49
Inspect failures: Treat failing checks as signal.
- Distinctive: line 59
Use the cheapest layer that can actually prove the claim:
- Distinctive: line 87
Stop and report success only when:
- Distinctive: line 94
Stop and escalate as blocked when:
- Distinctive: line 103
Call a partial result "partial" or "blocked." Do not upgrade it to done because time ran out or the latest command looked promising.
- Distinctive: line 108
Use this compact closeout:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Agentic Coding Loop
Use this when a coding task should move through a closed loop: understand the spec, create or identify checks, implement the smallest slice, run evidence, fix the root cause, and repeat until the acceptance criteria are met or the loop hits a real blocker.
This is not a general instruction to "keep trying." The loop must be bounded, observable, and grounded in checks that would catch the behavior users or systems depend on.
Loop Contract
Before changing code, name:
- Goal: the user-visible or system-visible behavior that should change.
- Acceptance criteria: what must be true before the work can be called done.
- Evidence path: the tests, type checks, lint, API checks, browser checks, or runtime probes that will prove the criteria.
- Budget: the maximum useful attempts, time, or escalation threshold.
- Authority boundary: actions the agent may take autonomously and actions that require a human decision.
Derive acceptance criteria from the current governing spec, user request, and observed behavior; use code and existing tests as evidence, not as the authority for what the product should do. If criteria are missing, infer only a small, unambiguous set. Ask for a high-impact missing decision while continuing independent authorized work. A regression check should fail for the reported bug and retain a valid positive control, rather than mirror the proposed fix.
The Loop
- Orient. Read the relevant code, docs, tests, issue, or spec. Identify the existing patterns before adding a new one.
- Ratchet first when possible. If the task fixes a bug or adds observable behavior, create the cheapest check that should fail before the change and turn green after it. Use [[regression-ratchet]] and [[feature-coverage-not-just-line-coverage]] when they apply.
- Implement the smallest coherent slice. Prefer one behavior change over a broad refactor. Keep mechanical cleanup separate from logic changes.
- Run the nearest checks. Start with fast local checks, then escalate to integration, browser, API, or live verification when the behavior depends on those surfaces.
- Inspect failures. Treat failing checks as signal. Read the actual error, identify the root cause, and make the smallest correction that explains it.
- Repeat with memory of prior attempts. Each iteration must use evidence from the previous one. Do not rerun the same failing command without a code, data, environment, or hypothesis change.
- Close with evidence. Report what changed, which artifacts were checked, which commands or live paths verified it, and any remaining gaps.
Verification Ladder
Use the cheapest layer that can actually prove the claim:
| Claim | Minimum useful evidence |
| Pure code behavior | Unit or behavior test that names the behavior |
| Type or interface contract | Type check, schema check, or contract test |
| Cross-module flow | Integration test or fixture that spans the boundary |
| UI behavior | Browser check, screenshot, or interaction trace |
| API behavior | Request/response check against the target environment |
| Runtime or deployment state | Real artifact check, rollout state, or service probe |
Passing a lower layer does not prove a higher-layer claim. A green unit test does not prove a browser flow works; a successful build does not prove the deployed artifact changed. Use [[verify-real-artifact]] and [[process-aware-done]] for final claims.
Continuous Backlog Handoff
In a multi-worker backlog, hand the tested PR, exact head, acceptance evidence, and gaps to the existing PR shepherd. That role owns review, CI, conflicts, qualified merges, and post-merge verification; the worker may take the next disjoint authorized slice within the WIP limit. One PR's CI wait does not stall unrelated workers. Preserve holds and repository-required checks, and use [[verify-delegated-work]] for policy-permitted exact-artifact evidence reuse. PR handoff alone does not complete acceptance that requires merge or runtime proof.
Stop Conditions
Stop and report success only when:
- acceptance criteria are satisfied;
- evidence came from the right layer for the claim;
- the final diff is scoped to the task; and
- any follow-up is genuinely separate from the shipped behavior.
Stop and escalate as blocked when:
- required credentials, dependencies, data, or environment access are missing;
- the same failure repeats after a bounded number of distinct hypotheses;
- the task requires a product, security, legal, financial, or operational decision outside the agent's authority;
- the implementation would exceed the agreed scope; or
- verification cannot be made independent of the implementation.
Call a partial result "partial" or "blocked." Do not upgrade it to done because time ran out or the latest command looked promising.
Output Shape
Use this compact closeout:
Change: <what changed>
Evidence: <checks or live paths run>
Result: <succeeded, partial, or blocked>
Gaps: <none or explicit remaining uncertainty>
Next: <only if a separate follow-up is warranted>Anti-Patterns
- Iterating without an acceptance criterion or budget.
- Treating retries as progress when no hypothesis changed.
- Adding broad refactors inside a behavior loop.
- Accepting proxy evidence for a user-visible claim.
- Creating tests that only assert the implementation detail you just wrote.
- Continuing autonomously after the loop crosses a human decision boundary.
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.

