From reviw-plugin
Starts small tasks under 5 files: requirements deep-dive via interviews, codebase exploration, git worktree setup, TDD implementation to tiny-done.
npx claudepluginhub kazuph/reviw --plugin reviw-pluginThis skill is limited to using the following tools:
<command-name>tiny-do</command-name>
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
tiny-do
小さなタスクをサクッと始める軽量タスク開始コマンド。
要件深掘り → コードベース探索 → worktree作成 → TDD実装 → /reviw-plugin:tiny-done で完了。
ALL checkpoints must be passed before task completion. Do NOT split into separate PRs, report partial progress, or defer remaining checkpoints to "next time". This is a single continuous flow that ends with /reviw-plugin:tiny-done.
| do | tiny-do | |
|---|---|---|
| 要件深掘り | 3ラウンドインタビュー | 3ラウンドインタビュー(同じ) |
| コードベース探索 | 2-3 explorer agents | 2-3 explorer agents(同じ) |
| Architecture提案 | 1案おすすめ + Codex相談 + Review Agent助言 | 1案おすすめ + Review Agent助言 |
| worktree | git wtで作る | git wtで作る |
| REPORT.md | 作る | 作らない |
| TDD | サブエージェント並列 | サブエージェント並列(同じ) |
| 完了 | → /reviw-plugin:done(フルレビュー) | → /reviw-plugin:tiny-done(スクショ確認) |
本質的な違い: Codex・REPORT.md・npx reviwを使わない。レビューエージェントは助言モードでプランニング時のみ使用。レビューの厚みが軽い。
$ARGUMENTS = やってほしいこと、仕様の説明
tiny-doは小さなタスク専用。以下に該当する場合はフルの /reviw-plugin:do を使うべき。
$ARGUMENTS の内容を分析し、以下のいずれかに該当する場合は即座にユーザーに通知する:
| 判定基準 | 例 |
|---|---|
| 変更ファイルが5つ以上になりそう | 新機能追加、大規模リファクタ |
| 複数のコンポーネント/レイヤーにまたがる | フロント+バックエンド+DB |
| 新しいアーキテクチャパターンの導入 | 状態管理の刷新、認証基盤の追加 |
| 要件が曖昧で深いインタビューが必要 | 「○○を改善して」のような抽象的な依頼 |
| Codexレビューやレビューエージェントが必要なリスク | セキュリティ変更、決済系、データ移行 |
該当する場合のAskUserQuestion:
Question: "This task seems too large for tiny-do. The scope includes [specific reason]. Would you like to use /do instead for full review support?"
Header: "Scope Check"
Options:
1. "Use /do (Recommended)" - Full review with Codex, review agents, REPORT.md, npx reviw
2. "Continue with tiny-do" - I understand the scope is small enough
3. "Let me narrow the scope" - I'll reduce what I'm asking for
ユーザーが「Continue with tiny-do」を選んだ場合のみ続行。
ユーザーが「Use /do」を選んだ場合、/reviw-plugin:do にリダイレクトする。
ユーザーの要求を勝手に解釈しない。doと同じ深さで確認する。
AskUserQuestionで以下を確認:
Round 1: User Story & Scope
Round 2: Functional Requirements (based on Round 1)
Round 3: Technical Constraints (based on Round 1-2)
曖昧さが解消されたら次に進む。
実装前に既存コードベースを深く理解する。
Launch 2-3 code-explorer agents in parallel, each targeting a different aspect:
Agent 1: "Find features similar to [requested feature] and trace through their implementation comprehensively. Return a list of 5-10 key files."
Agent 2: "Map the architecture and abstractions for [feature area], tracing through the code comprehensively. Return a list of 5-10 key files."
Agent 3: "Identify UI patterns, testing approaches, or extension points relevant to [feature]. Return a list of 5-10 key files."
After agents return:
コードベース探索の結果を元に、最適な実装アプローチを1案提案する。
提案に含める内容:
AskUserQuestionでユーザーに確認:
Question: "Based on codebase analysis, here is the recommended approach:"
Header: "Architecture"
Options:
1. "[Approach] - [Summary] (Recommended)" - [Rationale]. Trade-off: [X]
2. "Let me explain more" - Need more context before deciding
3. "I have a different idea" - Want to suggest alternative
Review Agent Advisory (設計助言):
Architecture提案をユーザーに見せる前に、Review Agentから助言をもらう。 該当するものだけ並列で起動:
# Code & Security 助言(常に)
Agent(subagent_type="reviw-plugin:review-code-security", prompt="以下の設計案に助言してください:\n[設計案の要約]\n[変更ファイル一覧]")
# E2E 助言(テストに影響する変更の場合)
Agent(subagent_type="reviw-plugin:review-e2e", prompt="以下の設計案にE2E観点で助言してください:\n[設計案の要約]")
# UI/UX 助言(UI変更がある場合のみ)
Agent(subagent_type="reviw-plugin:review-ui-ux", prompt="以下のUI設計案に助言してください:\n[設計案の要約]")
Critical/High指摘があれば設計案を修正してからユーザーに提示する。
ユーザー確認後に実装に進む。
# git-wtが必要
git wt --version || echo "ERROR: git-wt required. Install: brew install k1LoW/tap/git-wt"
# worktree作成
git wt <branch-name>
# 移動
cd .worktree/<branch-name>
| Type | Branch Name | Example |
|---|---|---|
| New feature | feature/<name> | feature/login-button |
| Bug fix | fix/<name> | fix/validation-error |
| Refactoring | refactor/<name> | refactor/api-client |
PROJECT_TYPE="unknown"
if [ -f package.json ] && grep -qE '"(react|vue|svelte|next|nuxt|@angular/core|solid-js|astro)"' package.json 2>/dev/null; then
PROJECT_TYPE="web"
elif [ -f Podfile ] || [ -f pubspec.yaml ] || ([ -f app.json ] && grep -q '"expo"' app.json 2>/dev/null); then
PROJECT_TYPE="mobile"
elif [ -f go.mod ] || [ -f Cargo.toml ] || [ -f pyproject.toml ] || [ -f requirements.txt ]; then
PROJECT_TYPE="backend"
elif [ -f package.json ] && grep -qE '"(express|fastify|koa|hapi|@nestjs/core|hono)"' package.json 2>/dev/null; then
PROJECT_TYPE="backend"
else
PROJECT_TYPE="web"
fi
echo "Project type: $PROJECT_TYPE"
テスト駆動開発のサイクルを厳守する。実装してからテストを書くのは禁止。
RED: 期待する動作をテストに書く → 実行 → FAIL(赤)を確認
GREEN: 最小限の実装でテストをPASS(緑)にする
Refactor: テストが通ったままリファクタリング
| Project Type | Test Framework | Test Location |
|---|---|---|
| web | Playwright (E2E) | e2e/features/<feature>/ |
| backend | vitest/jest/pytest/go test/cargo test | tests/ or framework default |
| mobile | Maestro E2E flow | .maestro/ |
コンテキスト保護のため、実装はTask toolでサブエージェントに委譲する。
サブエージェントには以下を明示的に指示する:
実装完了後、必ず /reviw-plugin:tiny-done を実行してスクショ・動画確認に進む。
Implementation done
↓
Execute /reviw-plugin:tiny-done
↓
tiny-done handles: screenshot/video capture → open → user approval
↓
Task complete
Do NOT:
中断後にセッションを再開した場合:
# worktreeの確認(引数なしで一覧表示)
git wt
# ⚠️ `git wt list` は禁止!("list" というworktreeが作成されてしまう)
# ✅ `git wt`(引数なし)または `git worktree list` を使う
# worktreeに移動
cd .worktree/<branch-name>
# TodoListで進捗確認 → 未完了タスクから再開