ai-team-library/claude/skills/close-loop/SKILL.md
# Skill: Close Loop ## Description Verifies task completion by checking produced artifacts against the original acceptance criteria, runs quality checks, and closes the feedback loop between requesting and producing personas. If all criteria pass, the task is marked complete and downstream consumers are notified. If criteria fail, the task is returned to the producer with specific, actionable failure reasons. This skill enforces the quality contract that keeps the autonomous team reliable. ##
npx skillsauth add beekeeper-lab/foundry ai-team-library/claude/skills/close-loopInstall 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.
Verifies task completion by checking produced artifacts against the original acceptance criteria, runs quality checks, and closes the feedback loop between requesting and producing personas. If all criteria pass, the task is marked complete and downstream consumers are notified. If criteria fail, the task is returned to the producer with specific, actionable failure reasons. This skill enforces the quality contract that keeps the autonomous team reliable.
/close-loop slash command for on-demand status verification.| Input | Type | Required | Description |
|--------------------|-------------|----------|--------------------------------------------------------------------------|
| task_id | String | Yes | Identifier of the task being verified (e.g., TASK-007-implement-api) |
| task_spec | File path | Yes | The original task specification containing acceptance criteria |
| produced_artifacts | File list | Yes | Paths to every output artifact claimed by the producing persona |
| persona_outputs_md | File path | Yes | The producing persona's outputs.md defining quality bar references |
outputs.md (formatting, completeness, depth).complete. Identify downstream tasks that were blocked and notify the consuming persona(s) that the dependency is satisfied.returned. Send the verification report back to the producing persona with specific, actionable failure descriptions.| Output | Type | Description |
|------------------------|--------------------------------------------|-------------------------------------------------------------------|
| verification_report | Markdown file | Detailed pass/fail/partial status per acceptance criterion |
| task_status | Enum: complete, returned, blocked | Updated state of the task after verification |
| handoff_notification | Text | Message to downstream persona(s) if task is complete; includes artifact locations |
returned status can fix every issue without asking clarifying questions.| Error | Cause | Resolution |
|----------------------------|-------------------------------------------------------|--------------------------------------------------------------|
| TaskNotFound | The task_id does not match any known task file | Verify the task_id and ensure the task file exists |
| TaskSpecMissingCriteria | The task spec has no acceptance criteria defined | Add at least one testable criterion to the task spec |
| ArtifactMissing | A claimed artifact path does not exist on disk | Ensure the producing persona wrote all outputs to the correct paths |
| ArtifactEmpty | An artifact file exists but is zero bytes | Re-produce the artifact; empty files do not satisfy criteria |
| PersonaOutputsNotFound | The persona's outputs.md file cannot be located | Check the persona directory in the library for outputs.md |
| AutomatedCheckFailed | A linter, test suite, or formatter returned errors | Fix the reported issues and re-submit the artifacts |
| DownstreamPersonaUnknown | A dependent task references a persona not in the team | Update the team composition or reassign the downstream task |
outputs.md for quality bar definitionsdevelopment
# 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`