project-index
БесплатноЗапускает вложенные скриптыНе проверенGenerate and maintain a project structure index for fast AI navigation. Creates docs/structure.md with an AI-friendly map + tree. Use when starting a new…
от CongDon1207★ 18 звёзд на GitHubОб этом скилле
Project Index Skill
Generate an AI-friendly docs/structure.md so agents can understand project layout quickly without scanning the whole repo.
When to Use
- First time: project has no
docs/structure.md - After major changes: added/removed modules, moved folders, renamed domains/features
- When
docs/structure.mdlooks stale or misleading - On demand: user says "update structure", "refresh index", "scan project"
Output
- File:
docs/structure.md - Content: Top-Level Map (purpose hints) + directory tree + entry points + config/key files + file-type distribution
Scripts (Recommended)
Python (recommended default)
python .opencode/skills/project-index/scripts/scan_structure.py . 4 > docs/structure.md
Node.js
node .opencode/skills/project-index/scripts/scan-structure.js . 4 > docs/structure.md
Flags
json: output JSON instead of Markdown--no-gitignore: ignore.gitignorerules and scan everything (not recommended)
Script Behavior (What "optimized" means)
- Respects
.gitignorepatterns by default (simplified matching) - Has built-in ignores for common noise:
- dependencies/build outputs:
node_modules/,dist/,build/,coverage/,.next/,.nuxt/,.turbo/ - virtualenv/caches:
venv/,.venv/,.tox/,__pycache__/,.pytest_cache/,.mypy_cache/,.ruff_cache/ - IDE:
.vscode/,.idea/ - typical build outputs:
bin/,obj/,target/ - secrets files:
.env*
- dependencies/build outputs:
- Uses ASCII tree connectors (
|--, ``--`) to avoid encoding issues on Windows terminals - Generates a Top-Level Map with heuristic purpose descriptions (fast navigation)
Expected Structure File Format
# Project Structure Index
> Auto-generated by project-index. Last updated: YYYY-MM-DD HH:mm
## Quick Stats
- Total files: X
- Total directories: Y
- Main language: TypeScript/Python/etc
## Top-Level Map
| Path | Type | Purpose |
|:---|:---:|:---|
| src/ | dir | Main application source code |
| apps/ | dir | Application(s) (often runnable targets) |
| packages/ | dir | Packages (shared modules/libraries) |
| docs/ | dir | Documentation |
| README.md | file | Project overview and getting started |
## Directory Tree
repo/
|-- src/
| -- ... -- README.md
## Entry Points
- src/index.ts
## Config Files
- package.json
## Key Files
- README.md
## File Distribution
| Category | Count |
|:---|---:|
| typescript | 120 |
Integration Notes
- Agents should read
docs/structure.mdfirst for large/broad tasks, then usergfor precise lookup. - A stale
docs/structure.mdis worse than none; refresh it after restructures.
Установить project-index в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл project-index?
Generate and maintain a project structure index for fast AI navigation. Creates docs/structure.md with an AI-friendly map + tree. Use when starting a new project, after major changes, or when docs/structure.md is stale.
Как установить скилл project-index?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл project-index запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic