ai-team-library/claude/skills/validate-repo/SKILL.md
# Skill: Validate Repo ## Description Runs a comprehensive health check against a generated project or any repo that follows the Foundry structure. Verifies folder expectations, required files, template completeness, broken internal links, and stack-specific tooling (lint, test, build commands). Produces a pass/fail checklist with actionable remediation for every finding. This skill works on any project regardless of stack because it adapts its checks based on the composition spec. ## Trigger
npx skillsauth add beekeeper-lab/foundry ai-team-library/claude/skills/validate-repoInstall 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.
Runs a comprehensive health check against a generated project or any repo that follows the Foundry structure. Verifies folder expectations, required files, template completeness, broken internal links, and stack-specific tooling (lint, test, build commands). Produces a pass/fail checklist with actionable remediation for every finding. This skill works on any project regardless of stack because it adapts its checks based on the composition spec.
/validate-repo slash command.| Input | Type | Required | Description |
|-------|------|----------|-------------|
| project_dir | Directory path | Yes | Root of the project to validate |
| composition_spec | YAML file path | No | Composition spec; defaults to ai/team/composition.yml in the project |
| check_level | Enum: structure, content, full | No | Depth of validation; defaults to full |
ai/team/composition.yml from the project directory. If missing, run structural checks only..claude/agents/, ai/context/, ai/generated/members/, ai/team/, ai/tasks/, ai/outputs/.CLAUDE.md, README.md, ai/team/composition.yml exist and are non-empty..claude/agents/{id}.md and ai/generated/members/{id}.md exist.ai/outputs/{id}/ exists for each persona.python: Check for pyproject.toml or setup.py; verify pytest or test command is runnable.node/react/typescript: Check for package.json; verify npm test or equivalent exists.java: Check for pom.xml or build.gradle.dotnet: Check for *.csproj or *.sln..env files, hardcoded API keys, or credentials patterns in tracked files.ai/generated/manifest.json exists, confirm the files it lists still exist on disk.| Output | Type | Description | |--------|------|-------------| | validation_report | Markdown file | Structured checklist with status per check and remediation steps | | exit_code | Integer | 0 if all checks pass, 1 if any errors, 2 if warnings only |
| Error | Cause | Resolution |
|-------|-------|------------|
| ProjectDirNotFound | The specified directory does not exist | Check the path |
| NotAFoundryProject | No CLAUDE.md or ai/ directory found | Verify this is a Foundry-generated project |
| CompositionParseError | The composition spec is malformed | Fix the YAML in ai/team/composition.yml |
| StackCheckUnavailable | A stack-specific tool is not installed | Install the required tool or skip stack checks with --check-level structure |
foundry_app/services/validator.py -- existing validation logic for composition and library checksfoundry_app/services/export.py -- validate_generated_project() for structural checksdevelopment
# 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`