init-deep — Hierarchical AGENTS.md Knowledge Base Generator
Analyzes a repo in parallel and generates AGENTS.md at the root plus in complexity-scored subdirectories.
Dev & CodingAdvanced★ 67,531⑂ 5,507AI score 9/10Last updated: Aug 9, 2026
What it does
- One
/init-deepcall maps the whole project and writes a rootAGENTS.mdplus subdirectory files where they're actually warranted. - Fires background explore agents (structure, entry points, conventions, anti-patterns, build/CI, tests) while the main session runs bash structural analysis and an LSP/codegraph code map.
- Uses a weighted scoring matrix (file count, subdir count, symbol density, reference centrality, module boundaries) to decide placement: >15 create, 8–15 only if a distinct domain, <8 skip.
- Includes a review pass that strips generic advice, removes parent duplication, and enforces size limits (root 50–150 lines, children 30–80).
- Flags:
--create-new(read existing, delete, regenerate) and--max-depth=N(default 3).
Who it's for
- Developers maintaining large monorepos or polyglot codebases who want structured AI context docs.
- Tech leads automating onboarding documentation directly from real code signals.
- Users on a harness that supports background subagents plus LSP/codegraph tooling.
Examples
/init-deep— update existing AGENTS.md files via Edit and add new ones for high-scoring directories./init-deep --create-new— preserve insights from current docs, wipe them, then regenerate from scratch./init-deep --max-depth=2— cap analysis depth on a deeply nested repo to avoid doc sprawl.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/HEAD/packages/shared-skills/skills/init-deep/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the packages/shared-skills/skills/init-deep folder from the GitHub repo code-yeongyu/oh-my-openagent into my ~/.claude/skills/code-yeongyu-init-deep-2/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/code-yeongyu/oh-my-openagent.git && mkdir -p ~/.claude/skills && cp -r oh-my-openagent/packages/shared-skills/skills/init-deep ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/code-yeongyu/oh-my-openagent.git - Create the skills folder if needed:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r oh-my-openagent/packages/shared-skills/skills/init-deep ~/.claude/skills/ - Confirm
~/.claude/skills/init-deep/SKILL.mdexists. - Restart Claude Code, open your project directory, and run
/init-deep. - Note: without LSP/codegraph tools or background subagents, the workflow degrades to bash-based analysis only.
View source on GitHub ↗License: NOASSERTION