/spwf:wfstatusfrom spwf
Shows where you are in your workflow right now — what you're most likely working on, what's incomplete, and what to pick up next. Uses heuristics across git state, OpenSpec changes, todo files, and project memory to produce a concise dashboard. Read-only. Use at the start of a session or whenever you've lost the thread. Fast — no subagents, no network calls.
Ships in spwf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Instant workflow orientation. Answers three questions: where am I, what's incomplete, and what should I do next?
/spwf:wfstatus
No arguments. Run it, read the dashboard, start working.
Run the scan script:
SKILL_ROOT="$(find ~/.claude -name 'status-scan.sh' \
-path '*/wfstatus/scripts/*' 2>/dev/null | head -1 | xargs dirname 2>/dev/null || echo '')"
if [ -n "$SKILL_ROOT" ]; then
bash "$SKILL_ROOT/status-scan.sh" 2>&1
else
echo "status-scan.sh not found — running inline (see fallback below)"
fi
If the script is not found, collect signals inline:
# Git
git branch --show-current && git status --short && git stash list && git log --oneline -10
# OpenSpec
openspec list 2>/dev/null || ls openspec/changes/ 2>/dev/null
# Todo files
grep -l "^status:" todo/*.md 2>/dev/null | xargs -I{} sh -c 'echo "{}:"; head -6 "{}"'
Synthesise the raw signals into a current-focus determination. Apply tests in confidence order — stop at the first that produces a high-confidence match.
Any of these alone is high confidence:
| Signal | Interpretation |
|---|---|
| Feature branch whose name matches an OpenSpec change with incomplete tasks | Actively implementing that change |
| Uncommitted files in a change's affected directories AND matching change has tasks left | Mid-task on that change |
| Git stash entry named after an OpenSpec change | Interrupted mid-change; needs resumption |
| Signal | Interpretation |
|---|---|
| Feature branch with no matching OpenSpec change | In-flight work not yet in a formal change |
| OpenSpec change with incomplete tasks, on main branch | Change started but branch may have been merged early |
Todo file with status: in-progress or status: challenged | Ideation work in progress |
| Uncommitted changes on main | Quick fixes or exploratory work outside a formal change |
| Signal | Interpretation |
|---|---|
| No uncommitted changes, on main, one change with remaining tasks | That change is the likely next thing |
| Multiple changes each with tasks remaining | Cannot determine priority automatically — present all and ask |
No active changes, all todos at status: ideation | Nothing formally started; suggest picking up the most advanced todo |
When an OpenSpec change is the current focus, find the next concrete task:
tasks.md — find the first - [ ] entry that is not a section headingdesign.md or proposal.md, confirm the task aligns with what was plannedopenspec instructions apply --change <name> is available, run it to get the canonical next-task instructionAfter the focus heuristics, run one extra check for the failure mode that
add-branch-enforcement prevents: an active change accumulating commits on the
base branch instead of on its feature branch. Read .spwf/branch.yaml
(defaults: base: main, prefix: feature/) per
_shared/branch-management.md §1.
Fire a P2 drift warning when all hold:
openspec/changes/{change-id}/ exists with incomplete tasks, ANDfeature/{change-id} does not exist OR is not the current branch, ANDgit log "origin/${base}..${base}" \
--grep "^spec: add OpenSpec change ${change_id}$" --format=%H | head -1
returns a commit.
Condition 3 is tied to the change's spec-commit subject — the same marker
branch-rescue uses for base detection (§4). This makes the check
deterministic and avoids parsing the proposal's free-form "Affected areas"
prose: commits on {base} are attributed to this change only when its spec
commit is among them, so unrelated commits on {base} (a hotfix, a doc tweak)
do not trip a false drift warning.
⚠ Branch drift — change `{change-id}` may be committing to `{base}`.
Run `/spwf:branch-rescue` to move commits.
Do not fire when the current branch is feature/{change-id} — commit volume
on the feature branch is expected and never drift.
Produce a concise, scannable dashboard. No walls of text. Use tables and one-liners.
## Workflow Status — {YYYY-MM-DD}
### Current focus
{High | Medium | Low} confidence: **{change name or description}**
Signal: {one sentence explaining the heuristic that fired}
{⚠ Branch drift — change `{change-id}` may be committing to `{base}`. Run `/spwf:branch-rescue` to move commits. ← only when the branch-drift check fired}
### Active OpenSpec changes
| Change | Progress | Last active | Status |
|---|---|---|---|
| {name} | {X/Y tasks} | {N days ago} | {In progress / Not started / Blocked} |
### Next task
{- [ ] exact task text from tasks.md}
Run: /opsx:apply {change-name} OR openspec instructions apply --change {change-name}
### Todo backlog
| File | Status | Ticket | Title |
|---|---|---|---|
| {file} | {status} | {ticket or —} | {title} |
(Sorted: challenged → analysis → in-progress → ideation)
### Git context
- Branch: {branch}
- Uncommitted: {N files, or "clean"}
- Stash: {entry names, or "empty"}
- Last commit: {hash} {subject} ({N days ago})
### Suggested action
{One clear sentence: what to do right now, including the exact command to run.}
| Situation | Suggested action |
|---|---|
| High-confidence OpenSpec change in progress | Run /opsx:apply {change} to continue the next task |
| Stash entry for a change | Run git stash pop then /opsx:apply {change} to resume |
Todo file at status: challenged | Run /spwf:challenge {file} to progress it to spec |
Todo file at status: ideation | Run /spwf:challenge {file} to pressure-test it |
| All tasks complete, no todo files advanced | Run /spwf:retrospective — ship is done, debrief |
| Multiple competing changes, none obvious | Ask: "Which of these would you like to focus on?" and list them |
| Nothing active, nothing in backlog | Run /spwf:new-task to capture the next piece of work |
status: field) are shown with status: unknown and listed last.openspec/changes/ directory, skip the OpenSpec section entirely and note it. Rely on git and todo signals only.openspec list only shows active changes. Archived changes are excluded. If the user is looking for a change they believe exists, check openspec/changes/archive/ manually.openspec list may lag. The CLI reads from tasks.md directly — if the file has been edited but the change hasn't been explicitly updated, counts may be stale. Cross-check with the raw task file.main or use PR-squash workflows will have no branch name signal. Fall back to OpenSpec and todo signals.status: in-progress field on todo files is self-reported. It may not reflect actual activity. Cross-check with recent commits touching the same area.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub simon-potter/spwf --plugin spwf38 skills in this plugin
/address-reviewPhase 6.5 — Address Review. Turn review feedback into action. Sources feedback from either a local report file (e.g. {branch}-review.md from /spwf:pr-review or {branch}-self-review.md from /spwf:simplify) or fetched human comments on an open PR/MR. For each item runs READ → VERIFY → EVALUATE → implement-or-push-back, in priority order (blocking → important → nit). Forbids performative agreement ("you're absolutely right"). Use after pr-review, or whenever a reviewer leaves comments./agent-optimiseCross-cutting — Audit both the project .claude/ and personal ~/.claude/ for quality issues. Covers CLAUDE.md scope and length, agent descriptions, skill frontmatter, and settings.json conflicts. Always audits both scopes. Produces a prioritised P1/P2/P3 fix list./