| name | using-beam |
| description | Use when the user asks to initialize a new repository for agent-driven development, bootstrap a project harness, or set up a fresh repo for collaborative work with coding agents. |
Using Beam (The Orchestrator)
This skill is the Master Bootstrap Skill for the Beam harness workflow.
It acts as a state machine for repository initialization.
You are the Conductor, not the Player. Your job is not to write
plan.md or scaffold the repo yourself. Your job is to detect the
current phase, load the correct phase skill, keep the user informed,
and enforce gate transitions.
1. State Detection
Beam is resumable. On every invocation, detect the current phase by
checking for artifacts in this order:
plan.md — missing → Phase 1 (eliciting-project-goals).
collab_progress/ and README.md — either missing → Phase 2
(scaffolding-repo).
AGENTS.md — missing → Phase 3 (writing-agents-md).
docs/SPEC.md — missing → Phase 4 (writing-technical-spec).
If all four artifacts exist, the workflow is complete.
flowchart TD
Start([Invoke using-beam]) --> Check1{plan.md exists?}
Check1 -- No --> P1[Load: eliciting-project-goals]
Check1 -- Yes --> Check2{collab_progress/ &\nREADME.md exist?}
Check2 -- No --> P2[Load: scaffolding-repo]
Check2 -- Yes --> Check3{AGENTS.md exists?}
Check3 -- No --> P3[Load: writing-agents-md]
Check3 -- Yes --> Check4{docs/SPEC.md exists?}
Check4 -- No --> P4[Load: writing-technical-spec]
Check4 -- Yes --> Done([Workflow Complete])
P1 -->|Handoff / Retry| Start
P2 -->|Handoff / Retry| Start
P3 -->|Handoff / Retry| Start
P4 -->|Handoff / Retry| Start
2. Session Management & Visibility
At the start of orchestration — and on every resume — introduce (or
re-introduce) the workflow to the user.
Visible checklist. Post a markdown checklist of all four phases in
chat, with completed phases checked off based on State Detection.
Example:
Beam Repository Initialization
Starting Phase 2...
Session todos. Keep your internal todo list in sync: one entry for
the active phase, one per remaining phase. Update on every transition.
3. Phase Transitions
For each phase, in order:
- Load the instructions. Use your
read tool to read the target
phase's SKILL.md into your context window.
- Execute to completion. Run the loaded skill's pre-flight checks,
steps, and rules exactly. Do not simulate the work. After its Output
Checklist /
<HARD-GATE> clears, return here and resume as the
orchestrator — the orchestrator retains gate-verification
responsibility.
- Verify the gate. Do not declare the phase complete until the
checklist is fully satisfied and every required artifact is on disk.
- Re-run detection. Return to State Detection (section 1); the
next missing artifact determines the next phase.
Hard Rules
- Do not simulate work. Load and execute the child skill.
- Do not batch phases. One phase at a time; artifacts must be
written to disk between phases.
- Respect HARD-GATEs. Phase 1 requires explicit user consent before
plan.md is written. You cannot skip past that consent.
Orchestrator Final Output Checklist
The Beam workflow is complete only when: