Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
On detection: announce "Design decision needed: [situation]", proceed Steps 1-3. Record decision in REQUESTS.md (Stage 1) or PROGRESS.md (Stage 2+).
Escalation: Tier 1 (this skill) vs Tier 2 (fierce-debate)
This skill (Midori, consensus-seeking, cheap, auto-triggerable) is Tier 1 and the default. For irreversible / high-stakes decisions, escalate to Tier 2 โ team-shinchan:fierce-debate (a deterministic main-loop Workflow with a non-skippable refutation round + scored judge).
Stay on Tier 1 (this skill)
Escalate to fierce-debate
Reversible, low-stakes, simple 2-option
Irreversible: schema migration, public API contract, security boundary, data-loss
Quick consensus acceptable
A guaranteed refutation round is worth the cost
Auto-triggered, silent
Explicit user opt-in only (Workflow can't fire silently)
Auto-detect never silently jumps to Tier 2 โ on a high-stakes detection, announce the design decision and offer the opt-in; the user launches /team-shinchan:fierce-debate. Both tiers write to the same .shinchan-docs/debate-decisions.md ledger (see agents/_shared/debate-decisions.md).
Competitive Code Mode Detection
Triggers: args contains any of: "๊ฒฝ์ ๊ตฌํ", "competitive", "best of N", "best of", "parallel implementation", "competitive-code"
If competitive-code trigger detected:
Parse: N = number of implementations (default 2, max 3). Extract from "best of N" pattern or use default.
Extract implementation request = args after trigger keyword removal.
Proceed to Step 1-CC (Competitive Code routing).
Tier 2 escalation: this Midori/worktree path is the cheap default. For a high-value contested implementation where you want a deterministic, schema-validated tournament (read-only builders โ scored judge โ winner picked by score, applied + tested), escalate to team-shinchan:fierce-compete (opt-in main-loop Workflow). Never silently jump to it; offer the opt-in.
Step 1-CC: Invoke Midori for Competitive Code
Task(
subagent_type="team-shinchan:midori",
model="sonnet",
prompt=`Competitive Code mode invoked.
## Request
${implementation_request}
## Parameters
- N implementations: ${N} (max 3)
- Mode: competitive-code
## Instructions
Run the competitive-code workflow:
1. ToolSearch for EnterWorktree schema before starting (HR-3)
2. Set .current-agent to midori before parallel Task calls (HR-1)
3. Dispatch N Bo subagents each in an isolated worktree via EnterWorktree
4. Collect implementation reports from all Bo agents
5. Dispatch Action Kamen to judge all implementations using rubric scoring (FR-2.1)
6. Announce winner and score comparison table
7. Merge winner worktree to main, ExitWorktree all others
8. Guarantee cleanup on error (NFR-3)
9. Record decision in .shinchan-docs/debate-decisions.md
See agents/midori.md ## Competitive Code Workflow for full procedure.`
)
Ask user if they accept the winner's implementation. If yes: proceed to completion. If no: offer to run competitive-code again or accept a specific implementation.
STOP. Steps 1-CC through 3-CC handle the full competitive-code workflow. Do NOT proceed to Step 1 (standard debate) when competitive-code mode was detected.
Step 1: Invoke Midori
Task(subagent_type="team-shinchan:midori", model="sonnet",
prompt="Debate topic: {topic}\nPanel: {panel list}\nProcedure: Announce, collect opinions (parallel), ALWAYS run a separate refutation round (even on apparent agreement), then a separate scored judge picks the winner with surviving dissent, report decision.")