К основному содержанию
скилл CX Codex

council · zaxbyhub — скилл для Claude Code: совет трёх моделей и установка

Скилл включает режим COUNCIL в opencode-swarm: три агента разбирают вопрос, архитектор собирает источники и сводит ответ.

MIT ★ 539 обновлён 2026-10-29

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add ZaxbyHub/opencode-swarm --skill council -a claude-code
Открыть на GitHub

Что делает council

Скилл подгружает режим COUNCIL плагина opencode-swarm: архитектор берёт файл с диска по ходу работы. Запуск — /swarm council <вопрос>. С флагом --spec-review тот же режим разбирает черновик спецификации.

Сначала идёт короткий проход по web_search: 1-3 запроса, выдача складывается в блок RESEARCH CONTEXT с заголовком, ссылкой, сниппетом и пометкой о свежести. Потом параллельно стартуют три роли — генералист, скептик и эксперт по предметной области, каждой уходит один и тот же контекст. Расхождения возвращаются на один раунд примирения, финальный ответ пишет архитектор. Код, план и спецификации режим не меняет. Непроверенные утверждения помечаются confidence: LOW.

Без настройки режим не стартует: нужны council.general.enabled: true и ключ поиска (council.general.searchApiKey, TAVILY_API_KEY или BRAVE_SEARCH_API_KEY). Конфиг читается сперва из ~/.config/opencode/opencode-swarm.json, затем из .opencode/opencode-swarm.json. Нет флага или ключа — приходит сообщение с требованием включить, и работа останавливается. На чувствительных ко времени вопросах пустая выдача поиска тоже обрывает запуск.

Какие задачи решает

  • прогнать вопрос через трёх агентов до сохранения плана
  • подтянуть свежие источники к обсуждению вместо памяти модели
  • свести расхождения ролей за один раунд примирения
  • посмотреть черновик спецификации отдельным проходом
  • отметить утверждения, не проверенные по текущему исходнику

Примеры запросов агенту

  • /swarm council Стоит ли выносить очередь задач в отдельный воркер?
  • /swarm council --spec-review Посмотри черновик в specs/auth.md перед стартом.
  • /swarm council Какая лицензия подойдёт, если встроить эту библиотеку в закрытый продукт?

Как установить council

1Через Skills CLI (Vercel)

npx skills add ZaxbyHub/opencode-swarm --skill council -a claude-code

2Вручную: положить файлы

~/.claude/skills/council/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/council/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о council

Как установить council в Claude Code?

Выполните npx skills add ZaxbyHub/opencode-swarm --skill council -a claude-code, файл скилла появится в ~/.claude/skills/council/SKILL.md.

Что делает council?

Он даёт режим COUNCIL из opencode-swarm: после короткого поиска в сети три агента (генералист, скептик и эксперт по домену) обсуждают вопрос параллельно, а архитектор пишет итоговый ответ.

Что нужно настроить, чтобы режим запустился?

Флаг council.general.enabled: true и ключ поиска: council.general.searchApiKey, TAVILY_API_KEY или BRAVE_SEARCH_API_KEY. Конфиг берётся из ~/.config/opencode/opencode-swarm.json, при наличии проект переопределяет его файлом .opencode/opencode-swarm.json.

Исходный текст

SKILL.md · MIT
---
name: council
description: >
  Full execution protocol for MODE: COUNCIL -- General Council research,
  parallel member dispatch, disagreement handling, and synthesis.
metadata:
  audience: swarm-plugin
---

# Council Protocol

This protocol is loaded on demand by the architect runtime.
The architect prompt keeps only activation, action, and hard safety constraints;
the full execution details live here.

### MODE: COUNCIL

Activates when: user invokes `/swarm council <question>` (optionally with
`--spec-review`).

Purpose: convene a fixed three-agent multi-model General Council
(generalist / skeptic / domain expert) for an advisory deliberation. The
architect runs a curated web research pass upfront, dispatches the three agents
in parallel with the gathered RESEARCH CONTEXT, routes any disagreements back
for one targeted reconciliation round, and synthesizes the final user-facing
answer directly.

