/closedloop-core:closedloop-intelfrom closedloop-core
Provides ticket and codebase intelligence over a shared remote instance. Answers questions about ticket overlap, blast radius, ticket lookup, lineage, and aggregate rollups using the closedloop-graph MCP server.
Ships in closedloop-core. 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.
None: SKILL.md is the whole skill.
This is the thin, tester-facing form of the closedloop-intel agent. It ships to your machine as a static file, but it holds no copy of the agent's instructions; the live routing protocol is served fresh, over MCP, on every call, so your ROUTING never goes stale no matter how long ago you installed it. This file itself is versioned, and the protocol you fetch first states the current copy's sha256 and what to do if yours is not it.
If the server is not connected, stop. If no closedloop-graph tool is
available in this session, or get_routing_protocol returns an error or cannot
be called, do not answer the question. Tell the user in one sentence that the
closedloop-graph server is not connected, that claude mcp list or
codex mcp list will show it failed, and that with the right URL a failed
connection means the token in the client does not match (Claude Code: re-run
the operator's connect one-liner; Codex: export CLGRAPH_MCP_TOKEN in the shell
that launches it). Never answer such a question from general knowledge without
saying so.
Your first action, every session, before answering anything: call the
closedloop-graph MCP server's get_routing_protocol tool, with no
arguments, and follow exactly what it returns. That response is the canonical
mission, question-routing table and answer shape, read live from the host
machine's disk at call time. Do not improvise a routing strategy from this file
alone; this file is an orientation note, not the protocol.
It answers with a SLICE, and the rest is one call away. The protocol is
larger than a harness will deliver in a single tool result, so the default
section="core" carries what you need to ROUTE. READ WHAT COMES BACK rather
than this paragraph, because section 3 arrives in one of two arrangements and
they call for different next moves. If it reaches you as an INDEX (a
| Row | Question shape | table), the route and its Never column are not in
that reply at all: match your question to a row, then call
get_routing_protocol again with row="<key>" for that row's route and its
prohibitions, before you touch any tool. If it reaches you as the full
three-column table (| Question shape | Route | Never |), the routes and their
prohibitions are already in front of you and there is nothing to fetch per row;
a host whose get_routing_protocol schema carries no row parameter is
serving that older arrangement, so do not spend a call looking for one. Ask for
the rest by name when a question turns on it: section="rules" for the
evidence discipline, the file-evidence ladder and the known data gaps, unless
what you were handed already contains a section headed 4, Rules;
section="routing_table" for the whole three-column table at once;
section="inventory" for the ledger schema and the two graphs;
section="snippets" for the named SQL, verbatim; section="personas" for the
persona guidance. The core names each of them at
the point where it needs one, so follow those pointers rather than guessing. Do
not ask for section="all" in order to read the routing table: that payload is
what your harness will truncate, and a truncated result does NOT announce
itself.
If get_routing_protocol is unavailable (the closedloop-graph server is not
connected, or the call errors), follow the stop rule at the top of this file.
The orientation below is background for when the server IS connected, never a
substitute for it.
closedloop-graph is the single MCP server for ClosedLoop ticket and code
intelligence. It has three tool families, and the routing question is always
which family a question belongs to:
tickets group, for scope overlap, shared
components, and why-do-these-relate questions. Seconds, not milliseconds.code_projects, code_symbols, code_callers,
code_tests_for, code_importers, code_snippet, code_grep,
code_architecture) answer about the source itself: definitions, callsites,
quoted source, which test files and which other files import a given source
file, and package or entry-point structure. They take a short repo name like symphony-alpha, never a
project identifier. Call code_projects first if you do not know what is
indexed, then keep the names it gives you: it is the expensive one here
(about 670 ms warm, several seconds on the first call after a host restart),
while code_symbols and code_architecture cost tens of milliseconds and
code_grep is the outlier at a few seconds on the largest repository.The names invert between the last two families, so settle which family before you pick a verb: the ticket graph searches entities a ticket mentioned, the code graph searches symbols that exist in the tree.
Every tool on the server is read-only. There are no write operations to reach for and none to avoid.
Cite ticket slugs and file paths in every answer. If something is not in the indexes, say so rather than guessing.
You get both halves of a blast radius, over the one registration: the ticket half (ledger queries, full-text search, ticket detail, aggregate rollups, ticket-graph semantic search) and the code half (symbols, callers, snippets, grep, architecture), on the same URL under the same token. There is no second server to register and no local checkout to index first. Answer both halves and say which half each claim came from.
Two things genuinely stay on the host:
code_* tools rather than composing a traversal.One caveat that is a property of the index rather than of the connection: the
code graph tracks each repository's default branch, so an answer from it is an
answer about main, never about anyone's uncommitted or branch-local work.
code_projects reports the head_sha, branch and status it is answering
at; quote them when freshness matters.
One boundary that bites hardest on machines that ALSO hold a checkout of
closedloop-intel: that checkout is a different deployment, not a window into
this one. Never run its just commands, open its ledger.db, or read its
mirrors to answer or diagnose questions here; evidence comes over this
connection, and host remedies belong to the host operator. If you deliberately
compare against local source anyway, say so and state both commits, the
mirror's head_sha and your checkout's HEAD.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub closedloop-ai/claude-plugins --plugin closedloop-core12 skills in this plugin
/decision-tableUse when the user wants a code-grounded decision table for current behavior, wants to compare current behavior against a plan or work item, or needs a control-flow artifact for recovery, retry, finalization, validation, state-machine, or review-heavy edge cases./erd-diagramGenerate or update an interactive ERD (entity relationship diagram) as a single offline HTML file for a Postgres repository, built only from the repo's schema code (a Prisma schema, a SQL schema dump, or a folder of SQL migrations; other ORMs through a model the agent writes from the code). Two styles, canvas-sidebar (one pannable canvas of every table with a table list) and schema-explorer (overview, focused table view, per-domain diagrams). Use when the user asks for an ERD, a database or schema diagram, a map of tables and relationships, or to refresh an existing ERD file./gh-monitor-prStart a detached GitHub pull-request monitor that wakes the exact launching Codex Desktop or CLI root through the managed Codex App Server when review, CI, conflict, merge-queue, closure, readiness, or merge events need attention. Use when the user asks Codex to watch, monitor, babysit, or wait on a PR or merge queue without keeping the current turn alive./guided-manual-qaDerive and run an interactive, evidence-recorded manual QA session for a code change, ticket, branch, or pull request. Use when a human should validate live behavior checkpoint by checkpoint after repository-aware setup; do not use as a substitute for automated tests or a read-only code review./measurement-disciplineUse when optimizing, benchmarking, profiling, or running a performance experiment; when evaluating whether a change actually helped; or when recording or checking past optimization attempts. Prioritizes the largest credible gains against experiment cost, then enforces one-variable experiments, repeated-run noise floors, a required mechanism behind any claimed win, and recorded refutations so failed attempts are not re-litigated./mermaid-visualizerThis skill should be used when a user asks to explain a complex idea, concept, or system architecture, or when a diagram would be helpful to visualize control flows, system architectures, data flows, state machines, sequence diagrams, or entity relationships.Other plugins' skills for the same job