home / skills / shotaiuchi / dotclaude / wf0-nextstep

wf0-nextstep skill

/dotclaude/skills/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-nextstep

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
1.1 KB
---
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

Overview

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.

How this skill works

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.

When to use it

  • You want to advance an active workflow step immediately without interactive confirmation.
  • A CI or automation process needs to trigger the next workflow phase programmatically.
  • You are iterating quickly and prefer command chaining (e.g., kickoff → implement → PR).
  • You already have state.json present and want to continue from the recorded active_work.
  • You need to force running wf7-pr or other next-phase commands directly.

Best practices

  • Ensure state.json is present and up to date to avoid fallback prompts.
  • Use only when you trust the resolved next action, since execution is non-interactive.
  • Prefer in scripts or automation where silent, deterministic behavior is required.
  • Double-check plan.current_step and plan.total_steps before invoking wf5-implement when automating step increments.
  • Keep backups or git branches ready when auto-executing destructive phases.

Example use cases

  • Run /wf0-nextstep to immediately create a PR when next is "complete" and a PR exists.
  • Invoke /wf0-nextstep in CI to automatically proceed to wf7-pr when the workflow reaches that phase.
  • Call /wf0-nextstep without arguments inside a workspace where active_work is set to continue the current work item.
  • Use /wf0-nextstep to trigger /wf5-implement <next_step> when implementation work has remaining steps.

FAQ

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.