Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

brain

БесплатноБез исполняемых скриптовНе проверен

Consult, capture, and acquire knowledge in koan's OKF-conformant docs/ and specs/ bundles. Use for /brain ask <question> (alias: /brain search <question>…

Anantys-ossот Anantys-oss★ 51 звезда на GitHub

Об этом скилле

User Input

$ARGUMENTS

brain is self-sufficient: it owns both acquisition (raw/ → docs/reference/*.md) and index-first navigation for docs/ and specs/ directly — it does not depend on or escalate to the llm-wiki plugin's /wiki:* commands. That plugin's differentiating capabilities beyond plain index-first reading (BM25 fallback search, graph-assisted lookup, wikilink backlink search, synthesis-page file-back) are either blind here (the plugin's bundled scripts don't follow the wiki/ symlinks) or architecturally inapplicable (koan has no graph layer, uses plain markdown links not wikilinks, and has no synthesis page type) — see wiki/SCHEMA.md for the full rationale.

Before any subcommand except help, read wiki/SCHEMA.md (wiki-directory-level conventions), then whichever of docs/SCHEMA.md / specs/SCHEMA.md is relevant to the bundle in question. Those files are the binding conventions — docs/SPEC.md is the normative, bundle-agnostic OKF v0.1 spec they build on.

Parse $ARGUMENTS for the subcommand (first word) and its remaining argument. If $ARGUMENTS is empty, go to "Bare invocation" below.

help

Print this cheat sheet verbatim, no tool calls:

**🧠 `/brain` — koan's docs/ and specs/ knowledge bundles.** Both are OKF v0.1
bundles that compound across sessions: consult them before planning, extend them
after implementing.

| You want to…                                          | Do this                          |
| ------------------------------------------------------ | --------------------------------- |
| Consult before planning/implementing/refactoring        | `/brain ask <question>` (alias: `/brain search <question>`) |
| Close the loop after implementing a feature             | `/brain sync`                     |
| Save an article, file, or idea as a durable reference    | `/brain ingest <path|url|"idea">` |
| Health-check OKF conformance                             | `/brain lint [--strict]`          |
| Repair the folder scaffold                               | `/brain init`                     |
| Show this help                                           | `/brain help`                     |

Notes: `/brain sync` is a soft pre-PR reminder, not a hard gate. `/brain ingest` always
needs an explicit argument (no bulk backlog). `/brain search` is a plain alias of
`/brain ask`. See `docs/SCHEMA.md` / `specs/SCHEMA.md` for the frontmatter/tagging
conventions, `docs/SPEC.md` for the underlying format spec.

Bare invocation (no arguments)

Print the same cheat sheet as help, then you MUST call AskUserQuestion — "Which /brain action do you want?", header Action, one option per subcommand: ask, sync, ingest, lint, init. Never guess the intended action from surrounding conversation context.

ask <question> / search <question>

search is a plain alias — identical behavior.

  1. Read wiki/index.md first, always — it's the flattest, fastest, already-summarized catalog spanning both bundles. Never grep docs//specs/ blindly before reading it.
  2. From the one-line summaries there, pick the candidate page(s) that look relevant.
  3. Open only those pages, plus their backlinks if useful context (grep -rl "(path/to/page.md)" docs/ specs/ — plain relative/root-absolute markdown links, per docs/SPEC.md §4, never wikilinks).
  4. Synthesize an answer, citing pages by path.
  5. If coverage is missing: say so plainly — never confabulate an answer. Suggest /brain ingest (if it's external material worth capturing) or just flag the gap. Don't fall back to a plugin search command for this — there isn't one that works here (see the note above); a genuinely open-ended question that the index can't resolve is itself the signal that coverage is missing.
  6. Descend into docs/index.md / specs/index.md → per-folder index.md instead of wiki/index.md only for an OKF-conformance/browsing task (e.g. "what topics exist under specs/components?") or if wiki/index.md is visibly missing an entry for a page that clearly exists (a stale-index signal — rare, since /brain sync and the CI backstop keep it current).
  7. In Plan Mode, state in the plan's Context section what docs//specs/ said (or that nothing relevant was found) before the recommended approach — this formalizes the existing CLAUDE.md requirement.

sync

The interactive equivalent of the CI auto-fix pass (wiki_sync_ci.py) — run this after implementing a feature, before finishing the change:

  1. Identify the page(s) under docs/ or specs/ touched or created by the current change.
  2. Ensure frontmatter is complete per docs/SCHEMA.md / specs/SCHEMA.md: type, title, tags, created (unchanged), updated (bump to today from real git-log dates, don't guess), and add description if missing (one sentence — organic backfill only, never touch other untouched pages).
  3. Run `python3 s
Полный SKILL.md на GitHub

Установить brain в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

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

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

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

Вложенные файлы

evals/evals.jsonreferences/acquisition.md

FAQ

Что делает скилл brain?

Consult, capture, and acquire knowledge in koan's OKF-conformant docs/ and specs/ bundles. Use for /brain ask <question> (alias: /brain search <question> — consult docs/ and specs/ before planning/research/refactor, index-first, with page citations), /brain sync (close the loop after implementing a feature — refresh frontmatter/description and regenerate indexes), /brain ingest <path|url|"idea sentence"> (capture external material as a durable, cited reference page), /brain lint (OKF conformance health check), /brain init (verify or repair the scaffold), /brain help (print the cheat sheet), and bare /brain with no arguments (prints the cheat sheet, then asks which action to take). Trigger on "what does the wiki say about X", "check the docs before we plan this", "update the wiki", "sync the docs", "ingest this article/file/idea", "save this as a reference doc", "lint the wiki", "check OKF conformance", or when finishing a feature and CLAUDE.md's documentation step is due.

Как установить скилл brain?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл brain запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить brain с