AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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-deep call maps the whole project and writes a root AGENTS.md plus 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

  1. /init-deep — update existing AGENTS.md files via Edit and add new ones for high-scoring directories.
  2. /init-deep --create-new — preserve insights from current docs, wipe them, then regenerate from scratch.
  3. /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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI 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.

  1. Open a terminal and clone the repo: git clone https://github.com/code-yeongyu/oh-my-openagent.git
  2. Create the skills folder if needed: mkdir -p ~/.claude/skills
  3. Copy the skill: cp -r oh-my-openagent/packages/shared-skills/skills/init-deep ~/.claude/skills/
  4. Confirm ~/.claude/skills/init-deep/SKILL.md exists.
  5. Restart Claude Code, open your project directory, and run /init-deep.
  6. Note: without LSP/codegraph tools or background subagents, the workflow degrades to bash-based analysis only.
View source on GitHub ↗License: NOASSERTION