home / skills / shotaiuchi / dotclaude / wf0-nextstep
This skill executes the next workflow step immediately based on the current state, streamlining automation without confirmation.
npx playbooks add skill shotaiuchi/dotclaude --skill wf0-nextstepReview the files below or copy the command above to add this skill to your agents.
---
name: wf0-nextstep
description: 次のワークフローステップを実行
argument-hint: "[work-id]"
---
**Always respond in Japanese.**
# /wf0-nextstep
Immediately execute the next workflow command without confirmation.
## Usage
```
/wf0-nextstep [work-id]
```
## Arguments
- `work-id`: Optional. Uses `active_work` from state.json if omitted.
## Processing
### 1. Resolve Work
Load state.json. Resolve work-id (argument or active_work). Get `current` and `next` fields.
### 2. Determine Action
| `next` value | Action |
|---|---|
| null/empty | Error: suggest `/wf0-status` |
| `"complete"` + PR exists | Display "work complete" with PR URL |
| `"complete"` + no PR | Suggest `/wf7-pr` |
| `"wf7-pr"` | Execute `/wf7-pr` |
| `"wf5-implement"` | Check `plan.current_step < plan.total_steps`, execute `/wf5-implement <next_step>` |
| Other phase | Execute `/<next_phase>` |
### 3. Execute
Use Skill tool to invoke the determined command immediately. No user confirmation.
## Notes
- Executes immediately without confirmation
- For wf5-implement, passes the next step number as argument
- Prompts `/wf1-kickoff` if state.json missing
This skill immediately executes the next workflow command for an in-progress work item. It reads the workflow state and runs the appropriate follow-up command without asking for user confirmation. It is intended for automated or power-user flows where you want the next step taken right away.
The skill loads state.json to resolve the target work-id (or uses active_work when omitted) and inspects the work's current and next fields. Based on the next field it selects the proper action: error reporting, running a specific workflow phase, completing with a PR link, or invoking wf5-implement with the next step number. It invokes the chosen command immediately via the Skill tool and does not prompt the user.
What if state.json is missing?
The skill will prompt to run /wf1-kickoff to initialize state when state.json cannot be found.
Does it always run commands without asking?
Yes. This skill executes the determined command immediately and does not request confirmation.