/vibe-generic:cl-policyfrom vibe-generic
Shared access and routing policy for ClosedLoop ticket automation skills. Defines tool discovery, MCP/CLI/API fallback, contact resolution, and communication rules used by cl-analyze, cl-split, cl-sweep, and cl-execute.
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.
Provide the shared local access and routing policy for ClosedLoop ticket automation. This skill keeps team-specific names, communication rules, and tool-access fallbacks out of the execution skills, while allowing the skill pack to be shared with either a populated bundled policy or a local machine override.
When ClosedLoop tools are absent from the initial tool list, do not conclude that ClosedLoop or its MCP server is unavailable.
Use dynamic tool discovery or tool_search first when the current host
explicitly supports dynamic calls. Search by capability, such as
ClosedLoop get document, list document comments, document versions,
or document relationships. Codex CLI's TUI does not currently execute
dynamic tool calls: in that surface, use statically exposed MCP tools or the
CLI/API fallback below and never emit a dynamic tool call merely because a
skill says to discover by capability.
Do not hardcode an MCP prefix such as mcp__closedloop. The prefix depends
on the user's configured MCP server name and may legitimately differ.
If dynamic discovery is unavailable or cannot see the configured server, try the user's Codex CLI MCP configuration before declaring an access blocker.
If MCP access is still unavailable and CLOSEDLOOP_API_KEY is present, use
the production ClosedLoop API directly. Load the key silently from the
current environment or the user's shell profile; never print, echo, log,
serialize, or include it in command output, memory, prompts, or reports.
Prefer read-only API requests during analysis. Resolve endpoint and payload
contracts from current repository routes or official current documentation
instead of guessing. A ticket slug can be read through
GET https://api.closedloop.ai/documents/<slug> in the current platform.
When a fallback request writes (POST, PUT, PATCH, DELETE), print
the clop_ operation id from the response's operationReceipt in the same
shell call, so the session that made the write is tied to it (PRD-800).
Keep the response in a variable, print it or your usual jq filter of it
on stdout as before, then print the id on stderr; stdout stays exactly what
it was. The receipt is optional: when the response has none, the second
command prints nothing and still succeeds. Keep the redirections in this
order.
response="$(curl -sS -X POST "https://api.closedloop.ai/<route>" \
-H "Authorization: Bearer $CLOSEDLOOP_API_KEY" \
-H "Content-Type: application/json" \
--data @<payload-file>)"
printf '%s\n' "$response"
printf '%s\n' "$response" \
| jq -r '(.data? // .) | objects | .operationReceipt | objects | .operationId | strings' \
>&2 2>/dev/null
Treat an inactive localhost MCP URL, a missing initial registration, or a stale read-only intelligence index as an access-path issue, not proof of a ClosedLoop outage. Continue through the next valid fallback and state which source established live state.
Report a genuine access blocker only after applicable discovery, Codex CLI MCP, and authenticated API paths have been exhausted or are unavailable.
For ticket intelligence, discover the read-only closedloop-graph MCP by
capability rather than by configured server name, using only discovery
mechanisms supported by the current host.
Treat it as the preferred indexed discovery surface for bounded PRD/plan/
split lineage, dependencies, semantic matches, duplicates, related tickets,
and PR overlap, and for codebase intelligence including symbols, files,
ownership boundaries, dependencies, call/data paths, co-change history,
tests, and blast radius. Its results are not live authority: re-fetch
material documents, relationships, comments, and status from ClosedLoop and
verify code/PR claims against current repository and GitHub state.
Dynamic tool calls are not available in TUI yet and the call
cannot complete.codex mcp/configured CLI access or the authenticated API
fallback instead.codex_app or send_message_to_thread
from the TUI. Desktop may use its statically available thread tools.Before making, recommending, or recording blocker communications:
references/local-policy.md when it exists.references/local-policy.md is absent, read references/local-policy.example.md to understand the required shape, then read $HOME/.closedloop-ai/local-policy.md as the populated local policy.references/local-policy.md and $HOME/.closedloop-ai/local-policy.md exist, read the bundled policy first and the home-directory policy second as a user-local override.references/local-policy.md in the shared skill pack or $HOME/.closedloop-ai/local-policy.md.references/local-policy.example.md as a live routing policy unless the user explicitly says the example values are the real policy for this environment.HIGH atomic ticket, instructions such as “proceed with
ISS-1234, do not split it,” “work this ticket as one PR,” or an explicit
correction that approval was already granted constitute the exact-ticket
high-complexity atomic execution override. The user need not repeat the words
HIGH, risk, override, or a prescribed sentence. A generic project sweep,
assignment, priority, or “keep making progress” remains insufficient.EXTREME; name that
concrete delta instead of asking for the old approval again.Treat every ClosedLoop ticket comment as a company-visible product record. Automatic engineering or operational comments are forbidden. Keep complexity, risk, split/execution overrides, credentials/access, local environment, account identity, worker/session/generation/lease/worktree, callback/review/CI mechanics, internal scheduling, automation failures, workflow-memory state, and manual- intervention details in private sweep artifacts and the invoking Codex thread.
Post a comment automatically only for a genuine unresolved Product decision that requires the policy Product contact. Limit it to product behavior, user impact, and the minimum evidence needed to answer the question; exclude all internal automation and access details. Any engineering, operational, recordkeeping, split, or status comment requires an explicit user request for that exact comment on that exact ticket. A sweep invocation, assignment, blocker route, deleted historical comment, or worker recommendation is not authorization. Never recreate a comment the user removed.
Product contact: the ClosedLoop user tag for product blockers.Engineering attention contact: the authenticated or invoking user who should review engineering blockers, high complexity, extreme risk, duplicates, malformed automation results, communication failures, or manual-intervention issues.Sweep owner: the authenticated ClosedLoop user whose assigned tickets are being swept.ClosedLoop automation skills should load this policy at the start of routing-sensitive work and use the policy terms in outputs and memory records. Do not hardcode the engineering attention contact's personal name in skill instructions, structured schemas, or memory field names.
For a shareable zip, include references/local-policy.example.md. Include references/local-policy.md only when the recipient should inherit that populated team policy.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
closedloop, ticket-automation, tool-discovery, access-policy, routing
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-executeDraft and upload ClosedLoop implementation plans with Mermaid scope flowcharts, then execute one ClosedLoop feature ticket or a parent-approved coherent multi-ticket feature end to end on Codex Desktop or as a leased Codex CLI ticket worker after all readiness, legacy split-lineage, complexity, risk, requirements, batch, and UI guidance gates. Plan, implement, run the required two-pass coordinated review sequence, validate, open and remediate the feature's single PR, maintain the author-owned feature manual-QA plan and evidence, hand passive monitoring to $cl-sweep or a detached standalone monitor, use protected-queue or human UI merge policy, and reconcile every included ticket. In CLI sweeps, the ticket worker may directly manage bounded read-only support lanes and returns compact CL_SWEEP_EVENT v1/CL_SWEEP_RESULT v1 routing summaries./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./cl-splitSplit one top-level high-complexity ClosedLoop feature ticket into smaller executable child tickets when safe. Use when $cl-analyze or $cl-sweep determines a top-level ticket is HIGH complexity but potentially splittable, or when asked to decompose a FEA-* ticket before execution. Keep engineering/split automation details private; recommend a company-visible comment only for a genuine Product decision under cl-policy or when the user explicitly requests the exact comment. Enforce one split level only; do not split existing split children. Do not implement code./cl-sweepReport or coordinate ClosedLoop work assigned to the user in one project. Use read-only report mode for a complete project-wide inventory grouped into product-feature context with dependency and reassignment guidance. For execution, recover active work first, then run each selected complete page or capability as one owner, branch, plan, PR, and manual-QA unit while preserving every ticket's independent readiness and acceptance gates. Supports Codex Desktop and a fail-closed CLI root with durable state, private leases, callbacks, and passive PR monitoring./cl-work-reportProduce a private, read-only HTML report of all ClosedLoop work assigned to the authenticated user in one project, grouped into evidence-backed page or capability feature units with verified dependencies and minimal reassignment recommendations. Use for project work inventories, feature-unit reports, blocker ownership, or reassignment advice; do not use it to execute, reassign, or update tickets.npx claudepluginhub closedloop-ai/claude-plugins --plugin vibe-generic2 plugins in one repository ship this exact skill · first indexed Nov 15, 2026
Other plugins' skills for the same job