skills/vibe-closeout/SKILL.md
Use when manager has signaled flow terminal state cleanup via handoff indicate. Reads cleanup instructions and executes FlowCleanupService. Do not use for code changes or PR creation.
npx skillsauth add jacobcy/vibe-coding-control-center vibe-closeoutInstall 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.
This skill handles cleanup of flow scenes when they reach terminal states (done/aborted).
Trigger Condition: Manager has written handoff indicate with cleanup instructions for a terminal flow.
Use vibe-closeout for automated cleanup triggered by Manager signal.
Use vibe-done for human-initiated cleanup after confirming PR merge.
Execute cleanup of flow resources (worktree, branches, handoff files, flow records) based on manager's cleanup instructions.
Use this skill when:
cleanup_mode and branchDo NOT use for:
Read cleanup instructions from handoff indicate:
uv run python src/vibe3/cli.py handoff status <branch>
Expected instruction format:
Before executing cleanup:
cleanup_mode is either "preserve" or "reset"branch field is present and non-emptyIf verification fails:
Execute cleanup using existing cleanup service:
Option A: Using CLI (Recommended)
uv run python src/vibe3/cli.py check --clean-branch
This command will automatically detect and clean terminal flows.
Option B: Using FlowCleanupService directly
If more control is needed, the service can be invoked programmatically:
from vibe3.services.flow_cleanup_service import FlowCleanupService
from vibe3.services.flow_service import FlowService
from vibe3.clients.sqlite_client import SQLiteClient
store = SQLiteClient()
flow_service = FlowService(store=store)
cleanup_service = FlowCleanupService(flow_service=flow_service)
# Determine parameters from cleanup_mode
keep_flow_record = (cleanup_mode == "preserve")
# Execute cleanup
results = cleanup_service.cleanup_flow_scene(
branch=branch,
include_remote=True,
terminate_sessions=True,
keep_flow_record=keep_flow_record,
force_delete=False
)
After cleanup execution:
Check worktree removal:
git worktree list
Check branch deletion:
git branch -a | grep <branch>
Check handoff cleanup:
uv run python src/vibe3/cli.py handoff status <branch>
Check flow record:
uv run python src/vibe3/cli.py flow show
Write handoff append confirming cleanup:
uv run python src/vibe3/cli.py handoff append "Cleanup completed: <branch> - mode: <cleanup_mode>" --kind note
Allowed:
Forbidden:
If cleanup fails:
Example handoff append for failure:
uv run python src/vibe3/cli.py handoff append "Cleanup failed for <branch>: <error-details>" --kind blocker
# Check flow status
uv run python src/vibe3/cli.py flow show
# View handoff events
uv run python src/vibe3/cli.py handoff status <branch>
# Execute cleanup (manual)
uv run python src/vibe3/cli.py check --clean-branch
development
Use after `vibe init` to verify project configuration completeness. Interactively prompts user to fill missing items. Orchestrates existing commands without adding Python code. Supports cross-project vibe3 readiness verification (Phase 5-8). Do not use for system-level installation issues (use vibe-onboard instead).
development
Use when the user wants a comprehensive review using the multi-agent team workflow. Applies to PRs, code changes, architecture decisions, and any task requiring team-based analysis.
testing
Use for handling blocked and RFC issues, making decisions that may form ADRs (Architecture Decision Records). Processes problem issues requiring human judgment, dependency resolution, and architectural decisions. Do not use for routine issue monitoring (use vibe-orchestra) or roadmap planning (use vibe-roadmap).
testing
Use when the user wants to save session context. This is a human-facing session handoff entrypoint that preserves work state via vibe3 handoff, not an automated persistence workflow.