{"data":{"slug":"discovered-f7ccd049b56c81105cc57a838b87e9755875b6ffdf6f8911","title":"Rjv Work Plan","summary":"Maintain branch-scoped working memory in a committed `.plans\/{name}.md` file keyed by branch, reconcile against code before acting, and leave a deterministic RESUME HERE pointer. Classifies Build mode (simple, spec-driven, gated + spec-driven) at creation and every reconcile, loading `rjv-spec-driven` or `rjv-gated-build` when required. Archives plans after merge.","url":"https:\/\/skillshunter.net\/skills\/discovered-f7ccd049b56c81105cc57a838b87e9755875b6ffdf6f8911","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-f7ccd049b56c81105cc57a838b87e9755875b6ffdf6f8911","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-f7ccd049b56c81105cc57a838b87e9755875b6ffdf6f8911.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-f7ccd049b56c81105cc57a838b87e9755875b6ffdf6f8911\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before creating or modifying a plan, ensure the branch is classified with the correct Build mode. For `spec-driven` or `gated + spec-driven` modes, use `rjv-spec-driven` or `rjv-gated-build` respectively. Always reconcile-on-open by reading the plan and reconciling it with the current code state before taking any action.","instructions":"---\nname: rjv-work-plan\ndescription: \"How-to: maintain branch-scoped working memory in one committed .plans\/{name}.md keyed by Branch: (a simple branch gets none and uses SIMPLE-LANE.md), reconcile against code before acting, and leave a deterministic RESUME HERE pointer. Classifies Build mode (simple, spec-driven, gated + spec-driven) at creation and every reconcile, loading rjv-spec-driven or rjv-gated-build when required. Archives plans after merge. Handing work between agents is rjv-agent-relay. Triggers: start\/pick up\/resume a branch, make a plan, status\/check-in, what next, when did this ship.\"\n---\n\n# Work plan: branch-scoped working memory\n\n**The branch is the unit of work. One committed plan per branch is its memory.**\nThe plan holds volatile state: what we are doing and where we stopped. Durable\ntruth lives in the docs `rjv-spec-driven` owns: spec in `_docs\/features\/`,\nglossary in `CONTEXT.md`, ADRs in `docs\/adr\/`. The plan links to durable docs\nand never copies them.\n\n- `.plans\/<name>.md` is the working memory for one branch. It is committed, so\n  any agent on any machine that checks out the branch resumes from it.\n- **Each plan declares `Branch: <name>` in its header.** The filename can be any\n  readable topic name. Resume finds the plan whose `Branch:` matches\n  `git branch --show-current`. Git branches are the active-work index: there is\n  no `RESUME.md` or other index file. Concurrent work runs on concurrent branches\n  (or worktrees), each with its own committed plan.\n- **A plan is never deleted.** It is archived on merge and kept. It moves to `.plans\/shipped\/` with a\n  final status and dates. Top-level `.plans\/*.md` is work in flight;\n  `.plans\/shipped\/` is the delivery record. The lifecycle continues past merge\n  into maintenance; see [`LIFECYCLE.md`](.\/LIFECYCLE.md).\n\nThe same files serve Claude Code, Codex and any other agent. Reference this\nskill from AGENTS.md so every agent follows it.\n\n## Authorship: the human's identity only\n\n**Leave AI authorship and generator credit out of everything you write, unless\nthe human explicitly asks for it.** That covers commit messages and trailers,\nPR\/issue bodies, comments, plans, specs, ADRs, source comments and generated\nfiles. It excludes `Generated by Claude`, `Generated by Codex`, an AI\n`Co-Authored-By`, model names, badges, emojis and any equivalent signature or\nfooter. Git already records the human author. Keep any attribution a human\ndeliberately wrote exactly as written.\n\n## Entry point: resume or start\n\nOn any new conversation about the current work, walk these steps in order.\nWrite no code before step 4 is done.\n\n1. Find this branch's plan:\n   ```\n   b=$(git branch --show-current)\n   grep -l \"^Branch: $b\\$\" .plans\/*.md\n   ```\n   - **1 match**: that is the plan.\n   - **0 matches**: the branch is not scoped yet. Classify it with the\n     Build-mode gate below. `simple`: write no plan file; the commit message\n     carries the one-line intent. Steps 2 to 5 do not apply. Otherwise create a\n     plan (format below) with `Branch:`, goal and `Started:` before touching code. For a follow-up\n     on shipped work, first run `grep -l \"<topic>\" .plans\/shipped\/*.md` and link\n     that plan.\n   - **More than 1 match**: this breaks one plan per branch. Ask the human, or\n     take the most recently modified plan and flag the others as stragglers.\n2. `grep -A6 \">>> RESUME HERE <<<\" <that-plan>` to land on the resume block,\n   then read the whole plan.\n3. Read every durable doc the plan's **Source of Truth** section links (specs\n   via `rjv-spec-driven`, glossary, ADRs).\n4. **Reconcile-on-open** (below). Only then act.\n5. Report to the human: current state, drift found, next step about to be taken.\n\nDone when: on a `simple` branch, the commit message carries the intent;\notherwise `Last reconciled:` carries today's date and the human has the step 5\nreport.\n\n## Plan format\n\n```\n# Plan: <topic or branch>\nBranch: <branch-name>          \u2190 the deterministic key; resume matches on this line\nBuild mode: simple | spec-driven | gated + spec-driven\nStatus: brainstorm | approved | in-progress | blocked | shipped | maintenance | closed\nStarted: <date>                \u2190 stamped at creation\nShipped: <date | \u2014>            \u2190 stamped when it lands on main \/ hits prod\nLast reconciled: <date> \u2014 <matches reality? what drifted?>\n\n## Goal            \u2190 what this branch delivers\n## Cast            \u2190 who builds this: agents, models, approver (see below)\n## Decisions       \u2190 locked choices + why (crystallized brainstorm; promote hard ones to ADRs)\n## Open Questions  \u2190 still-live brainstorm (resolve \u2192 Decisions or ADR)\n## Current State   \u2190 VERIFIED ground truth now\n## Next Steps      \u2190 ordered resume point; carries the RESUME HERE block\n## Regression Guard\u2190 how to avoid breaking existing behaviour\n## Out of Scope\n## Source of Truth \u2190 links to _docs\/ spec, glossary, ADRs, key file:line\n```\n\nTask lists, test cases and data models go under Next Steps or Current State.\nWrite one line per item in agent register: terse facts, file:line. The plan\nholds only volatile state; settled durable facts promote out in real time\n(below).\n\n**Brainstorm lives in the plan.** A resolved point becomes a one-line Decision\nwith its why (promote hard-to-reverse ones to an ADR). An unresolved point goes\nto Open Questions. Any other musing becomes one of those two or is deleted.\n\n**Status is the lifecycle, and it runs past merge:**\n\n```\nbrainstorm \u2192 approved \u2192 in-progress \u21c4 blocked \u2192 shipped \u2192 maintenance \u2192 closed\n```\n\n`shipped` = merged and live. `maintenance` = live and being watched: hotfixes,\nfollow-ups and prod findings land against it. `closed` = settled, nothing\noutstanding, read-only history. **The status is true at all times.** Stamp it\nin the same commit as the event; a stale `in-progress` on a merged plan\ncorrupts the timeline.\n\n**Next Steps always carries the literal marker block:**\n\n```\n## Next Steps\n>>> RESUME HERE <<<\nStep: <plan step id> \u2014 <status>\nCriteria: <active criterion IDs | none>\nDo next: <one imperative \u2014 the exact next action>\nMust-read first: <file:line, \u2026>\n<<< END RESUME >>>\n1. \u2026ordered steps after the current one\u2026\n```\n\nCopy `>>> RESUME HERE <<<` and `<<< END RESUME >>>` byte for byte. The resume\ngrep matches the literal strings, so a fixed marker lands every time even when\nheaders drift. Rewrite the block at the end of every step.\n\nText after `\u2190` is annotation. The `Branch:` line holds the name and nothing\nafter it, or the resume grep misses the plan.\n\n**Cast section.** The agent lineup is a locked decision, recorded at plan\ncreation. Every resume plays its role without renegotiating:\n\n```\n## Cast\nOrchestrator: claude-code @ fable        \u2190 holds this plan, integrates\nAuthor:       claude (main session)      \u2190 or: codex \u00b7 qwen3.6:35b via rjv-codex-ollama-subagents\nReviewer:     codex via codex:rescue     \u2190 explicit APPROVED gates each step (gated builds)\nSubagents:    haiku = sweeps\/forwarders \u00b7 sonnet = routine code   \u2190 picked per task via rjv-delegate\nHuman gates:  spec sign-off \u00b7 USER-flagged decisions \u00b7 live\/prod switches\n```\n\n**Every task on every branch is routed by `rjv-delegate`** (with host\nrungs in `rjv-subagents-claude` or `rjv-subagents-codex`). The Cast is\nthe starting default. When the mix of work shifts, recast and log it as\na Decision with the why. Casting rules for gated builds live in\n`rjv-gated-build` (`CASTING.md`).\n\n## Build-mode gate: classify before code\n\nAt plan creation and every reconcile, record exactly one `Build mode` by\nwalking the lists below:\n\n```text\nsimple\nspec-driven\ngated + spec-driven\n```\n\nUse `spec-driven` when ANY item is true:\n\n- real feature or behaviour change with more than one meaningful implementation slice;\n- architecture\/foundation, public SDK\/API\/contract, state machine, durable data, or migration;\n- multiple apps, actors, journeys, providers, callbacks, jobs, or embedded Features;\n- the branch needs acceptance criteria, a glossary, or a hard decision record;\n- a review discovers that prose intent and implementation can diverge.\n\nUse `gated + spec-driven` when ANY item is true:\n\n- money, financial correctness, production safety, security, destructive work, or high blast radius;\n- multiple author\/reviewer agents or an explicit independent approval loop;\n- zero-debt, human QA, or phase-by-phase ship gates;\n- repeated rejection\/rework shows one agent's self-review is insufficient.\n\n`simple` is only for one-slice, low-risk work whose complete intent fits in one\nplan sentence. When unsure, choose the stricter mode. **A branch keeps the\nstrictest mode it has qualified for**, even when that mode's gate is\ninconvenient.\n\nMode consequences:\n\n- `simple` \u2192 no plan file and no spec; follow [`SIMPLE-LANE.md`](.\/SIMPLE-LANE.md).\n  If the branch later qualifies for a stricter mode, create the plan then.\n- `spec-driven` \u2192 load `rjv-spec-driven`; create\/link the durable spec before `WORK`.\n- `gated + spec-driven` \u2192 also load `rjv-gated-build`; grill the spec before code and\n  require independent approval per slice.\n- In both spec modes, the plan's `RESUME HERE` names the active criterion IDs.\n\n## Ceiling: the plan stays thin\n\n**Hard ceiling ~400 lines \/ ~20KB.** A plan is re-read on every resume, so its\nsize is a token cost paid again every turn. This skill owns the number;\n`rjv-gated-build` (`ANCHOR-DOC.md`) holds the measured failure behind it.\n\n- Git holds history: `git log .plans\/<name>.md` is the log. The plan is a\n  current-state surface.\n- Real-time promotion (below) drains settled facts continuously.\n- Over the ceiling at reconcile \u2192 promote durable facts to their durable home\n  (`rjv-spec-driven`) and compress BEFORE acting.\n\n## Real-time promotion\n\nWrite each settled fact to its durable home the moment it settles. Promoted\ndocs are branch commits, so they travel through the same PR and land on `main`\nwith the code.\n\n`rjv-spec-driven` owns the rest: which facts leave, where each one goes, the\nmutation test that decides plan state from durable truth, and the artifact\nformats (spec \/ glossary \/ ADR). Load it before promoting anything.\n\n## Reconcile-on-open\n\n```\nread plan \u2192 VERIFY each \"done\" claim against real code\/db\/tests \u2192\n(spec modes) regenerate the spec status block from a fresh suite run\n(`rjv-spec-driven`) \u2192 note drift in Current State \u2192 rewrite Next Steps \u2192\nstamp Last reconciled \u2192\nif over the ~400-line ceiling, promote + compress \u2192 then act\n```\n\nA \"done\" you have not verified is a rumor; verify every one.\n**During work:** update the plan in the same turn as the change.\n**On stop\/handoff:** rewrite the `>>> RESUME HERE <<<` block to the exact resume\npoint, and mark `done` only what is verified.\n\n## Plan vocabulary stays in the plan\n\n`Step: <id>`, `Status: shipped`, `RESUME HERE`, `.plans\/shipped\/\u2026` and criterion\nIDs are the file's nouns. The user does not have the plan open and is not\ntracking step numbers.\n\nWhen reporting in chat, say what the step is and what state it is in: \"the old\ncomponents were never deleted\" (instead of \"step 6 is open\"). Cite the plan\npath once, at the end, and only if they would need to open it.\n\n## Merge, maintenance, timeline, roadmap \u2192 `LIFECYCLE.md`\n\nOn merge, archive the plan: `git mv .plans\/<name>.md\n.plans\/shipped\/<YYYY-MM-DD>-<name>.md`, status stamped in the same commit. Read\n[`LIFECYCLE.md`](.\/LIFECYCLE.md) when a branch is landing, when work arrives\nagainst something already live, or when someone asks what shipped and when. It\nholds the merge ritual, the CI-guardable invariants, the maintenance phase, how\nto read the delivery timeline back, and the durable roadmap.\n\n## With rjv-spec-driven and rjv-gated-build\n\n- **`rjv-spec-driven`**: mandatory for `Build mode: spec-driven` and\n  `gated + spec-driven`. It owns the durable acceptance criteria, glossary, and ADRs.\n  `WORK`, handoff, review, and QA refer to permanent criterion IDs.\n- **`rjv-gated-build`**: mandatory for `Build mode: gated + spec-driven`. The plan\n  is the compressed operational anchor: cast, active criterion IDs, evidence, grill\n  trail, tombstones, and resume point. Durable acceptance criteria stay in `spec.md`.\n  Multiple concurrent gated builds remain separate branches\/plans.\n\n---\n\n*Provenance: production workflow from a live fintech monorepo, with multiple\nconcurrent branches and two agents (Claude Code, Codex) sharing committed plans\nand `_docs\/`.*\n","use_cases":["Maintain branch-specific working memory for non-trivial branches","Reconcile branch plans with code before taking action","Classify and manage Build mode (simple, spec-driven, gated + spec-driven)","Archive plans after merging into main","Track progress, decisions, and next steps in a structured format"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/rjvim\/ai-skills\/blob\/9a942086adef21dbd0c061d9d9e8fd5f43328bf6\/skills\/rjv-work-plan\/SKILL.md","source_commit":"9a942086adef21dbd0c061d9d9e8fd5f43328bf6","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-12-02T09:10:14.000000Z","updated_at":"2026-12-03T16:19:55.000000Z","seo_title":"Rjv Work Plan - Branch-Scoped Working Memory Management","seo_description":"Manage branch-scoped working memory with a committed `.plans\/{name}.md` file, classify Build mode, and reconcile against code before acting. Archives plans after merge.","seo_keywords":["branch-scoped working memory","rjv work plan","branch plan management","code reconciliation","build mode classification","spec-driven build","gated build","plan archiving"]}}