agentsclimarketplace

Replan

Skill honerlaw/agent-marketplace/plugins/minerva/skills/replan

Records a course-correction for the current minerva work unit — drafts Original plan / What changed / New plan, stress-tests it via `minerva:grill-plan`, then appends a dated divergence entry to `.minerva/work/NNN-slug/replan.md`. Use when work has diverged from the proposal in a load-bearing way — a core assumption was wrong, the approach is changing, or scope is shifting — or to amend an approved proposal before `minerva:work` starts (pre-work tweaks), or when the user invokes `minerva:replan`.From its SKILL.md

Install
npx -y skills add honerlaw/agent-marketplace --skill replan

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.7 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

Append a dated replan entry to the current work unit when reality has diverged from the proposal, OR amend an approved proposal pre-work.

Usage

  • minerva:replan — operates on the work unit inferred from current-session context, or the most-recently-modified if context is ambiguous
  • minerva:replan 005-add-payments — operate on the named unit explicitly (slug or path)

When to use

  • Mid-work divergence (most common): a core assumption broke, the approach is shifting, scope changed. minerva:work auto-triggers this protocol.
  • Pre-work amendment: the proposal was approved but the user wants to tweak it before implementation starts. Same protocol — the replan entry's Original plan is just the freshly written proposal, and What changed is "before implementation: user wants to adjust X".

Target resolution

Same pattern used by minerva:work, minerva:promote, minerva:review, minerva:ship, minerva:cleanup. Keep all six blocks in sync if you edit one.

  1. Explicit argument — if the user passed a slug or path, resolve it. Look in both .minerva/work/<NNN-slug>/ and .minerva/worktrees/<NNN-slug>/.minerva/work/<NNN-slug>/.
  2. Current-session context — if a unit slug, path, or branch name has been mentioned in this session, use it.
  3. Most-recently-modified across both locations — scan .minerva/work/NNN-*/ AND .minerva/worktrees/NNN-*/.minerva/work/NNN-*/, pick by directory mtime.
  4. Ambiguity — list candidates, ask the user.
  5. None found — "no work units found — run minerva:propose first" and stop.

Worktree addressing

After resolving the target and before reading or writing any files:

  • Do not call EnterWorktree — minerva worktrees live under .minerva/worktrees/, which that tool does not reliably enter; the session's working directory stays the parent repo.
  • If the resolved target's docs live at .minerva/worktrees/<NNN-slug>/.minerva/work/<NNN-slug>/, address the worktree explicitly: prefix every file path this skill reads or writes with .minerva/worktrees/<NNN-slug>/, and run every git command as git -C .minerva/worktrees/<NNN-slug> …. Relative paths resolve to the parent repo and silently misroute edits onto the wrong branch (see .minerva/knowledge/008-constraint-enter-worktree-absolute-paths.md).
  • If the docs live only on the default branch (a shipped unit being inspected), operate on the parent repo directly.

This keeps the skill correct regardless of where it's invoked from — every file path it touches names the right working tree explicitly.

Protocol

Same brainstorming pattern as minerva:propose, but framed around divergence:

  1. Read the existing context first. Read proposal.md, any prior replan.md entries, and the current scratchpad.md. The brainstorm must be grounded in what actually happened.
  2. Frame the replan around three pieces:
    • Original plan — what the proposal (or latest prior replan) said the approach was
    • What changed — what was discovered, what broke, what assumption was wrong (for pre-work amendments: "user requested adjustment before implementation")
    • New plan — the revised approach
  3. Ask clarifying questions one at a time to fill in any of the three pieces that aren't already obvious from the conversation or files.
  4. Propose 2–3 alternative new plans if the path forward isn't already settled. Iterate.
  5. Draft the replan entry internally, then stress-test it before showing it for approval. Assemble the Original plan / What changed / New plan triple in conversation (do not write to disk yet) and invoke the minerva:grill-plan skill via the Skill tool against it (no argument needed — it reads the draft from conversation). Let grill-plan walk the decision tree, edit affected pieces in place as answers surface, and return only once shared understanding is reached. The entry that exits grilling is what step 6 presents.
  6. Present the resulting entry for approval before writing.
  7. Hard gate: do not append to the file until the user has approved the entry.

On approval — file write

  1. If replan.md doesn't exist yet in the target work unit, create it with this header:

    # Replan log: <slug>
    
    
  2. Append a new entry using this exact template (today's date in YYYY-MM-DD):

    ## YYYY-MM-DD — <short, declarative title>
    
    **Original plan**: <one or two sentences>
    **What changed**: <what was discovered, what broke, what assumption was wrong>
    **New plan**: <one or two sentences>
    
  3. Update Success criteria if the new plan changes them. If the replan changes what "done" looks like, also edit proposal.md's ## Success criteria section to reflect the new bar. Otherwise leave it alone — the replan entry will still supersede the proposal on conflict.

  4. Report the path and the title of the appended entry. Suggest resuming minerva:work next.

Out of scope

This skill stops at appending to replan.md (and optionally editing proposal.md's Success criteria). It does not invoke implementation — return control to minerva:work (or its in-progress session) after writing.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,750. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.