coord-refine
Skill0 starsChanged 47 days agoApache-2.0View on GitHub
Fill in the evolved-policy sections of AGENTS.md after a project has been running for a while — high-risk shaping, reasoning overrides, model selection. Companion to coord-init; run at week four or later.
- Commits and pushes
In this repository20 other files it gives its agents.
- coord-archive-indexSkill
- coord-assignSkill
- coord-auditSkill
- coord-checkSkill
- coord-dirtySkill
- coord-discardSkill
- coord-helpSkill
- coord-initSkill
- coord-loop-doctorSkill
- coord-promoteSkill
- coord-requeueSkill
- coord-reviewSkill
- coord-shape-reviewSkill
- coord-shapeSkill
- coord-splitSkill
- coord-statusSkill
- coord-tokensSkill
- coord-unblockerSkill
- merge-to-mainSkill
- rebase-to-mainSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Before asking anything: read the current AGENTS.md so you know what is already there.
- Distinctive: line 16
Keep the shared broad-ask gate in "Project-Specific Rules" intact.
- Very specific: line 25
Ask the user which task surfaces in this project are genuinely high-risk and require the heavy shaping pattern (complex complexity, …
- Distinctive: line 39
Wait for the user's answer.
- Very specific: line 45
Ask the user how they want to deviate from the shared coord default (reasoning_effort: medium for the background loop).
- Distinctive: line 55
Wait for the user's answer.
- Distinctive: line 61
Ask the user how they want to spend model budget on this project.
- Distinctive: line 72
Wait for the user's answer.
- Distinctive: line 83
Leave all other sections (What This Repo Is, Companion Context, Repo Map, Validation, Documentation Maintenance) exactly as they are.
- Distinctive: line 84
If any of the three subsections were already hand-edited and the user confirmed no change, leave them untouched.
- Distinctive: line 94
Do not ask for further confirmation before writing.
≈ “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
You are refining the "Project-Specific Rules" section of AGENTS.md for this project. These sections only make sense after operating the project — they can't be filled in at bootstrap time. Your job is to interview the user through three targeted questions and write the results back.
Project-root preflight:
- Resolve the canonical project checkout before reading, editing, staging, committing, or pushing:
COORD_MAIN=$("${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord-project-root") && cd "$COORD_MAIN" - This is required when the skill is invoked from a sibling task worktree; evolved coordination policy belongs in the main checkout.
Before asking anything: read the current AGENTS.md so you know what is already there. If any subsection is already hand-edited (not a TODO marker), show the user the existing content before proposing changes — never silently overwrite it.
Keep the shared broad-ask gate in "Project-Specific Rules" intact. It is global workflow policy, not an evolved project preference:
- For broad requests, use
scope-brieffirst. - For known review surfaces, route through
review-code,review-ui, orreview-securitybefore narrower specialists.
Q1 — High-Risk Shaping Surfaces
Ask the user which task surfaces in this project are genuinely high-risk and require the heavy shaping pattern (complex complexity, architect + coder + reviewer roles, review_rounds_max: 2, reasoning_effort: high|xhigh).
Prompt the user with the standard categories as a starting point — edit to fit:
"Which of these surfaces apply to this project, and are there others?
- Database migrations (schema changes, Postgres/Docker cutover, destructive cleanup)
- Auth / security / secrets
- Money / trading / live order submission
- Live-operations changes (touching a running service in prod)
- Serious RCA (production incidents, data loss)
Confirm, edit, add, or remove entries. Also note: should any of these escalate to
reasoning_effort: xhigh?"
Wait for the user's answer. Record the final list and any xhigh callouts.
Q2 — Reasoning Baseline Overrides
Ask the user how they want to deviate from the shared coord default (reasoning_effort: medium for the background loop). The key decisions are:
"For this project:
- Which task types should stay at
mediumeven if they have several subtasks? (e.g. code-fix, refactor, docs, smoke-test)- When is it right to raise to
highvs. splitting the task instead?- Any task types you want permanently at
highorxhighregardless of the above?If the shared defaults are fine as-is, just say so and I'll skip this section."
Wait for the user's answer. If they say the defaults are fine, leave the reasoning subsection as TODO.
Q3 — Model Selection
Ask the user how they want to spend model budget on this project. Prompt with the standard tiers:
"For Claude model selection (
model_claude):
trivialtasks → haiku?simplecode-fix / refactor → sonnet?complex/xhigh→ opus?For Codex (
model_codex): default isgpt-5.6-sol— any exceptions?Confirm the defaults, or describe where you want to differ."
Wait for the user's answer.
Write the result
Once all three answers are collected, update AGENTS.md:
- Replace (or create) the High-Risk Shaping subsection under "Project-Specific Rules" with the confirmed list.
- Replace (or create) the Reasoning Baseline subsection with the confirmed override rules, or leave the TODO if the user said the shared defaults are fine.
- Replace (or create) the Model Selection subsection with the confirmed guidance.
- Leave all other sections (What This Repo Is, Companion Context, Repo Map, Validation, Documentation Maintenance) exactly as they are.
- If any of the three subsections were already hand-edited and the user confirmed no change, leave them untouched.
- Preserve the shared broad-ask gate exactly once; do not duplicate or remove it while refining local policy.
After writing:
- Validate — confirm the three target subsections are present and contain no residual TODO markers.
- Stage and commit —
git add AGENTS.md, then commit with messagedocs: refine AGENTS.md policy sections via coord-refine. Pass via heredoc. Append trailerCo-Authored-By: coord-bot <noreply@coord.local>. - Push —
git push. Stop on non-zero. - Report — one line listing which subsections were updated and which were left unchanged, plus "Committed and pushed."
Do not ask for further confirmation before writing. The user has already confirmed each section.
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.

