agentleFS
GenKerenskyGenKerensky/pi-cartographer/skills/implement/SKILL.md

implement

Skill0 starsChanged 6 months agoMITView on GitHub

Pi Cartographer implementation workflow: execute .plan/<topic>/plan.md phase-by-phase with a single parent writer, minimal .cartographer state, milestone compaction, deterministic receipts, read-only specialist gates, and conventional commits.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, ask-matt and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 17 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 36 projects that use this

  • AWSSkill

    to-spec

    Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.

    Also in 75 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 12 projects that use this

  • qwlabsSkill

    claude-handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    Also in 18 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 22 projects that use this

  • +5 more from aws

The file

Show its rules and text

We split this skill into the rules it gives an agent

39 rules. 0 are common, 17 are distinctive, and 22 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 22

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use when the user asks to implement an existing .plan/<topic>/plan.md plan.

    line 12
  2. Very specific:

    Do not improvise a missing plan.

    line 13
  3. Very specific:

    Use wrapper tools for lifecycle/status/receipt/state mutations.

    line 45
  4. Very specific:

    Do not hand-edit plan checkboxes/status when cartographer_plan_status can do it.

    line 46
  5. Distinctive:

    Do not manually append lifecycle receipts when a wrapper exists.

    line 47
  6. Very specific:

    Do not create duplicate task graphs such as plan.json or generated status.md.

    line 48
  7. Very specific:

    Do not read raw .plan/_private/ inputs unless the phase explicitly uses synthetic fixtures.

    line 49
  8. Very specific:

    Do not use retired cartographer-pathfinder as a routine implementation writer.

    line 50
  9. Distinctive:

    Do not mark tasks or validations complete without evidence.

    line 51
  10. Distinctive:

    Do not skip auditor review after deterministic validation.

    line 52
  11. Distinctive:

    Do not skip ADR or requirements-fold handling when the plan requires it.

    line 53
  12. Very specific:

    Keep .cartographer/current.json non-authoritative and ignored.

    line 54
  13. Distinctive:

    Read only when needed:

    line 58
  14. Distinctive:

    Read the plan and identify phases, dependencies, open questions, validation items, and ADR metadata.

    line 71
  15. Very specific:

    Run subagent({action:"list"}) before any specialist handoff.

    line 73
  16. Distinctive:

    Check git status --short, branch, and commit SHA.

    line 74
  17. Distinctive:

    Stop if unrelated user changes are present.

    line 75
  18. Very specific:

    Start/resume with cartographer_implement start.

    line 77
  19. Very specific:

    Use cartographer_implement step before edits.

    line 82
  20. Very specific:

    If resuming after compaction, read resume-primer first, use state-resume only for expanded context, and respond with current phase, next …

    line 86
  21. Very specific:

    Read references/state-compaction.md if state/resume details are unclear.

    line 90
  22. Very specific:

    Write a short retrieval plan with exact probes before broad reading.

    line 94
  23. Very specific:

    Read references/retrieval-delegation.md for specialist or retrieval edge cases.

    line 98
  24. Distinctive:

    Run the narrowest useful check.

    line 106
  25. Very specific:

    Check off task/validation IDs with cartographer_plan_status only after evidence.

    line 108
  26. Very specific:

    Read references/execution-loop.md for detailed loop and commit discipline.

    line 111
  27. Distinctive:

    Run all phase validation items until green.

    line 115
  28. Distinctive:

    Run topic validation when plan/graph artifacts change.

    line 116
  29. Distinctive:

    Create/update the phase context pack.

    line 117
  30. Very specific:

    Read references/validation-gates.md for fallback and final validation details.

    line 122
  31. Very specific:

    Run cartographer_implement record with validation/audit receipt IDs.

    line 127
  32. Very specific:

    Run cartographer_implement compact for phase-end state.

    line 128
  33. Very specific:

    Call cartographer_compact_context when available to request actual Pi compaction.

    line 129
  34. Distinctive:

    Commit intended files with a Conventional Commit message.

    line 130
  35. Distinctive:

    After all phases complete:

    line 136
  36. Distinctive:

    Run full topic and project validation.

    line 138
  37. Very specific:

    Read references/finalization-adr.md before finalization.

    line 143
  38. Distinctive:

    Before reporting completion, verify:

    line 156
  39. Distinctive:

    Every validation item has command, auditor, or approved manual evidence.

    line 161

“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “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

Pi Cartographer Implement

When to Use

Use when the user asks to implement an existing .plan/<topic>/plan.md plan. Do not improvise a missing plan; use the plan workflow first.

The parent/current agent is the default writer. Specialists are read-only reviewers or advisors unless the user explicitly approves a narrow fallback handoff.

Core loop:

Orient → Select → Narrow → Inspect → Act → Validate → Record → Compact → Continue

Inputs

Primary source of truth:

  • .plan/<topic>/plan.md
  • .plan/<topic>/plan.nodes.jsonl
  • .plan/<topic>/plan.edges.jsonl
  • .plan/<topic>/receipts.jsonl
  • .plan/<topic>/context-packs.jsonl

