بنقرة واحدة
warrooming
Use after /imagine completes to create an executable implementation plan (War Room phase).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use after /imagine completes to create an executable implementation plan (War Room phase).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Execute a single phase with sequential task execution in an isolated worktree.
Execute implementation plan with autonomous subagent pipeline. Two-stage review (spec + quality). Flags only for critical blockers.
Use when a user wants to develop a rough idea into a product design. Activates a virtual startup team that guides the user through Discovery, Definition, Validation, and Architecture phases. Creates session.yaml and four design documents.
Start the Office Dashboard to visualize /build progress in real-time
Use when code review feedback requires fixes - emphasizes technical verification over performative agreement
| name | warrooming |
| description | Use after /imagine completes to create an executable implementation plan (War Room phase). |
Transform design documents into an executable implementation plan.
Announce at start: "I'm using the warrooming skill to create the implementation plan."
Check docs/office/session.yaml:
status is not imagine_complete: Stop and say "Run /imagine first."Do NOT read design documents into main context. The agent reads files directly.
Task tool:
subagent_type: office:project-manager
prompt: |
# Project Manager: Create Implementation Plan
## Read These Files (extract key sections only)
- `docs/office/01-vision-brief.md` → Problem, Vision, Key Capabilities
- `docs/office/02-prd.md` → Feature Priority table
- `docs/office/04-system-design.md` → Technology Stack table
## Task
Create a phased implementation plan (4-6 phases).
Each phase needs: Goal, Milestone, Dependencies, Key Tasks.
Write the plan to `docs/office/plan.md` using the Write tool.
This must complete before Step 3.
Task tool:
subagent_type: office:team-lead
prompt: |
# Team Lead: Create Task Breakdown
## Read These Files
- `docs/office/plan.md` - The implementation plan
- `docs/office/02-prd.md` - User Stories section
## Task
Create tasks.yaml with tasks to fully implement the plan.
Each task: id, description, assigned_agent, dependencies, acceptance_criteria.
Keep it focused - no TDD steps here.
Write to `docs/office/tasks.yaml` using the Write tool.
## Output Structure
The tasks.yaml MUST follow this structure with phase-level `depends_on`:
```yaml
phases:
- id: phase-1
name: Project Setup
depends_on: [] # No dependencies - can start first
tasks:
- id: setup-001
description: Initialize project structure
agent: backend-engineer
depends_on: []
acceptance_criteria:
- Project directory created
- package.json initialized
- id: phase-2
name: Backend API
depends_on: [phase-1] # Must wait for phase-1 to complete
tasks:
- id: api-001
description: Create user model
agent: backend-engineer
depends_on: []
- id: phase-3
name: Frontend UI
depends_on: [phase-1] # Can run PARALLEL with phase-2
tasks:
- id: ui-001
description: Create app shell
agent: frontend-engineer
depends_on: []
- id: phase-4
name: Integration
depends_on: [phase-2, phase-3] # Waits for BOTH
tasks:
- id: int-001
description: Connect frontend to API
agent: frontend-engineer
depends_on: []
```
**Phase dependency rules:**
- Every phase MUST have a `depends_on` field (use `[]` if no dependencies)
- Infer from task relationships: if any task in Phase B depends on a task in Phase A → Phase B `depends_on: [phase-A]`
- Phases with `depends_on: []` can start immediately and run in parallel
- This enables parallel phase execution during /build
After Step 2 completes, run DevOps and N Team Leads in parallel as background agents.
Why background agents? Each spec agent generates 20-50k tokens of output. Running them in the foreground would overflow the context window. Background agents write files independently and keep their output separate.
Run this bash command to get phases from plan.md:
grep "^### Phase" docs/office/plan.md
Parse the output to get:
Convert names to snake_case for folders (e.g., project_setup, backend_api).
In a SINGLE message, dispatch N+1 Task tools with run_in_background: true:
DevOps (1 background agent):
Task tool:
subagent_type: office:devops
run_in_background: true
prompt: |
# DevOps: Environment Setup
## Context
Read the tech stack from `docs/office/04-system-design.md`.
Read the current plan from `docs/office/plan.md`.
## Task
Add an environment setup section to the plan: Prerequisites, Local Setup, Env Vars, CI/CD, Deployment.
Be specific to the tech stack.
Use the Edit tool to append your "## Environment Setup" section to `docs/office/plan.md`.
Team Lead per Phase (N background agents):
Task tool:
subagent_type: office:team-lead
run_in_background: true
prompt: |
# Team Lead: Generate Implementation Spec for Phase {N}
## Your Assignment
Phase: {phase_number} - {phase_name}
Output: Create `spec/phase_{N}_{snake_name}/spec.md`
## Context (Read These Files)
- `docs/office/plan.md` - Overall implementation plan
- `docs/office/tasks.yaml` - All tasks (write specs for YOUR phase only)
- `docs/office/04-system-design.md` - Architecture and naming conventions
## Task
1. Create the folder: `spec/phase_{N}_{snake_name}/`
2. Write `spec.md` with TDD implementation steps for EVERY task in Phase {N}
3. Each task needs: Files, Step 1-5 (test → fail → implement → pass → commit)
4. Use exact file paths, exact code - no placeholders like "add logic here"
5. Reference other phases' tasks when needed (you can see all tasks)
## Spec Format
```markdown
# Phase {N}: {Phase Name} - Implementation Spec
## Task {task-id}: {task title}
**Files:**
- Create: `exact/path/to/file.ts`
- Modify: `exact/path/to/existing.ts`
- Test: `tests/exact/path/test.ts`
**Step 1: Write failing test**
```typescript
// Full test code here
```
**Step 2: Run test, verify failure**
Run: `npm test -- --grep "test name"`
Expected: FAIL with "specific error"
**Step 3: Implement**
```typescript
// Full implementation code here
```
**Step 4: Run test, verify pass**
Run: `npm test -- --grep "test name"`
Expected: PASS
**Step 5: Commit**
`git commit -m "feat: description"`
```
## Quality Checks
- Every task in Phase {N} from tasks.yaml has a spec entry
- Code is complete and copy-pasteable
- File paths match the project structure from system design
CRITICAL: Do NOT pull agent output into main context.
Each background agent returns a task_id. Wait for completion without retrieving verbose output:
For each agent task_id:
TaskOutput tool:
task_id: <agent_id>
block: true
timeout: 300000 # 5 minutes per agent
The TaskOutput result confirms completion but do not store or process the detailed output. The agents already wrote their files directly.
Check that spec files exist - don't read their contents:
# Count spec files
ls spec/phase_*/spec.md 2>/dev/null | wc -l
# Check DevOps section was added
grep -q "## Environment Setup" docs/office/plan.md && echo "DevOps: OK" || echo "DevOps: MISSING"
If any spec file is missing:
spec/phase_N_*/spec.md doesn't exist# Retry example for failed Phase 2:
Task tool:
subagent_type: office:team-lead
run_in_background: true
prompt: |
# RETRY: Generate Implementation Spec for Phase 2
[Same prompt as original, for the specific failed phase]
After retry, verify again with ls. If still failing after 2 retries, report error and continue with available specs.
Report status table (do NOT include file contents):
## Spec Generation Results
| Phase | Status | File |
|-------|--------|------|
| 1. Project Setup | ✓ | spec/phase_1_project_setup/spec.md |
| 2. Backend API | ✓ | spec/phase_2_backend_api/spec.md |
| 3. Frontend UI | ✓ | spec/phase_3_frontend_ui/spec.md |
| DevOps | ✓ | docs/office/plan.md (env section) |
Extract shell command prefixes from generated specs for build-time permission priming.
Run extraction command:
# Extract unique command prefixes from all bash code blocks in specs
grep -hE '^\s*(npm|npx|yarn|pnpm|git|node|cargo|go|python|pip|pytest|make|tsc|jest|vitest)\b' spec/phase_*/spec.md 2>/dev/null | \
sed 's/^\s*//' | cut -d' ' -f1 | sort -u
Fallback inference from project files (if no specs or empty result):
# Detect from project config files
[ -f package.json ] && echo "npm"
[ -f yarn.lock ] && echo "yarn"
[ -f pnpm-lock.yaml ] && echo "pnpm"
[ -f Cargo.toml ] && echo "cargo"
[ -f go.mod ] && echo "go"
[ -f requirements.txt ] && echo "pip" && echo "python"
[ -f pyproject.toml ] && echo "pip" && echo "python"
Add to tasks.yaml:
Use sed to insert required_permissions at the top of tasks.yaml:
# Get the extracted permissions as a list
PERMS=$(grep -hE '^\s*(npm|npx|yarn|pnpm|git|node|cargo|go|python|pip|pytest|make|tsc|jest|vitest)\b' spec/phase_*/spec.md 2>/dev/null | sed 's/^\s*//' | cut -d' ' -f1 | sort -u)
# Prepend to tasks.yaml
{
echo "required_permissions:"
echo "$PERMS" | sed 's/^/ - /'
echo ""
cat docs/office/tasks.yaml
} > docs/office/tasks.yaml.tmp && mv docs/office/tasks.yaml.tmp docs/office/tasks.yaml
Verify spec count matches phase count (already done in 3d, just confirm):
ls spec/phase_*/spec.md | wc -l
docs/office/session.yaml: status → plan_completegit add docs/office/ spec/ && git commit -m "docs(office): complete warroom phase with implementation specs"
This skill stays atomic (single session) by: