deepinit
Что он делает
Этот скилл позволяет агенту написать набор файлов документации по всему проекту с кодом. Он нужен командам, которые хотят, чтобы ИИ-помощники с самого начала понимали структуру и правила их проекта.
Когда использовать
- ✓Когда вы хотите, чтобы ИИ-помощники быстро поняли новую или незнакомую кодовую базу.
- ✓Когда в большом проекте нет заметок о том, для чего нужна каждая папка.
- ✓Когда вы хотите разместить файлы документации в каждой важной части проекта.
Ссылка на скилл
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/deepinit/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Настрой заметки AGENTS.md по всей нашей кодовой базе, чтобы будущие ИИ-помощники понимали каждую папку.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент читает структуру проекта и пишет короткую заметку в каждой важной папке со ссылкой на родительскую. Каждая заметка перечисляет, что хранит папка, как связаны ее части и какие есть особые правила.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Deep Init Skill
Creates comprehensive, hierarchical AGENTS.md documentation across the entire codebase.
Core Concept
AGENTS.md files serve as AI-readable documentation that helps agents understand:
- What each directory contains
- How components relate to each other
- Special instructions for working in that area
- Dependencies and relationships
Hierarchical Tagging System
Every AGENTS.md (except root) includes a parent reference line:
**Parent context:** `../AGENTS.md`
This MUST be visible prose, never an HTML comment. Claude Code strips HTML
comments before a memory file reaches the model, so <!-- Parent: ... -->,
<!-- Generated: ... --> and a commented MANUAL boundary are invisible to the
agent that is supposed to act on them.
This creates a navigable hierarchy:
/AGENTS.md ← Root (no parent line)
├── src/AGENTS.md ← **Parent context:** `../AGENTS.md`
│ ├── src/components/AGENTS.md ← **Parent context:** `../AGENTS.md`
│ └── src/utils/AGENTS.md ← **Parent context:** `../AGENTS.md`
└── docs/AGENTS.md ← **Parent context:** `../AGENTS.md`
Loading Model
Stock Claude Code discovers nested CLAUDE.md by basename and never loads a
nested AGENTS.md; a root @AGENTS.md import does not reach subdirectories
either. The nested files generated here are delivered by OMC's PostToolUse
directory-context injector, which walks up from each accessed file and injects
the nearest AGENTS.md/README.md once per session.
That means the hierarchy requires OMC's hooks to be active. When OMC hooks are
disabled (DISABLE_OMC=1, OMC_SKIP_HOOKS=post-tool-use) or the plugin is not
registered, add a root-level CLAUDE.md symlink or @AGENTS.md import for the
root file and expect nested files to stay unread.
AGENTS.md Template
# {Directory Name}
**Parent context:** `{relative_path_to_parent}/AGENTS.md`
**Generated:** {timestamp} · **Updated:** {timestamp}
## Purpose
{One-paragraph description of what this directory contains and its role}
## Key Files
{List each significant file with a one-line description}
| File | Description |
|------|-------------|
| `file.ts` | Brief description of purpose |
## Subdirectories
{List each subdirectory with brief purpose}
| Directory | Purpose |
|-----------|---------|
| `subdir/` | What it contains (see `subdir/AGENTS.md`) |
## For AI Agents
### Working In This Directory
{Special instructions for AI agents modifying files here}
### Testing Requirements
{How to test changes in this directory}
### Common Patterns
{Code patterns or conventions used here}
## Dependencies
### Internal
{References to other parts of the codebase this depends on}
### External
{Key external packages/libraries used}
## Manual Notes
Notes under this heading are written by humans and preserved on regeneration.
Execution Workflow
Step 1: Map Directory Structure
Task(subagent_type="explore", model="haiku",
prompt="List all directories recursively. Exclude: node_modules, .git, dist, build, __pycache__, .venv, coverage, .next, .nuxt")
Step 2: Create Work Plan
Generate todo items for each directory, organized by depth level:
Level 0: / (root)
Level 1: /src, /docs, /tests
Level 2: /src/components, /src/utils, /docs/api
...
Step 3: Generate Level by Level
IMPORTANT: Generate parent levels before child levels to ensure parent references are valid.
For each directory:
- Read all files in the directory
- Analyze purpose and relationships
- Generate AGENTS.md content
- Write file with proper parent reference
Step 4: Compare and Update (if exists)
When AGENTS.md already exists:
- Read existing content
- Identify sections:
- Auto-generated sections (can be updated)
- Manual sections (the
## Manual Notesheading and everything under it are preserved)
- Compare:
- New files added?
- Files removed?
- Structure changed?
- Merge:
- Update auto-generated content
- Preserve manual annotations
- Update timestamp
Step 5: Validate Hierarchy
After generation, run validation checks:
| Check | How to Verify | Corrective Action |
|---|---|---|
| Parent references resolve | Read each AGENTS.md, check the **Parent context:** path exists |
Fix path or remove orphan |
| No orphaned AGENTS.md | Compare AGENTS.md locations to directory structure | Delete orpha |
Частые вопросы
Заметки написаны в скрытом виде?
Нет. Ссылки на родительские заметки — обычный видимый текст, так как скрытые комментарии до ИИ не дойдут.
Он меняет мой код?
Его задача — писать файлы документации, поэтому заметки добавляются рядом с кодом.
Claude Code сам загружает эти файлы?
Стандартный Claude Code не загружает вложенные файлы AGENTS.md самостоятельно, поэтому скилл построен вокруг того, как они доходят до ИИ.
Подробности
Оригинальное описание автора
Deep codebase initialization with hierarchical AGENTS.md documentation
Популярность
- Звёзды на GitHub
- 41k
- Место в рейтинге
- #7000
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
agent-doc-discipline
41kУчит вашего агента писать инструкции, которые другие ИИ-агенты смогут выполнять самостоятельно, с проверяемыми правилами и понятной причиной для каждого.
ai-slop-cleaner
41kПомогает агенту навести порядок в написанном ИИ коде, который работает, но раздут или повторяется, удаляя лишнее без изменения поведения.
architecture-survey
41kПомогает агенту изучить структуру кодовой базы и составить список частей, которые становятся сложнее менять, с доказательствами, ничего не меняя.
ask-navigator
41kПомогает агенту превратить расплывчатый проект в карту ясных решений, которые можно разбирать по одному, пока путь не станет понятным.
Похожие скиллы
technical-documentation
394kПомогает агенту писать и проверять понятную техническую документацию и инструкции для агентов, чтобы людям и ИИ-инструментам было легко по ним работать.
architecture-decision-records
280kАгент записывает важные решения о структуре проекта. Помогает понимать причины выбора и вести ясную историю изменений.
code-tour
280kАгент создаёт пошаговые экскурсии по коду с точными ссылками на файлы и строки. Полезен для знакомства, объяснений и ревью.