Supporting context when present:

  • proposal, interview, requirements, design, map, and fact artifacts under .plan/<topic>/
  • .cartographer/<topic>/state.json
  • .cartographer/<topic>/journal.jsonl
  • .cartographer/current.json as a non-authoritative local hint only
  • .plan/_index/project-graph.sqlite and manifest for indexed retrieval

Hard Rules

  • Work one dependency-unblocked phase at a time.
  • Use wrapper tools for lifecycle/status/receipt/state mutations.
  • Do not hand-edit plan checkboxes/status when cartographer_plan_status can do it.
  • Do not manually append lifecycle receipts when a wrapper exists.
  • Do not create duplicate task graphs such as plan.json or generated status.md.
  • Do not read raw .plan/_private/** inputs unless the phase explicitly uses synthetic fixtures.
  • Do not use retired cartographer-pathfinder as a routine implementation writer.
  • Do not mark tasks or validations complete without evidence.
  • Do not skip auditor review after deterministic validation.
  • Do not skip ADR or requirements-fold handling when the plan requires it.
  • Keep .cartographer/current.json non-authoritative and ignored.

Reference Files

Read only when needed:

  • references/execution-loop.md — detailed phase loop, checklist/status, commits.
  • references/validation-gates.md — validation, auditor gates, fallbacks, final checks.
  • references/state-compaction.md — state mutation, journal, compaction/resume.
  • references/retrieval-delegation.md — retrieval plans, specialists, least privilege.
  • references/finalization-adr.md — requirements fold, ADR, final implementation gate.

Procedure

1. Start and preflight

  1. Derive the topic and locate .plan/<topic>/plan.md.
  2. Read the plan and identify phases, dependencies, open questions, validation items, and ADR metadata.
  3. Run subagent({action:"list"}) before any specialist handoff.
  4. Check git status --short, branch, and commit SHA.
  5. Stop if unrelated user changes are present.
  6. Refresh the index with cartographer_index ensure when stale.
  7. Start/resume with cartographer_implement start.

2. Select the next phase

  1. Validate or initialize state with cartographer_state / cartographer_implement.
  2. Use cartographer_implement step before edits.
  3. Select the first incomplete phase whose dependencies are complete.
  4. Mark it in-progress with cartographer_plan_status.
  5. Set one next_action and a narrow working_set with cartographer_state.
  6. If resuming after compaction, read resume-primer first, use state-resume only for expanded context, and respond with current phase, next action, and files to inspect.

Read references/state-compaction.md if state/resume details are unclear.

3. Gather focused context

Write a short retrieval plan with exact probes before broad reading. Prefer plan, map/fact graphs, context packs, receipts, cartographer_index, focused rg, and selective read calls. Keep code retrieval separate from .plan/ rationale.

Read references/retrieval-delegation.md for specialist or retrieval edge cases.

4. Execute phase tasks

For each task:

  1. Re-open active files from disk.
  2. Apply one scoped parent-owned patch.
  3. Run the narrowest useful check.
  4. Record validation receipts with cartographer_validation or an approved wrapper.
  5. Check off task/validation IDs with cartographer_plan_status only after evidence.
  6. Record validation refs with cartographer_implement record.

Read references/execution-loop.md for detailed loop and commit discipline.

5. Validate and audit the phase

  1. Run all phase validation items until green.
  2. Run topic validation when plan/graph artifacts change.
  3. Create/update the phase context pack.
  4. Request read-only cartographer-auditor review after deterministic receipts pass.
  5. Capture PASS/FAIL with cartographer_handoff auditor.
  6. On FAIL, fix narrowly, rerun checks, record wrapper receipts/state refs, and re-audit.

Read references/validation-gates.md for fallback and final validation details.

6. Complete the phase and continue

  1. Mark the phase complete with cartographer_plan_status.
  2. Run cartographer_implement record with validation/audit receipt IDs.
  3. Run cartographer_implement compact for phase-end state.
  4. Call cartographer_compact_context when available to request actual Pi compaction.
  5. Commit intended files with a Conventional Commit message.
  6. Re-orient and continue to the next phase unless blocked by a human gate, unresolved risk, unrelated changes, or explicit user stop instruction.

7. Finalize implementation

After all phases complete:

  1. Run full topic and project validation.
  2. Capture final auditor PASS.
  3. Resolve requirements fold and ADR handling.
  4. Run cartographer_implement finalize.

Read references/finalization-adr.md before finalization.

Specialist Roles

  • cartographer-auditor: default read-only semantic gate after deterministic validation.
  • cartographer-compass: scope/dependency/repeated-failure/plan-drift advice.
  • cartographer-archivist: isolated missing research compression.

Fallback reviewers/oracles require explicit receipted fallback rationale. Routine writer handoff is not the default.

Validation Checklist

Before reporting completion, verify:

  • Plan and plan graph statuses match.
  • State validates or absence is intentionally receipted.
  • Journal contains only durable lessons, not routine logs.
  • Every validation item has command, auditor, or approved manual evidence.
  • Final auditor PASS exists.
  • ADR intent and requirements-fold handling are resolved.

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.