This mode is ADVISORY. It does not block any other workflow and does not modify
code, plans, or specs. The output is for the user (general mode) or for the spec
being drafted (spec_review mode is available via `/swarm council --spec-review`
for manual spec review). General Council advisory input is offered as an early
workflow option in MODE: BRAINSTORM (Phase 1b) and MODE: PLAN before
`save_plan`.

#### Pre-flight (always run first)

1. Read `council.general` from the resolved opencode-swarm config. Resolution
   is global first (`~/.config/opencode/opencode-swarm.json`), then project
   override (`.opencode/opencode-swarm.json`). A global config is valid and must
   be used when no project override is present; do not fail after checking only
   the project file. If `council.general.enabled` is not true OR no search API
   key is configured (neither `council.general.searchApiKey` nor the
   corresponding env var `TAVILY_API_KEY` / `BRAVE_SEARCH_API_KEY`),
   surface to the user: "General Council is not enabled. Set
   council.general.enabled: true and configure a search API key in
   global ~/.config/opencode/opencode-swarm.json or project
   .opencode/opencode-swarm.json." Then STOP.

#### Research Phase (always run before dispatching council agents)

2. Formulate 1-3 targeted `web_search` queries that best capture the
   information needed to answer the question. Prefer specific, keyword-focused
   queries over broad ones.

   Hard grounding rules:
   - Do not append a model training-cutoff year to searches.
   - Use `web_search` with its default `freshness: "auto"` behavior for
     current queries unless the user explicitly asked for a historical window.
   - Preserve each `web_search` result's normalized `query`, `temporalIntent`,
     `freshness`, and `removedStaleYears` metadata in RESEARCH CONTEXT audit
     notes.
   - For current, latest, today, now, state-of-the-art, pricing, release-status,
     legal/regulatory, financial, security, or otherwise time-sensitive
     questions, the Research Phase must produce usable current sources before
     council dispatch.
   - If `web_search` returns no results or an error for a time-sensitive
     question, stop and surface the failed search result to the user instead of
     dispatching ungrounded members.
   - For stable/non-current questions, if `web_search` returns no results or an
     error, note this in the dispatch message and proceed without a context
     block. In that degraded mode, members may use stable background knowledge
     only and must not make current-fact claims.

   Compile all successful results into a RESEARCH CONTEXT block in this format:

```text
RESEARCH CONTEXT
================
[1] <title> - <url>
    <snippet>
    query: <normalized query>; temporalIntent: <current|historical|unspecified>; freshness: <day|week|month|year|none>; removedStaleYears: <comma-separated years or none>

[2] <title> - <url>
    <snippet>
...
```

#### Read-before-cite discipline

When citing source code, API behavior, CLI flags, file paths, or line ranges, the synthesizing agent MUST read the actual file or tool output first. Search snippets, file globs, conversation history, and prior-round memory are not sufficient evidence. Specific anti-patterns to refuse in synthesized output:

- Quoting a line range (e.g. `src/foo.ts:123-145`) without reading those lines in the current revision.
- Restating an API signature, error message, or option flag from prior context after the source has been edited.
- Citing `bunSpawnSync` / `child_process.spawnSync` behavior from documentation that pre-dates the current version.

The synthesized answer's `sources` array should reference URLs and tool outputs the agent actually retrieved during the current session, not sources inherited from prior rounds. Mark `confidence: LOW` for any claim the agent could not verify against current source this round.

#### Round 1 - Parallel Independent Analysis

3. Dispatch `the active swarm's council_generalist agent`,
   `the active swarm's council_skeptic agent`, and
   `the active swarm's council_domain_expert agent` with `dispatch_lanes_async`
   when available -- one lane per agent. Before the first dispatch, verify from
   the session's actual tool list whether the controller's lane tools are
   present; when they are absent, use the native parallel subagent path from
   the start rather than discovering the gap on first failure. Record the returned `batch_id`, then
   continue only non-dependent architect work: prepare the synthesis outline,
   normalize the RESEARCH CONTEXT citations, and draft disagreement categories.
   Do not call `convene_general_council` or present conclusions from running
   lanes. Dispatch promptly — do not accumulate extensive planning prose before the
   call, or output truncation may swallow the tool call itself. Keep each lane `prompt`
   compact: send shared context ONCE via the `common_prompt` field, or have lanes read
   it from a file by absolute path, instead of inlining the same large blob into every
   lane prompt. Each dispatch message must
   include:
   - The question
   - Round number: 1
   - The CURRENT DATE in ISO `YYYY-MM-DD` form
   - The full RESEARCH CONTEXT block from step 2
   - Instruction: "Cite from the RESEARCH CONTEXT for external evidence. Your
     memberId and role are hardcoded in your system prompt."

