/sd0x-dev-flow:next-stepfrom sd0x-dev-flow
Analyzes git state, review state, and feature context to suggest next development steps. Useful when workflow progression is unclear or a session just started with a dirty worktree.
Ships in sd0x-dev-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
bash scripts/run-skill.sh next-step analyze.js to collect deterministic findingsThe analyze script runs 18 deterministic heuristics against git state, review state, and feature context:
| Priority | Heuristics | Meaning |
|---|---|---|
| P0 | Gate missing (code review, doc review, precommit) | Required steps not completed |
| P1 | Test gap, security hotspot, migration risk, doc-sync-needed, request-stale, corpus-unreadable | Important oversights |
| P2 | README missing, skill-lint needed, locale drift, mixed concerns, ac-incomplete, intent-advisory (planning docs without exact intent-.md) | Quality improvements |
| P3 | Main branch warning, requirements-advisory, feature-complete | Informational |
The script exits with code 0 (no P0/P1), 1 (has P1), or 2 (has P0).
| Field | Type | Description |
|---|---|---|
| phase | string | mid_development / post_precommit / ready_to_commit / feature_complete / clean |
| feature_context | object | { key, source, confidence, docs_path, has_tech_spec, has_requirements, has_requests } |
| next_actions | array | [{ id, command, args, reason, confidence }] sorted by confidence desc |
| backlog | object/null | { total_features, incomplete_features } — only when phase = feature_complete |
If the script fails or is unavailable, fall back to manual signal collection:
| # | Signal | How |
|---|---|---|
| 1 | Git branch | git branch --show-current |
| 2 | Git status | git status -sb |
| 3 | Changed files | git diff --name-only HEAD + git status --porcelain (for untracked) |
| 4 | Gate state | node scripts/review-state.js check --format=fact(installed copy first: .claude/scripts/review-state.js;checker 不在 → 不主張任何 verdict) |
Then use the Progression Tables below.
When --go is provided, auto-execute the top next_action IF:
next_actions[0] exists AND confidence >= 0.8Output: "Auto-dispatching: [command] [args]" then invoke the Skill tool and report the result.
Safety constraints:
next_actions are dispatched (via Skill tool). No arbitrary shell execution.buildNextActions — no user-supplied strings.See references/progression-tables.md for full work-type detection and step-by-step progression tables (Feature Dev, Bug Fix, Docs, Refactoring, Investigation).
When the script detects actionable findings, format the top 3:
📍 [work type] | [branch] | [current phase]
⚠️ Findings ([count]):
1. **[P0/P1/P2] [finding id]** — [message] → [suggestion]
2. **[P0/P1/P2] [finding id]** — [message] → [suggestion]
3. **[P0/P1/P2] [finding id]** — [message] → [suggestion]
[+N more if suppressed]
➡️ Next: [primary action based on highest priority finding]
When all gates pass and no actionable findings remain, summarize the session instead of suggesting "commit/push":
📍 [work type] | [branch] | all gates passed
✅ Session Summary:
- [what was accomplished, derived from diff summary and conversation]
- [key changes: N files changed, types of changes]
⚠️ Oversights (if any P2/P3 remain):
- [P2/P3 findings as optional improvements]
💬 Commit seed:
[type]: [concise description of all changes]
The commit seed is a suggestion — the user decides the final message.
📍 [work type] | [branch] | feature complete
✅ Feature [key] Complete
- All gates passed, no sync issues remaining
📋 Backlog ([N] incomplete):
- [feature-key] — status: [status], unchecked AC: [count]
- ...
➡️ Next: Pick a feature from the backlog or start new work
When a feature directory exists in docs/features/, cross-check document pairs:
| State | Suggest |
|---|---|
| tech-spec exists, no request | /create-request |
| request exists, no tech-spec | /tech-spec |
| Both exist, code changed | /update-docs + /create-request --update |
When the best next step is NOT a slash command:
| Signal | Suggest |
|---|---|
| Requirements unclear | "Confirm requirements with PM/user before proceeding" |
| Affects other services | "Confirm upstream/downstream API contracts" |
| Security-sensitive change | /codex-security before proceeding |
| No clear task | "Clarify what to do — don't start without clear requirements" |
| Session just started, dirty worktree | "Handle uncommitted changes first" |
What SKILL.md sets; muted values are Claude Code's defaults
102 skills in this plugin
/adrWrite an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as docs/features/<feature>/adr-<NNN>-<title>.md with a 3-digit zero-padded number. Handles the Superseded case: bidirectional linking when a new ADR replaces an old one. Use when: recording why an architectural approach was chosen, documenting a decision so it doesn't get re-litigated, marking a prior decision as superseded. Not for: feature-level technical design (use /tech-spec), task progress tracking (use /create-request), bulk backfill of historical decisions (a separate request — this skill writes one ADR at a time)./agentctl-setupInstall and set up the optional agentctl mod (task scope, refusal before execution, evidence that goes stale, model-free hand-over) — checks the environment, installs after approval, builds the first task line, optional deny rules, uninstall/architecturenpx claudepluginhub sd0xdev/sd0x-harness --plugin sd0x-dev-flowOther plugins' skills for the same job