coograph-apply
Skill17 starsChanged 7 months agoMITView on GitHub
Implement tasks from an OpenSpec change. Use when the user wants to start or continue implementing a proposed change.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- coograph-initSkill
- coograph-archiveSkill
- coograph-disable-multi-modelsSkill
- coograph-exploreSkill
- coograph-initSkill
- coograph-new-ticketSkill
- coograph-proposeSkill
- coograph-rebuild-graphSkill
- coograph-retroSkill
- coograph-suggest-multi-modelsSkill
- coograph-ultra-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 15 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
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
- Very specific: line 17
If a name is provided, look for openspec/changes/<name>/ or openspec/changes/<date>-<name>/.
- Distinctive: line 19
If no name is provided:
- Distinctive: line 21
If only one active change exists, use it and announce: "Using change: <name>"
- Distinctive: line 22
If multiple exist, ask the user to select
- Distinctive: line 26
Read these files from the change directory:
- Distinctive: line 31
If any file is missing, report which one and ask the user for its location.
- Very specific: line 42
CRITICAL: Follow tasks.md literally.
- Distinctive: line 46
Read every source file to be modified — in full — before making any change
- Distinctive: line 49
Every task MUST result in actual file edits — if a task produces zero edits, it is not complete
- Distinctive: line 56
Before invoking the Reviewer:
- Very specific: line 68
If REQUEST_CHANGES: add findings as new tasks under a "Review Fixes" heading in tasks.md.
- Distinctive: line 69
Circuit breaker: after 3 review cycles on the same area, STOP and ask the user.
- Distinctive: line 70
If APPROVE: proceed to build verification.
- Distinctive: line 72
Lightweight gate (quick changes): Run a targeted logic check on changed files.
- Very specific: line 76
Read .github/copilot-instructions.md for the project's build/quality commands.
- Distinctive: line 78
If commands are not documented, ask the user.
- Distinctive: line 113
Read all context files before starting
- Distinctive: line 114
Keep changes minimal and scoped to each task
- Distinctive: line 116
Update task checkbox immediately after completing each task
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Implement tasks from an OpenSpec change in openspec/changes/.
Step 1: Identify the change
If a name is provided, look for openspec/changes/<name>/ or openspec/changes/<date>-<name>/.
If no name is provided:
- List directories in
openspec/changes/(excludingarchive/) - If only one active change exists, use it and announce: "Using change:
<name>" - If multiple exist, ask the user to select
Step 2: Read context
Read these files from the change directory:
proposal.md— goals, scope, decisionsspecs/<capability>/spec.md— requirements and acceptance criteriatasks.md— task list and completion status
If any file is missing, report which one and ask the user for its location. Do not confabulate contents.
Show current progress: "N/M tasks complete — working on: <next task>"
Step 3: Classify change size
- Quick (≤3 tasks, ≤50 lines changed, no new files): skip full self-verification and auto-review — run a lightweight logic check instead.
- Standard (everything else): run all verification and review steps.
Step 4: Implement tasks
CRITICAL: Follow tasks.md literally. Never reinterpret or regenerate tasks. Never invent field names, API types, or schemas that don't exist in the actual source code.
For each pending task:
- Announce which task is being worked on
- Read every source file to be modified — in full — before making any change
- Grep for every field/type name before using it. If a name cannot be found: STOP, report what's missing, ask the user
- Make the code changes
- Every task MUST result in actual file edits — if a task produces zero edits, it is not complete
- Mark complete in tasks.md:
- [ ]→- [x]
Pause if: task is unclear, implementation reveals a design issue, or an error is encountered.
Step 5: Self-verification (standard changes only)
Before invoking the Reviewer:
- Feature inventory: compare modified files against their original (
git show HEAD:<path>). List features: PRESERVED or REMOVED. Restore any removed without explicit spec request. - Spec text match: re-read the spec. Verify every requirement is implemented. Flag mismatches.
- i18n checks (if project uses i18n): verify new/changed keys exist in all language files.
Fix any failures before proceeding.
Step 6: Review gate (standard changes only)
Invoke @Reviewer (VS Code) or run /coograph-review (Claude Code). When the change is big (more than ~15 files, or anything with queue jobs, locks, state transitions, data migrations or cross-service contracts), tell the user that /coograph-ultra-review exists - a multi-agent hostile review with adversarial verification, about a million tokens and twenty minutes - and offer it; run it only when asked.
- If REQUEST_CHANGES: add findings as new tasks under a "Review Fixes" heading in
tasks.md. Implement fixes, then re-review changed files only. - Circuit breaker: after 3 review cycles on the same area, STOP and ask the user.
- If APPROVE: proceed to build verification.
Lightweight gate (quick changes): Run a targeted logic check on changed files. Fix issues before build verification.
Step 7: Build verification
Read .github/copilot-instructions.md for the project's build/quality commands. Run them in documented order. Fix failures and re-run.
If commands are not documented, ask the user.
Step 8: Report
## Implementation Complete
**Change:** <change-name>
**Progress:** N/N tasks complete
### Completed This Session
- [x] Task 1
- [x] Task 2
All tasks complete. Ready to archive — run coograph-archive.Then run python3 .github/retro/retro.py --status. If the file is missing or the command fails, say nothing. If it exits 0, ask one line and wait: Run /coograph-retro now? (<n> sessions since last retro). Default is no.
If paused:
## Implementation Paused
**Progress:** N/M tasks complete
### Issue
<description>
**Options:**
1. <option>
2. <option>Guardrails
- Read all context files before starting
- Keep changes minimal and scoped to each task
- Pause on errors, blockers, or unclear requirements — never guess
- Update task checkbox immediately after completing each task
- Touch only files in the task scope — no drive-by improvements
Red Flags
- Tasks marked done with zero file edits
- More than 100 lines written without running build/tests
- Skipping self-verification because "changes are small"
- Touching files outside task scope "while I'm here"
- Build or tests broken between tasks and not immediately fixed
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.

