vicnaum/vics-agent-skills/layered-summary
Claude Code and agent skill by vicnaum/vics-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install vicnaum/vics-agent-skills/layered-summarySKILL.md
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. 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;--writeto edit). scripts/export_agents_md.py- Optional export-only utility: copy
AGENTS.mdfiles 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.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 standard
AGENTS.mdtemplate. - Provide a short "PARENT ROLLUP" the main agent can copy into the parent's subdirectory checkbox entry.
- Use ASCII only, avoid big snippets/excerpts, and be explicit about uncertainty.
Use this exact output structure from the Explore subagent (so the main agent can paste/transform it reliably):
Target root
- Use the user-provided root directory.
- If none is provided, default to
reth/crates/engine.
Directory eligibility (meaningful vs skippable)
This skill and the helper scripts do not try to detect “code” vs “non-code” by language/framework.
Instead, scope is controlled by `--include` / `--ignore`, and a directory is treated as meaningful (must have an AGENTS.md) when:
- It is in-scope (not ignored; and if
--includeis provided, it is in the include-closure), and - It either contains at least one in-scope non-`AGENTS.md` file, or contains at least one meaningful in-scope child directory (so it can roll up children).
Directories that are out-of-scope or empty can still appear in the one-hop ledger, but must be marked as skipped with an explicit reason (e.g., out of scope, generated, vendored, binary blobs, empty).
Optional: use tree for planning & quick verification (convenience)
If tree is available, use it for a fast, human-readable scan of what exists and to spot large/unwanted subtrees early.
- Quick overview (bounded depth):
- See where `AGENTS.md` already exists:
If tree is not available, use find/directory listings instead. tree is a convenience; the ledger invariant (one-hop subdirectory checklist in every AGENTS.md) is the correctness mechanism.
The grounding mechanism (don't miss folders)
Invariant: Every AGENTS.md must contain a one-hop inventory of its immediate subdirectories (excluding always-ignored and default-pruned dependency dirs unless explicitly included), and that list must match the filesystem under those rules.
Use checkbox statuses to make progress explicit:
- [ ] \child/\- [TBD]= discovered, not processed yet- [x] \child/\- <short summary>= processed, summary filled fromchild/AGENTS.md- [x] \child/\- (skip: <reason>)= inspected and intentionally skipped (e.g.out of scope,generated,vendored,empty)
Rule: Before leaving a directory, refresh the one-hop list from the filesystem and ensure no ledger-eligible child directory is missing from the list.
Standard AGENTS.md template
Use this structure everywhere (omit sections that truly don't apply). Leaf directories must be more detailed than one-line-per-file (see "Leaf directories: required detail" below).
All directories: minimum per-file detail
Even for non-leaf directories, avoid "just <role>" file entries.
Minimum requirement for every listed file:
- Role: 1-2 sentences describing why the file exists (not just "helpers").
- Key items: 2-6 concrete names (types/functions/constants/config keys) that help a reader know what to search for.
- Interactions: optional 1 bullet when it materially improves navigation (e.g., "feeds updates into
<other file>", "spawns tasks consumed by<module>").
Leaf directories: required detail (make it "actionable")
If a directory has files but no meaningful subdirectories, treat it as a leaf and write a deeper, navigational summary:
- Replace "Files" one-liners with per-file mini-sections.
- For each file, include:
- Role (1-3 sentences: why it exists)
- Key items (3-10 names: important types/functions/constants)
- Interactions (how it calls/feeds other local files; mention channels/tasks/state where relevant)
- Knobs / invariants (important config flags, thresholds, safety requirements, ordering assumptions)
- Add a short End-to-end flow for the directory (5-12 bullets) describing how the pieces work together.
Use this leaf template (still no big snippets/excerpts):
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/layered-summary/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 5
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vicnaum/vics-agent-skills/layered-summary)