/vibe-generic:cl-executefrom vibe-generic
Drafts ClosedLoop implementation plans with Mermaid flowcharts, executes feature tickets end-to-end including review, validation, PR management, and ticket reconciliation.
Ships in vibe-generic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Draft the required ClosedLoop-linked implementation plan, then execute one
functional feature as a long-running goal. A feature is one complete selected
user-facing page or capability delivered end to end, not automatically an
entire PRD. It may be one ticket or one coherent multi-ticket unit explicitly
selected by $cl-sweep; all member tickets and shipping surfaces required for
that page or capability belong in one integrated pull request. Other pages or
capabilities from the same PRD and separately owned shared-foundation
prerequisites may remain outside this feature boundary.
$cl-execute <ClosedLoop feature URL or FEA/ISS slug>
$cl-execute batch: <ticket URL> <ticket URL> ...
$cl-analyze decides whether work is ready and whether a plan approval gate is
required. $cl-execute owns plan drafting, plan review, upload/link, revision,
approval-or-wait disposition, implementation, the two-pass coordinated
code-review sequence, validation, PR handoff, merge disposition, and ticket/
plan reconciliation.
Treat the invocation as standing approval to create and approve the implementation plan after worker review, create a PR, address PR feedback, merge once CI is green and the PR is ready, and mark the feature done after merge. This approval applies only after the readiness gate passes and no human UI plan approval is required. It does not authorize high-complexity execution without an exact-ticket override, extreme-risk work, incoherent batches, duplicate/stale or blocked work, UI implementation without required human plan approval, manual CI or review triggers, or externally visible engineering/operational comments.
Do not post completion messages.
When invoked within a sweep, follow display events for both Desktop and CLI owners: report actual planning, coding, review and human-wait entry, and clear the phase on exit. Logging failures do not block work. Publish verified business status after existing authenticated ClosedLoop ticket reads, without additional wallpaper queries. Report explicitly established or cleared ticket dependencies using that reference.
Read only the references relevant to the current phase:
CL Execute Gate Result or CL Execute Result output schemas:
references/result-formats.md.scripts/check-plan.mjs lints a plan draft before review and
upload; scripts/decision-log.sh appends to the private decision log.If a phase crosses more than one category, read each matching reference before acting. Do not load every reference by default.
Before routing blockers, recommending blocker communication, or writing
externally visible blocker text, read the sibling policy skill at
../cl-policy/SKILL.md and follow its Required Reference resolution order. Use
references/local-policy.md when present; otherwise use
references/local-policy.example.md only to understand the required shape, then
require a populated $HOME/.closedloop-ai/local-policy.md before routing. Use
the policy terms Product contact and Engineering attention contact; do not
hardcode a personal name for the engineering attention contact.
$workflow-orchestrator, $workflow-execute, or any
orchestrator-run ticket execution workflow.$cl-split, split tickets, create child tickets, or turn
legacy split evidence into a split-repair route. Keep every issue as the
single ticket it already is.workflow-memory CLI for repo-memory root resolution,
queries, writes, validation, and attachments. Do not route memory access
through workflow-orchestrator.code_tests_for when a checkout cannot
provide better related-test data, and local related-test tooling when
available) plus repo memory to select isolated tests/static checks for the
files actually changed; run only those focused commands, mandatory hooks, and
git diff --check unless the delta invalidates prior evidence, expands the
touched surface, or touches an unindexed path where graph evidence cannot map
the blast radius.$workflow-code-review generations before
opening or finalizing the PR in both Codex Desktop and Codex CLI sessions:
review, fix valid findings, review the remediated tree again, then fix valid
second-pass findings. Never launch a third coordinated review generation after
the second pass completes, including after further fixes, head changes,
rebases, or integration.$workflow-code-review lane set concurrently in one fan-out. The generic
two-support-lane cap does not apply to these read-only review cohorts; do not
serialize, batch, or throttle their lanes when concurrency slots are
available. Those lanes are the whole review; there is no extra lane.origin/main, the PR/merge-group head, and
relevant peer PR runs when useful. If latest main already fixes the failure,
integrate main into the branch and push. If other active PRs or latest main
are green for the same lane, treat the failure as branch-caused, indirect, or
flaky-but-owned by this PR until the worker fixes it or automatic rerun
evidence proves the current head green. Only a CI-provider outage, credential
outage, or job that cannot execute may be routed as an external wait, and the
result must name the exact external owner/evidence.ENGINEERING_BLOCKED, BLOCKED_BEFORE_START, or any dependency
blocker from ClosedLoop status or artifact links alone. First verify the
blocker against live GitHub PR state, current origin/main ancestry, related
plans/comments, closedloop-graph, and the current checkout. If a blocker ticket
or BLOCKS link is stale because the blocking PR already merged, reconcile the
stale ClosedLoop state/link when authorized by the lane, then re-run readiness
instead of repeating the stale blocker.mermaid-visualizer
skill and include Mermaid flowchart code fences that help the operator understand
the scope of change. Default to before/after flowcharts for architecture,
control-flow, data-flow, lifecycle, retry, persistence, or UI flow changes.
If a different flowchart shape explains the scope better, use that shape, but
do not omit diagrams merely because the change is non-UI.wip: commit; under a sweep the parent's
checkpoint captures dirty state, and standalone the note records
git status. Write a resume note to the ticket's workflow-memory execution
record using repo-relative paths only: intent, current phase, what is
verified with evidence pointers, review generations and visual-QA pass used,
the next action, and gotchas. Then return the current status with
Blocker: paused by user instruction.AGENTS.md, repo-local instructions, ClosedLoop status
lifecycle rules, and compatibility guardrails.MANUAL_INTERVENTION_REQUIRED.closedloop-graph proactively under cl-policy's host-capability rules
during intake, readiness revalidation, planning, dependency checks, and final
requirements conformance. Inspect ticket-bounded lineage, blockers,
producers, semantic matches, duplicates, prior Product blockers, related
PRD/plan/comment/design decisions, related PR overlap, and codebase
intelligence. Verify graph-derived code claims against the current checkout
and graph-derived decision claims against live ClosedLoop artifacts. Every
later step that finds something uses the Discovery Routes below.Status: WAITING_UI_PLAN_APPROVAL, reload the linked plan
and ticket comments/status before doing anything else. Continue only when
explicit human approval for the same uploaded UI plan is present.CL Execute Result, or workflow-memory execution record), reconstruct state
before acting. Read the decision log's last rows first and append its
start row, then read the latest result and memory record (including any
pause note), the linked plan, the PR head, checks, and unresolved threads,
the manual-QA comment, and git log plus git diff against the merge base.
Record which phases are done: review generations used, the pre-PR visual-QA
pass, the ordinary review-remediation push, and manual-QA scenarios with
their tested heads and patch-ids. Name the resume point and do not redo a
finished phase; never start a third review generation or a second visual-QA
pass. Do not start classifier-driven QA this workflow did not run before.
Verify each inherited claim the next step depends on against live
state (the PR head matches, checks are as reported, the named focused tests
pass at the head) instead of trusting prior prose, and redo only what live
state contradicts.IN_PROGRESS during intake or the
readiness gate. A gate that ends in BLOCKED_BEFORE_START, including
HUMAN_REVIEW_REQUIRED, leaves every feature status unchanged.CL Execute Gate Result from references/result-formats.md.GO, or is GO_WITH_UI_PLAN_APPROVAL without explicit
approval for the current plan, stop at the matching planning/blocker result.GO, or GO_WITH_UI_PLAN_APPROVAL and planning
proceeds, mark each included non-terminal, non-currently-blocked feature
IN_PROGRESS. This status does not authorize branch creation, source
edits, PR work, or merge work. Confirm every included feature is
IN_PROGRESS before returning a planning wait or starting execution.Whenever a step says to find something, ask closedloop-graph first, under
cl-policy's host-capability rules, then verify each result against the current
checkout, live ClosedLoop, or live GitHub before relying on it. The code graph
indexes the default branch only, so this ticket's branch and uncommitted edits
are never in it. Call sync_status when freshness could change the answer.
| To find | closedloop-graph first | Verify or fall back with |
|---|---|---|
| Callers and importers of a symbol or file | code_symbols to turn a bare name into a repo-qualified path, then code_callers (it drops test rows) and code_importers | rg in the worktree |
| Tests to rerun for a file | repo related-test tooling when you hold the checkout; otherwise code_tests_for | rg over the test tree |
| A string that is not a symbol (route, config key, flag, event, JSON field, IPC channel, error text) | code_grep with its literal fragments joined in one regex alternation | rg |
| Existing channels between two surfaces (push, pull, sockets, lanes, commands) | code_grep for the repo's channel primitives (for example socket emit and subscribe calls, signal emitters, command dispatchers, setInterval-based lanes) joined in one regex alternation | rg |
| Blast radius | the code half above plus blast_radius_tickets on the repo-qualified path | git log --follow |
| Tickets that touched a file | blast_radius_tickets | git log -S/-L, git blame |
| One ticket's lineage, branches, PRs, changed files | ticket_detail | live ClosedLoop, gh pr view |
| Tickets mentioning a keyword | fts_search | live ClosedLoop search |
| Related or duplicate tickets | query_collisions, then search_nodes (paste an unfiled draft verbatim, unfiltered) | live ClosedLoop |
| Whether a ticket was superseded | ticket_detail, then graph_query on SUPERSEDES, REDUCED_INTO, and REPLACES edges | live ClosedLoop |
| Prior or reverted attempts | ticket_detail and blast_radius_tickets for earlier PRs and branches on the surface, fts_search on the symptom | gh pr list --state closed, git log --grep=Revert, git log -S |
| Why something exists, stated relationships | search_memory_facts (quote the returned fact) | git log -S/-L, git blame, gh pr view on the introducing PR |
| Rollups | query_shipped, query_wip, readonly_sql | live ClosedLoop |
A graph zero is a claim about the query, not about the code. Name the reply
field that makes an absence real (for example seed_is_indexed_file: true on
code_tests_for); a found: false with unestablished_because, an
upstream_truncated walk, or a 100-row code_callers reply is not a complete
answer. Mined or inherited file attributions are not the ticket's own diff.
When the graph is stale, unavailable, or cannot answer, fall back explicitly to
rg, git log -S/-L, git blame, and gh, and say which route produced
the evidence.
plan-structure by name ($plan-structure in Codex or
/closedloop-core:plan-structure in Claude Code), then reading
resources/plan_template.md from that skill's own folder,
and read that file immediately before drafting or revising. Use
mermaid-visualizer and include scope-explaining Mermaid flowcharts in every
plan. Run one independent plan review, verify and resolve its findings
without a second round, then upload/link/approve or wait as gated.GO: all gates pass; execute.GO_WITH_UI_PLAN_APPROVAL: planning may proceed, but plan approval, branch
creation, code changes, PR work, and merge work wait for explicit human
approval of the uploaded UI plan.SPLIT_REPAIR_REQUIRED: do not execute or split again; return to the
parent coordinator for single-ticket re-analysis or private human review.PRODUCT_BLOCKED: route only a concise first-person Product-decision comment
through cl-policy after Product Answer Discovery proves no existing
authoritative answer and the Product contact is available; otherwise surface
exact missing decisions privately to the current user or the engineering
attention route.ENGINEERING_BLOCKED, ALREADY_DONE_OR_DUPLICATE, or
HUMAN_REVIEW_REQUIRED: keep engineering/operational detail private and
surface the required action to the user or parent.Terminal or handoff statuses are defined in
references/result-formats.md: MERGED,
PR_MONITORING_HANDOFF, BLOCKED_BEFORE_START, BLOCKED_AFTER_START,
WAITING_UI_PLAN_APPROVAL, WAITING_MANUAL_QA, WAITING_CI, WAITING_REVIEW,
WAITING_HUMAN_MERGE, CI_FAILED_NEEDS_HUMAN, REVIEW_BLOCKED, and
MANUAL_INTERVENTION_REQUIRED.
agents/openai.yaml (opens in a new tab)references/feature-manual-qa.md (opens in a new tab)references/implementation-review-pr.md (opens in a new tab)references/monitoring-merge-completion.md (opens in a new tab)references/plan-review-prompt.md (opens in a new tab)references/planning-and-gates.md (opens in a new tab)references/result-formats.md (opens in a new tab)references/support-lanes-and-sweeps.md (opens in a new tab)references/writing.md (opens in a new tab)scripts/check-plan.mjs (opens in a new tab)scripts/check-plan.test.mjs (opens in a new tab)scripts/decision-log.sh (opens in a new tab)scripts/decision-log.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
17 skills in this plugin
/cl-analyzeAnalyze one ClosedLoop feature ticket from a URL or FEA slug before execution. Use when asked to assess ticket complexity, feasibility, readiness, applicable requirements PRDs and missing PRD links, UI design guidance, human UI plan approval needs, blockers, legacy split lineage, merge-batch compatibility, nonsensical or obsolete scope, product versus engineering routing, or whether a ticket can safely be worked before invoking $cl-execute. Keep engineering and operational concerns private; recommend a company-visible ticket comment only for a genuine Product decision under cl-policy or when the user explicitly requests the exact comment. Keep every issue as its single ticket; do not recommend $cl-split. Do not implement the ticket./cl-find-related-ticketsInspect the relevant code first to map the implementation blast area, then find ClosedLoop issue tickets related to a product area, behavior, requirement, incident, ticket, or pull request and give a brief evidence-based reason for each match. Use when auditing scope, finding potentially conflicting or missing work across projects and assignees, checking whether a freeze covers every relevant ticket, comparing discoveries with an approved ticket set, or looking for direct changes, dependencies, shared contracts, tests, and open-PR collisions. This is a read-only discovery skill and does not update tickets, comments, statuses, code, or pull requests.npx claudepluginhub closedloop-ai/claude-plugins --plugin vibe-genericOther plugins' skills for the same job