Command Palette

Search for a command to run...

Назад к скиллам
скилл № 22443

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от 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 (path required; does is 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 in does.
  • 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" }
  • startup names 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 no startup, gets the generic bootstrap (read the target's CLAUDE.md).
  • startup_args (optional) is the argument string the startup skill would receive if a user invoked it — e.g. which understand context 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:

  1. NO-REGISTRY — ~/.config/consult.json missing → error, show the sample above.
  2. UNKNOWN-REPO — request resolves to no registered repo → error, list registered names with their does lines.
  3. BAD-PATH — registered path does not exist on disk → error, do not guess.
  4. 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)

  1. Read ~/.config/consult.json; resolve the name and apply the gates above.
  2. Read <target_root>/.claude/consult.json if present → startup skill name and optional startup_args. Missing file or missing startup is not an error — use the generic bootstrap.
  3. Assemble the consultant prompt from the template below. {fleet} = the registry's does line per repo plus the interfaces list, rendered as bullets; if the registry has neither, drop the fleet section entirely.
  4. Spawn via the Agent tool: subagent_type: general-purpose, description consult-<repo>, synchronous (run_in_background: false) unless the question is a long investigation and the user has other work queued.
  5. Relay the answer to the user (the agent's final message is not shown to them).
  6. 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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить consult с