Do NOT share other agents' responses at this stage.

4. While council lanes are running, poll with `collect_lane_results` (without
   `wait` or `wait: false`) to check progress and process any settled member
   responses as they complete — extract the JSON, verify `output_ref`, and
   pre-validate structure — while continuing independent architect work
   (synthesis outline, citation normalization, disagreement categories). Only
   use `wait: true` if lanes are still pending and no more independent work
   remains. All three lanes must be settled before proceeding to synthesis.
   If `dispatch_lanes_async` is unavailable, use blocking `dispatch_lanes`
   as the first fallback and record that async advisory lanes were unavailable.
   This changes only when the architect waits, not whether all council lanes
   must settle. Do not substitute Task-tool dispatch unless lane tools are
   unavailable; when they are unavailable, Task is the final fallback and must be
   verified as equivalent by agent type, prompt, scope, and isolation. The
   `round1Responses` array will contain entries with `memberId` of
   `council_generalist`, `council_skeptic`, and `council_domain_expert` and
   `role` of `generalist`, `skeptic`, and `domain_expert` respectively. If
   any lane result has `output_ref`, call `retrieve_lane_output` and parse
   the full artifact rather than the preview. If a lane is degraded,
   incomplete, truncated without a usable ref, missing, stale, cancelled, or
   failed, treat the council round as blocked or incomplete; do not synthesize
   from partial member JSON. These come from the agents' JSON output; no
   manual construction is needed.

#### Synthesis and Deliberation (when council.general.deliberate is true; default true)

5. Call `convene_general_council` with mode set from the command (`general` or
   `spec_review`), `question`, and the collected `round1Responses` only (omit
   `round2Responses`). Inspect the returned `disagreementsCount`.

6. If `disagreementsCount > 0`:
   a. For each disagreement in the tool's response, identify the disputing
      agents (the agents listed in the disagreement's positions, identified by
      memberId: `council_generalist`, `council_skeptic`, or
      `council_domain_expert`).
   b. Re-delegate ONLY to the disputing agents -- one message per agent --
      passing: their Round 1 response, the disagreement topic, the opposing
      position(s), round number 2, and the same RESEARCH CONTEXT block.
   c. Collect the Round 2 responses.
   d. Call `convene_general_council` AGAIN with both `round1Responses` AND
      `round2Responses` populated.

#### Output

7. Present the final answer to the user from the `synthesis` returned by
   `convene_general_council`. Apply these output rules directly:
   - LEAD WITH CONSENSUS: open with the strongest consensus position.
     Confidence-weighted: higher-confidence claims from multiple agents rank
     first, but evidence quality outranks raw confidence. Never elevate a
     single confident voice over a well-evidenced contrary majority.
   - ACKNOWLEDGE DISAGREEMENT HONESTLY: for each persisting disagreement, write
     "experts disagree on X because..." and present the strongest version of
     each side. Do not pretend disagreements are resolved. Do not silently pick
     a winner.
   - CITE THE STRONGEST SOURCES: link key claims with `[title](url)` format from
     the source list in the synthesis. Pick the most reputable source per claim;
     do not cite duplicates.
   - BE CONCISE: a few short paragraphs plus a bulleted summary. Expand only
     when the question genuinely requires it.
   - HARD CONSTRAINTS: You MUST NOT invent claims not present in the council's
     responses. You MUST NOT add new web research. You MUST NOT favor a position
     based on confidence alone.

Preface the answer with one line listing the participating models (reviewer
model as generalist, critic model as skeptic, SME model as domain expert). Do
NOT present raw per-member JSON.

© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →

Сначала — council от других авторов.

