consult
Cross-repo consultation — spawn an advisory agent grounded in another registered repo (e.g. composite, forge, tales) and converse with it. Use when a design…
от leogodin217★ 65 звёзд на GitHub
Установить consult в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Consult
Cross-repo consultation for a fleet of related repos. One generic skill replaces per-repo hand-authored oracle agents (and their hardcoded absolute paths): you name a target repo, this skill resolves its checkout from a machine registry, spawns an advisory agent grounded in that repo, relays its answer, and keeps the agent alive for follow-up questions via SendMessage.
The consultant is read-only and advisory. It answers; it never edits either repo. The calling session retains ownership of context, verification, and deliverables.
Configuration — two layers
| Layer | Lives in | Owned by | Declares |
|---|---|---|---|
| Machine registry | ~/.config/consult.json (machine-local) |
the machine | repo name → absolute checkout path on this disk |
| Repo binding | <repo>/.claude/consult.json (committed, optional) |
each repo | the repo's logical name + its optional startup role skill |
Machine registry (~/.config/consult.json):
{
"repos": {
"composite": {
"path": "/home/leo/projects/fabulexa_composite",
"does": "The simulation engine (aka 'the engine'). Runs scenario YAML into a deterministic base-layer emit. Pure producer."
},
"forge": {
"path": "/home/leo/projects/fabulexa_forge",
"does": "Downstream exporter + corrupter (aka 'export'). Reads a base-layer emit, writes datasets or realistically-broken bases."
}
},
"interfaces": [
"base-layer emit: run.duckdb + base.json @ base_format_version 4 — produced by composite, consumed by forge and tales."
]
}
- A repo entry is either the object form above (
pathrequired;doesis an optional one-to-two-sentence helper: what the repo is, common aliases, its side of the shared contracts) or, back-compat, a bare path string. - Top-level
interfaces(optional) lists the fleet's shared contracts — who produces, who consumes, where the spec lives. Fleet-level facts only; per-repo detail belongs indoes. - The helper text serves two things: resolving loose requests to a repo, and giving the consultant a fleet map. Keep it a sketch — the consultant bootstraps its real role from the target repo itself, so drift here is cheap but not free.
Repo binding (<repo>/.claude/consult.json) — optional, committed, portable (no
absolute paths):
{ "repo": "composite", "startup": "understand", "startup_args": "architecture" }
startupnames a skill under the target repo's.claude/skills/that the consultant bootstraps from (reads its SKILL.md and follows its Load Context, resolving paths against the target root). Optional: a repo without a binding, or with nostartup, gets the generic bootstrap (read the target'sCLAUDE.md).startup_args(optional) is the argument string the startup skill would receive if a user invoked it — e.g. whichunderstandcontext bundle to load. It fills{startup_args}in the bootstrap template; absent means empty.- Committed files never carry absolute paths. A repo rename or move is a one-line edit to the machine registry.
Name resolution. An exact repos: key wins. Otherwise match the request against
the does helpers (aliases, roles — "export" → forge, "the engine" → composite).
A single confident match resolves — say which repo you resolved to and why. No match,
or two plausible matches → UNKNOWN-REPO / ask, don't guess.
Fail-closed gates:
- NO-REGISTRY —
~/.config/consult.jsonmissing → error, show the sample above. - UNKNOWN-REPO — request resolves to no registered repo → error, list registered
names with their
doeslines. - BAD-PATH — registered path does not exist on disk → error, do not guess.
- SELF-CONSULT — target resolves to the current repo → error; answer locally.
Invocation
/consult <repo> <question>
Example: /consult composite Is prop__ column typing a contract guarantee or an implementation detail?
Workflow (for the assistant running this skill)
- Read
~/.config/consult.json; resolve the name and apply the gates above. - Read
<target_root>/.claude/consult.jsonif present →startupskill name and optionalstartup_args. Missing file or missingstartupis not an error — use the generic bootstrap. - Assemble the consultant prompt from the template below.
{fleet}= the registry'sdoesline per repo plus theinterfaceslist, rendered as bullets; if the registry has neither, drop the fleet section entirely. - Spawn via the Agent tool:
subagent_type: general-purpose, descriptionconsult-<repo>, synchronous (run_in_background: false) unless the question is a long investigation and the user has other work queued. - Relay the answer to the user (the agent's final message is not shown to them).
- Follow-ups go to the same agent via SendMessage — its context (loaded role, files read) is intact. Spawn a fresh consultant only when the topic changes enough that stale context would misl
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл consult?
Cross-repo consultation — spawn an advisory agent grounded in another registered repo (e.g. composite, forge, tales) and converse with it. Use when a design or contract question turns on another repo's intent, semantics, roadmap, or code — "ask composite's architect", "what does the engine guarantee here", "what does tales expect from the emit" — anything the current repo's own docs and vendored contracts cannot answer.
Как установить скилл consult?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл consult запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…