agentleFS
paullukicpaullukic/coograph/.github/skills/coograph-apply/SKILL.md

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.

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
  1. Very specific:

    If a name is provided, look for openspec/changes/<name>/ or openspec/changes/<date>-<name>/.

    line 17
  2. Distinctive:

    If no name is provided:

    line 19
  3. Distinctive:

    If only one active change exists, use it and announce: "Using change: <name>"

    line 21
  4. Distinctive:

    If multiple exist, ask the user to select

    line 22
  5. Distinctive:

    Read these files from the change directory:

    line 26
  6. Distinctive:

    If any file is missing, report which one and ask the user for its location.

    line 31
  7. Very specific:

    CRITICAL: Follow tasks.md literally.

    line 42
  8. Distinctive:

    Read every source file to be modified — in full — before making any change

    line 46
  9. Distinctive:

    Every task MUST result in actual file edits — if a task produces zero edits, it is not complete

    line 49
  10. Distinctive:

    Before invoking the Reviewer:

    line 56
  11. Very specific:

    If REQUEST_CHANGES: add findings as new tasks under a "Review Fixes" heading in tasks.md.

    line 68
  12. Distinctive:

    Circuit breaker: after 3 review cycles on the same area, STOP and ask the user.

    line 69
  13. Distinctive:

    If APPROVE: proceed to build verification.

    line 70
  14. Distinctive:

    Lightweight gate (quick changes): Run a targeted logic check on changed files.

    line 72
  15. Very specific:

    Read .github/copilot-instructions.md for the project's build/quality commands.

    line 76
  16. Distinctive:

    If commands are not documented, ask the user.

    line 78
  17. Distinctive:

    Read all context files before starting

    line 113
  18. Distinctive:

    Keep changes minimal and scoped to each task

    line 114
  19. Distinctive:

    Update task checkbox immediately after completing each task

    line 116

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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/ (excluding archive/)
  • 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, decisions
  • specs/<capability>/spec.md — requirements and acceptance criteria
  • tasks.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:

  1. Announce which task is being worked on
  2. Read every source file to be modified — in full — before making any change
  3. Grep for every field/type name before using it. If a name cannot be found: STOP, report what's missing, ask the user
  4. Make the code changes
  5. Every task MUST result in actual file edits — if a task produces zero edits, it is not complete
  6. 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:

  1. Feature inventory: compare modified files against their original (git show HEAD:<path>). List features: PRESERVED or REMOVED. Restore any removed without explicit spec request.
  2. Spec text match: re-read the spec. Verify every requirement is implemented. Flag mismatches.
  3. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.