From vibe-center-skills
Executes automated cleanup of flow scenes (worktree, branches, handoff files, flow records) when a manager signals a terminal state via handoff indicate.
How this skill is triggered — by the user, by Claude, or both
Slash command
/vibe-center-skills:vibe-closeoutThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill handles cleanup of flow scenes when they reach terminal states (done/aborted).
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
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub jacobcy/vibe-coding-control-center