ai-team-library/claude/skills/scaffold-project/SKILL.md
# Skill: Scaffold Project ## Description Creates the standard project folder structure from a composition spec. Produces the repo skeleton that all other skills and personas operate within: CLAUDE.md, `.claude/` agent/skill/hook directories, `ai/` context and output directories, README, and per-persona output folders. This is the structural foundation step in the Foundry pipeline (Select --> Compose --> Compile --> **Scaffold** --> Seed --> Export). ## Trigger - Invoked by the `/scaffold-pro
npx skillsauth add beekeeper-lab/foundry ai-team-library/claude/skills/scaffold-projectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Creates the standard project folder structure from a composition spec. Produces
the repo skeleton that all other skills and personas operate within: CLAUDE.md,
.claude/ agent/skill/hook directories, ai/ context and output directories,
README, and per-persona output folders. This is the structural foundation step
in the Foundry pipeline (Select --> Compose --> Compile --> Scaffold --> Seed --> Export).
/scaffold-project slash command.foundry_app/services/scaffold.py during pipeline execution.foundry-cli generate.| Input | Type | Required | Description |
|-------|------|----------|-------------|
| composition_spec | YAML file path | Yes | The composition defining project identity, personas, stacks, and hooks |
| output_dir | Directory path | No | Where to create the project; defaults to {output_root}/{slug} from the spec |
{output_dir}/ if it does not exist.agents/, skills/, commands/, and hooks/ under .claude/.include_agent: true, write a thin .claude/agents/{persona}.md that references the compiled member prompt path and output directory.context/, generated/members/, team/, tasks/, and outputs/ under ai/.ai/context/project.md (project overview with stacks, personas, hooks detail, team responsibilities, conventions), ai/context/stack.md, and ai/context/decisions.md.ai/team/composition.yml for reproducibility.ai/outputs/{persona}/ with a README explaining the directory's purpose.| Output | Type | Description | |--------|------|-------------| | CLAUDE.md | File | Top-level project constitution for Claude Code | | README.md | File | Project README with pointer to CLAUDE.md | | .claude/agents/.md | Files | Thin agent wrappers for each active persona | | ai/context/.md | Files | Project context, stack context, and decisions documents | | ai/team/composition.yml | File | Serialized composition spec snapshot | | ai/outputs/*/README.md | Files | Per-persona output directory with README |
include_agent: true has a corresponding .claude/agents/{id}.md file.ai/outputs/{id}/ directory with a README.ai/context/project.md contains team responsibilities and stack conventions.ai/team/composition.yml round-trips through the CompositionSpec model without data loss.| Error | Cause | Resolution |
|-------|-------|------------|
| InvalidCompositionSpec | YAML fails schema validation | Fix the composition YAML to match the CompositionSpec model |
| OutputDirNotWritable | Cannot create the output directory | Check filesystem permissions or choose a different path |
| OutputDirExists | Output directory already contains files | Use --force to overwrite or choose a clean directory |
foundry_app/core/models.py -- CompositionSpec data contractfoundry_app/services/scaffold.py -- reference implementationdevelopment
# Skill: VDD (Verification-Driven Development) Gate ## Description Runs the programmatic VDD gate for a bean: parses the bean's `## Acceptance Criteria` section, dispatches each criterion's evidence type to the matching runner (test, lint, file, file-contains, or manual), aggregates the results into a pass/fail verdict, and writes a structured markdown report at `ai/outputs/tech-qa/vdd-<NNN>.md` (zero-padded NNN). This is the machine-checkable counterpart to the prose VDD policy in `ai/contex
tools
# Skill: Spawn Task ## Description Dispatches a single specialist persona to execute a single task with only that task's context. Auto-detects the runtime environment and chooses one of two execution paths: - **In tmux** (`$TMUX` set): spawn a worker in a git worktree using a child tmux window. Process-isolated, parallelizable, durable across the calling session's lifetime. Same pattern as `/spawn-bean` but at task granularity. - **Not in tmux**: invoke the `Agent` tool with `subagent_typ
development
# Skill: Orchestration Report ## Description Aggregates the per-bean **Orchestration Telemetry** blocks (BEAN-278) across recent Done beans and produces a markdown report that answers the architecture-aware-evaluation question: **is the orchestration paying for itself?** Distinct from `/telemetry-report` (which aggregates raw cost, duration, and tokens); this skill aggregates the orchestration-quality metrics layered on top — bounces, persona activations, contract violations, escape-hatch usag
development
# Skill: Health Check ## Description Runs all health checks defined in `ai/context/health-checks.md` and produces a table-format report. Can be called standalone or by other skills (e.g., `/long-run`). ## Trigger - Invoked by the `/health-check` slash command. - Called programmatically by `/long-run` at the start of each cycle. ## Inputs | Input | Type | Required | Description | |-------|------|----------|-------------| | health_checks | Markdown file | Yes | `ai/context/health-checks.md`