From sd0x-dev-flow
Advises next development steps from git state analysis, review findings, and workflow phase. Suggests actions for P0/P1 issues, progression, or commit-ready summaries with seeds.
npx claudepluginhub sd0xdev/sd0x-dev-flow --plugin sd0x-dev-flowThis skill uses the workspace's default tool permissions.
- Auto-loop already handling review/precommit flow (hooks track and assist)
Analyzes project pipeline state, artifacts, pendings, git log, repo audits, and session summaries to suggest 3-5 prioritized next actions with impact/risk justifications. Triggers on 'suggest', 'next', 'what now'.
Wraps coding sessions with multi-agent analysis: git status/diff check, CLAUDE.md/context.md updates, automation scouting, learning extraction, follow-up suggestions, duplicate validation, and user-directed action execution.
Triages project issues like build/test failures, merge conflicts, uncommitted work, stale branches, and delivers prioritized action plans with concrete steps when stuck or overwhelmed.
Share bugs, ideas, or general feedback.
bash scripts/run-skill.sh next-step analyze.js to collect deterministic findingsThe analyze script runs 17 deterministic heuristics against git state, review state, and feature context:
| Priority | Heuristics | Meaning |
|---|---|---|
| P0 | Gate missing (code review, doc review, precommit), state drift | Required steps not completed |
| P1 | Test gap, security hotspot, migration risk, doc-sync-needed, request-stale | Important oversights |
| P2 | README missing, skill-lint needed, locale drift, mixed concerns, ac-incomplete | 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 | Review state | .claude_review_state.json |
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" |