core/skills/sw-status/SKILL.md
Shows current Specwright state for this worktree, the attached work, repo-wide active works, gate results, and lock status. Supports --reset, --cleanup, and --repair {unitId}.
npx skillsauth add obsidian-owl/specwright sw-statusInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Tell the user what this worktree is attached to, what that work is doing, what other works are active in the repository, which runtime layout is active, and what the next action should be.
{projectArtifactsRoot}/config.json{worktreeStateRoot}/session.json{repoStateRoot}/work/*/workflow.json{workArtifactsRoot}/{selectedWork.id}/approvals.md when a work is attached{workDir}/review-packet.md when the selected unit has reached verify or ship artifacts--repair mode: remediation outcome for the targeted shipped unitDisplay (HIGH freedom):
projectArtifactsRoot, repoStateRoot,
worktreeStateRoot, and workArtifactsRoot before the session summary so
tracked project artifacts and the active runtime layout are inspectable.project-visible runtime roots under
.specwright-local/ are the recommended interactive default, while
git-admin roots under .git/specwright/ are compatibility mode.worktreeId, mode, branch, and
attachedWorkId./sw-adopt
instead of implying that status can mutate ownership.repoStateRoot/work/*, along
with their recorded owner worktrees and whether the owner still has a live
top-level session./sw-design.Non-interactive context (LOW freedom):
protocols/headless.md when AskUserQuestion is unavailable.--reset: abort without confirmation and report that reset requires a human.--cleanup: report-only. List eligible work directories but do not delete
them.--repair: report-only. Inspect the selected or uniquely matched work/unit,
print what interactive repair would do, and never mutate workflow state in
headless mode.Reset mode (LOW freedom):
--reset applies to the work attached to this worktree session.abandoned, clear that
work's lock, clear its gates, and detach this session if it points at that
work.protocols/state.md for all mutations.Cleanup mode (MEDIUM freedom):
{repoStateRoot}/work/ for work directories.{repoStateRoot}/work/ and each selected candidate with
realpath before removing anything.{repoStateRoot}/work/ directory.Repair mode (MEDIUM freedom):
--repair {unitId} first looks in the selected work, if one is attached.unitId.prNumber=null.gh confirms a merged PR, populate the owning work's prNumber and prMergedAt and report repaired.revert-to-building, mark-abandoned, force-shipped-with-note.force-shipped-with-note appends the user's assertion to the owning
decisions.md.protocols/context.md -- logical roots and session/work resolutionprotocols/state.md -- per-work workflow schema and mutation rules| Condition | Action |
|---|---|
| no shared/session state can be resolved | tell the user to run /sw-init |
| selected workflow parse error | show the raw error and stop |
| stale per-work lock detected | offer to clear it with a warning |
| --repair target ambiguous across works | stop and list matching work IDs |
testing
Explicitly adopt an existing work into the current worktree after validating live ownership, stale sessions, and branch consistency.
testing
Orchestrates quality gates for the current work unit. Runs enabled gates in dependency order, produces an aggregate evidence report with gate handoff.
tools
Syncs the local repository by fetching all remotes, updating the base branch, and removing stale local branches that are not protected by live sessions or helper worktrees.
tools
Ships the current work unit. Verifies all gates passed, creates a PR with evidence-mapped body, updates workflow state to shipped.