agentleFS
tonmoy007tonmoy007/forge-plugins/skills/forge-resume/SKILL.md

forge-resume

Skill2 starsChanged 5 months agoMITView on GitHub

Resume work on a Forge-managed project after a session restart. Reads pipeline

1 other project uses a version of this.

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. Distinctive:

    After a long gap and the context window is fresh

    line 21
  2. Distinctive:

    Run this check first:

    line 25
  3. Very specific:

    If the command fails or the directory has no pipeline/state.md, tell the user the project is not initialized and suggest /forge:init.

    line 31
  4. Very specific:

    Read its content field directly (do not re-read from disk — use what the pruner returned)

    line 54
  5. Very specific:

    After displaying the summary, immediately continue working.

    line 119
  6. Distinctive:

    If there are unmet blocker-severity gate criteria, surface them before proceeding and ask whether to address them first or continue anyway.

    line 123

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

forge-resume

Re-orient after a session break. Inject the stage-appropriate context and state the exact next action — no re-discovery required.

When to Use

  • User runs /forge:resume
  • User starts a new session and asks to continue Forge work
  • User says "pick up where we left off", "resume", "what was I doing?"
  • After a long gap and the context window is fresh

Pre-flight

Run this check first:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py --cwd . read

If the command fails or the directory has no pipeline/state.md, tell the user the project is not initialized and suggest /forge:init.

Steps

1. Read pipeline state

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py --cwd . read

Extract: current_stage, current_task, current_milestone, last_updated, blockers.

2. Load stage-appropriate context

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/context-pruner.py \
  --stage <current_stage> \
  --cwd . \
  --budget 1800

For each artifact in the returned artifacts list:

  • Read its content field directly (do not re-read from disk — use what the pruner returned)
  • Inject the content into your working context

These artifacts are already priority-ordered and budget-capped. Do not load additional files beyond what the pruner returns unless the user explicitly asks.

3. Read last reflection

From pipeline/state.md, extract the Last Reflection section. This shows what happened in the previous session segment. If it is empty, note "no prior reflection found."

4. Read recent lessons

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py --cwd . read

From tasks/lessons.md, read the 3 most recent lesson entries (those under the most recent ### headings). Surface any lessons tagged for the current stage.

5. Check gate status

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/check-gate.py \
  --stage <current_stage> \
  --cwd . \
  --plugin-dir ${CLAUDE_PLUGIN_ROOT}

Note how many gate criteria pass. If any blocker-severity criteria fail, surface them.

6. Display the resume summary

Print this exact structure (fill in the values):

## Forge Resume

**Project**: <project_type>   **Stage**: <current_stage>/12 (<stage_name>)
**Task**: <current_task or "(none)">   **Cycle**: <cycle>
**Last updated**: <last_updated>

### Context loaded
<list each artifact path and its token count, e.g.:>
  - pipeline/state.md (142 tokens)
  - pipeline/05-plan/task-dag.md (680 tokens)
  - pipeline/04-spec/spec.md (423 tokens)
Total: <total_tokens> / 1800 tokens

### Last reflection
<paste the Last Reflection section content, or "(none)">

### Gate status
<current_stage>/<total> criteria passing
<list any unmet blocker-severity criteria>

### Blockers
<list blockers from state.md, or "(none)">

### Next action
<one concrete sentence describing exactly what to do next>

7. Proceed

After displaying the summary, immediately continue working. Do not wait for the user to re-explain the task — you have the context. Pick up from the current_task or, if that is empty, from the next unstarted task for the current stage.

If there are unmet blocker-severity gate criteria, surface them before proceeding and ask whether to address them first or continue anyway.

Stage Names

StageNameCommand
0not started—
1SRS/forge:srs
2Product/UX/forge:product
3Architecture/forge:arch
4Spec/forge:spec
5Plan/forge:plan
6Build/forge:build
7Eval/forge:eval
8Deploy/forge:deploy
9Monitor/forge:monitor
10Feedback/forge:feedback
11Resolve/forge:resolve
12Release/forge:release

Verification

The skill worked correctly if:

  • The resume summary shows the correct stage, task, and project type
  • Artifacts listed match what context-pruner.py returned for the stage
  • The "Next action" is specific and actionable (not "continue working")
  • You are actively working on the task within 1-2 turns, not still asking questions

Example Output

## Forge Resume

**Project**: saas-api   **Stage**: 6/12 (Build)
**Task**: T-007 — implement auth middleware   **Cycle**: 1
**Last updated**: 2026-05-11T09:14:00Z

### Context loaded
  - pipeline/state.md (187 tokens)
  - pipeline/05-plan/task-dag.md (643 tokens)
  - pipeline/04-spec/spec.md (498 tokens)
  - pipeline/02-product-ux/design-system.md (201 tokens)
Total: 1529 / 1800 tokens

### Last reflection
**Timestamp**: 2026-05-11T09:14:00Z
**Stage**: 6 | **Task**: T-007
**Turns this session segment**: 4 user message(s)
**Files touched**: src/middleware/auth.py, tests/unit/test_auth.py

### Gate status
2/5 criteria passing
⚠️ Unmet blockers:
  - all_tests_pass: tests/unit/ must be green

### Blockers
(none)

### Next action
Run the failing test suite (`pytest tests/unit/test_auth.py`) and fix the 2
authentication header validation errors before proceeding to T-008.

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.