council affaan-m Скилл council для Claude Code собирает четыре позиции по неоднозначному решению и показывает разногласия перед вердиктом. Запускается, когда есть несколько правдоподобных вариантов. CX Codex +1 6 400установок council t3dotgg Скилл council для Claude Code и Codex запускает проверку кода тремя разными ИИ-моделями для сбора независимых отзывов. Агент анализирует их рекомендации и помогает внедрить исправления в проект. CX Codex +1 1 500установок council boshu2 Скилл council для Claude Code собирает независимые мнения нескольких контекстов и сводит согласия и разногласия. Запускается для обсуждения вариантов, разбора плана или обобщения нескольких ревью. CX Codex +1 3 100установок council Samarth Gupta Скилл council запускает совет субагентов с разными ролями, изучает файлы репозитория и выносит чёткий вердикт по архитектурным или стратегическим вопросам. CX Codex +1 ★ 276звёзд репо llm-council aiwithremy Скилл llm-council для Claude Code, Codex, Cursor и других агентов: запускает пять субагентов-советников с разными стилями мышления, которые независимо анализируют вопрос, рецензируют ответы друг друга и выдают итоговое заключение. CX Codex +1 1 600установок benchmark-due-diligence daymade Скилл benchmark-due-diligence для Claude Code, Codex, Cursor и других платформ ИИ-кодинга, который разбирает успех конкурента — основателя, компанию, продукт — и отделяет реальные результаты от маркетинга. CX Codex +1 547установок agent-exploration Pedro Nauck Скилл agent-exploration для Claude Code, Codex, Cursor, GitHub Copilot и других платформ — разбивает большой исследовательский запрос на независимые срезы и запускает их параллельно. CX Codex +1 259установок LLM Council shuntacurosu Скилл LLM Council организует обсуждение задачи несколькими нейросетями в три этапа со слепым взаимным рецензированием и итоговым выводом председателя. CX Codex +1 5установок council-method LihFolk Скилл council-method для Claude Code собирает независимые мнения ИИ-агентов по важным решениям в Roblox. Он включается для оценки готовности к релизу или второго мнения. CX Codex +1 ★ 98звёзд репо agent-council Parth Sangani Плагин agent-council для GitHub Copilot собирает оценки пяти LLM-рецензентов и выносит вердикт: SHIP, REVISE или HOLD. Включается перед публикацией текста, который нельзя отозвать. ★ 14звёзд репо

Из того же набора121

Весь набор →
bundle-safety Скилл bundle-safety помогает проверять минификацию бандла, сохранность имён идентификаторов и учёт реэкспортов. Пригодится перед изменениями сборки, которые могут переименовать или удалить код. CX Codex +1 ★ 539звёзд репо swarm-implement Скилл swarm-implement ведёт фичу, багфикс или рефакторинг роем: параллельная разведка, план с границами, независимое ревью дифа и финальный критик. CX Codex +1 ★ 539звёзд репо safe-rename Скилл safe-rename для Claude Code ведёт по безопасному переименованию экспортированных символов и файлов без поломки зависимостей и тестов. CX Codex +1 ★ 539звёзд репо subprocess-safety Скилл subprocess-safety задаёт правила для вызовов дочерних процессов. Подключайте его, когда пишете или проверяете код со spawn, spawnSync или child_process. CX Codex +1 ★ 539звёзд репо safe-extraction Скилл safe-extraction помогает безопасно распиливать крупные монолитные файлы на модули. Защищает от поломок тестов, сбоев моков в _internals и ошибок CI из-за путей в списках исключений. CX Codex +1 ★ 539звёзд репо critic-gate Скилл critic-gate отправляет план на проверку субагенту-критику и останавливает переход к выполнению, пока не получено одобрение. Нужен, чтобы проверить план до начала реализации. CX Codex +1 ★ 539звёзд репо tech-debt-ci-review Скилл tech-debt-ci-review разбирает репозиторий и ищет, почему PR перестаёт быть зелёным: тесты без смысла, флейки, хрупкая сборка и долг, который мешает проверкам. CX Codex +1 ★ 539звёзд репо deep-research Скилл deep-research организует многоэтапное исследование через внешние поисковики, параллельный синтез данных и фактчекинг со ссылками на первоисточники. CX Codex +1 ★ 539звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой