Command Palette

Search for a command to run...

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

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…

vicnaumот vicnaum★ 53 звезды на GitHub4 установки в других каталогах

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

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.md files. 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/**/*.md matches docs/README.md and deeper files).
    • If you don't scope, the scripts will treat most directories with files as meaningful; use --include/--ignore to 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 --include that targets them.
  • scripts/agents_plan.py

    • Build a bottom-up "waves" schedule for a subtree (derived only; no writes).
    • Supports --mode full and --mode update (git-based incremental planning).
  • scripts/agents_scaffold.py

    • Create-only scaffolder: creates missing DIR/AGENTS.md stubs for meaningful directories.
    • Does not touch existing AGENTS.md files. Default is dry-run; pass --write to create.
  • 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 - [ ].
  • scripts/normalize_agents_ascii.py

    • Optional ASCII normalizer for AGENTS.md (default dry-run; --write to edit).
  • scripts/export_agents_md.py

    • Optional export-only utility: copy AGENTS.md files from a subtree into a standalone folder.

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.md files exist, read them and incorporate their responsibilities into PURPOSE/RELATIONSHIPS. Treat child AGENTS.md as the source of truth for nested subfolders.
    • Do not recursively explore child subdirectories' contents where child/AGENTS.md already exists. Prefer to synthesize from child/AGENTS.md instead.
      • 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
Полный SKILL.md на GitHub

Установить layered-summary в Claude Code и Claude Desktop

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

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

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

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

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

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

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

scripts/agents_lib.pyscripts/agents_plan.pyscripts/agents_scaffold.pyscripts/agents_verify.pyscripts/export_agents_md.pyscripts/normalize_agents_ascii.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить layered-summary с