agentleFS
mhgolestanmhgolestan/code-context-mcp/.claude/skills/speckit-companion-resume/SKILL.md

speckit-companion-resume

Skill0 starsChanged 50 days agoMITView on GitHub

Continue the spec-driven pipeline from the last completed step, carrying recorded decisions into scope, and dispatch the next command

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Verify Python is available by running python3 --version.

    line 25
  2. Very specific:

    If python3 is not available, warn the user and skip: [companion] Warning: python3 not detected.

    line 26
  3. Distinctive:

    Do not fail the host command.

    line 28
  4. Distinctive:

    Do not dispatch anything.

    line 49
  5. Very specific:

    When you dispatch, state the recorded decisions[] as in-scope context for the step you are running, so prior decisions carry forward and …

    line 58
  6. Distinctive:

    No decisions recorded → omit the "Decisions in scope" block.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Resume Spec

Pick the pipeline back up where it stopped. This command reads the active feature's recorded state, resolves the next step — carrying the recorded decisions into scope — and dispatches the next speckit.* command. Inside the implement step it continues at the next unchecked task.

<!-- speckit-companion:part command-spelling -->

Name every command the way this project registers it

Commands are named in dot form throughout this body, speckit.companion.plan, because that is their canonical id, and without a leading slash, because the spelling a host actually registers is not always this one. Claude Code installs /speckit-companion-plan. Look at how the commands are installed in this project, under the agent's own commands or skills directory, and use that spelling every time you name one to the developer or dispatch one yourself. A dotted name typed into a host that registered dashes resolves to nothing at all.

<!-- /speckit-companion:part command-spelling -->

Prerequisites

  • Verify Python is available by running python3 --version.
  • If python3 is not available, warn the user and skip: [companion] Warning: python3 not detected; skipped resume. Do not fail the host command.

Execution

  1. Resolve the next action from the repository root:

    python3 .specify/extensions/companion/scripts/status-context.py

    (Pass --feature-dir specs/<NNN>-<slug> when you already know it.) The script reads .spec-context.json, or derives state from on-disk files when it is missing/malformed.

  2. Parse the final RESOLUTION: { … } JSON line the script prints. It contains currentStep, status, decisions[], nextStep, nextCommand, nextActionLabel, nextTask, and complete.
  3. Branch on the resolution:

    • complete: true → print Pipeline complete — nothing to resume. and stop. Do not dispatch anything.
    • empty: true (no recorded state and no spec files) → print Nothing to resume (no spec files or recorded state found). and stop.
    • nextTask is set (inside the implement step) → continue implementation at nextTask: invoke speckit.implement, instructing it to resume at the next unchecked task.
    • otherwise → invoke nextCommand (e.g. speckit.plan, speckit.tasks, speckit.implement).
  4. When you dispatch, state the recorded decisions[] as in-scope context for the step you are running, so prior decisions carry forward and the user does not re-specify them.

Dispatch note

Resume dispatches the already-installed speckit.* commands. It does not require a specify workflow resume CLI subcommand, so it works on the stock installed spec-kit version. The dispatched command runs its own after_* capture hook, which writes the resulting history[] entry — resume itself writes no state.

Output

Resuming <name> from <currentStep> (<status>).
Decisions in scope:
  - <decision>
Next: <action>  →  dispatching <command>
  • Tasks/implement step → Next: Continue implementation at <task> → dispatching speckit.implement.
  • No decisions recorded → omit the "Decisions in scope" block.

Graceful Degradation

Best-effort: if python3 is missing or the feature directory cannot be resolved, warn to stderr and stop without dispatching. Never fail the host command.

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.