layered-summary
БесплатноЗапускает вложенные скриптыНе проверенCreate hierarchical, bottom-up "layered summaries" by generating `AGENTS.md` files per directory in a subtree (e.g., `reth/crates/engine`). Deep directories…
Об этом скилле
Layered Summary (AGENTS.md)
Generate a layered set of AGENTS.md files so that:
- Deeper directories are more detailed (files + key types/functions + local relationships).
- Higher directories are short rollups of their direct children (architecture map).
This is designed to pair well with Cursor's nested AGENTS.md support: when you work in a folder, you automatically get its local summary plus its ancestors' higher-level context.
Hard constraints
- Create/update only
AGENTS.mdfiles. Do not change other files. - Operate only inside the target root subtree.
- No snippets/excerpts and no long quotes. Summaries must be short and checkable (paths/names).
- Use ASCII only; avoid non-ASCII characters.
- Delegate codebase exploration to Explore subagents (see "Subagent-first workflow"). The main agent remains the only writer of
AGENTS.md. - Don't stop mid-run: continue until the Completion criteria is satisfied. If you are forced to pause, leave a resumable checkpoint (see Resume after interruption) and ensure parent ledgers are accurate.
- Skip generated/vendored/third-party blobs. If present, mention them briefly (and why they exist) but don't document them exhaustively.
- Avoid speculation. Use
[unclear]/[TBD]markers when needed.
Scripts (recommended)
Use these helper scripts to make planning/scaffolding/verification deterministic and resumable.
All scripts support Repomix-style scoping flags:
--include "<glob1,glob2,...>"(positive filter)-i/--ignore "<glob1,glob2,...>"(negative filter; ignore wins on conflicts)- Globs are comma-separated and support
**(e.g.,docs/**/*.mdmatchesdocs/README.mdand deeper files). - If you don't scope, the scripts will treat most directories with files as meaningful; use
--include/--ignoreto focus and avoid huge generated/vendor trees. - The scripts also avoid descending into huge dependency directories by default and omit them from ledgers:
node_modules/,bower_components/,jspm_packages/. If there's some valid reason to include them, pass an explicit--includethat targets them.
scripts/agents_plan.py- Build a bottom-up "waves" schedule for a subtree (derived only; no writes).
- Supports
--mode fulland--mode update(git-based incremental planning).
scripts/agents_scaffold.py- Create-only scaffolder: creates missing
DIR/AGENTS.mdstubs for meaningful directories. - Does not touch existing
AGENTS.mdfiles. Default is dry-run; pass--writeto create.
- Create-only scaffolder: creates missing
scripts/agents_verify.py- Verify invariants: every meaningful dir has
AGENTS.md, one-hop ledger matches filesystem, ASCII-only. - With
--strict: also fail on remaining[TBD]or unchecked- [ ].
- Verify invariants: every meaningful dir has
scripts/normalize_agents_ascii.py- Optional ASCII normalizer for
AGENTS.md(default dry-run;--writeto edit).
- Optional ASCII normalizer for
scripts/export_agents_md.py- Optional export-only utility: copy
AGENTS.mdfiles from a subtree into a standalone folder.
- Optional export-only utility: copy
Subagent-first workflow (required)
Use Explore subagents for every meaningful directory you process. Explore is read-only; it should only return analysis. The main agent must create/update AGENTS.md.
Concurrency / conflict rules
- Scheduling is bottom-up: start from the deepest meaningful leaf directories and work upward (postorder).
- Never run Explore on a directory until all meaningful descendants already have complete
AGENTS.md. Always complete children first, then do the parent. - If running multiple Explore tasks in parallel, only parallelize siblings (directories that do not contain each other).
- Prefer deterministic ordering (alphabetical) when choosing which sibling directories to process next, to keep results reproducible.
Explore subagent contract (exploring mode: very thorough)
For each directory DIR/ inside the target root:
- Run an Explore subagent with thoroughness level very thorough scoped to
DIR/. - The Explore subagent must:
- Discover and validate the directory's one-hop structure (immediate subdirectories + files).
- Identify which immediate subdirectories are meaningful vs skippable (and why).
- Analyze local files in
DIR/(if any). "Trust children" applies only to nested folders, not the current directory's own files. - If immediate child
AGENTS.mdfiles exist, read them and incorporate their responsibilities into PURPOSE/RELATIONSHIPS. Treat childAGENTS.mdas the source of truth for nested subfolders. - Do not recursively explore child subdirectories' contents where
child/AGENTS.mdalready exists. Prefer to synthesize fromchild/AGENTS.mdinstead.- Exception: if something is missing/contradictory or the filesystem ledger does not match, it is OK to spot-check the child directory to resolve the discrepancy; keep spot-checks minimal and report to orchestrator why.
- Produce a structured report that the main agent can convert into the st
Установить layered-summary в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл layered-summary?
Create hierarchical, bottom-up "layered summaries" by generating `AGENTS.md` files per directory in a subtree (e.g., `reth/crates/engine`). Deep directories summarize files and key APIs; parent directories roll up children. Also use to incrementally update an existing `AGENTS.md` subtree after content changes. No snippets; keep summaries navigational and checkable.
Как установить скилл layered-summary?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл layered-summary запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic