By Claudate
Automatically generates and maintains a fractal multi-level index system for codebases, inspired by Gödel, Escher, Bach. Scans files across 10+ languages, adds Input/Output/Pos headers, creates FOLDER_INDEX.md files, builds a PROJECT_INDEX.md with a Mermaid dependency graph, and auto-syncs on file changes or via /init-index, /check-index, and /update-index commands.
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
受《哥德尔、埃舍尔、巴赫》启发的分形自指文档系统
让代码项目如赋格曲般自我指涉、自我维护、优雅和谐
🌐 多平台代码文档自动化系统
CLI工具 + Claude Code插件 + VSCode扩展
三级分形文档系统 - 自动维护项目的索引和依赖关系:
PROJECT_INDEX.md (根索引)
├─ 项目概览、架构说明
├─ 目录结构导航
└─ Mermaid 依赖关系图
每个文件夹/
└─ FOLDER_INDEX.md (文件夹索引)
├─ 架构说明
├─ 文件清单
└─ "本文件夹变化时,更新我"
每个文件
└─ 文件头注释
├─ Input: 依赖什么
├─ Output: 提供什么
├─ Pos: 在系统中的定位
└─ "我被更新时,更新我的注释和索引"
codex(推荐用于 CI/CD)独立命令行工具 - 不依赖任何编辑器:
# 1. 克隆并安装
git clone https://github.com/Claudate/project-multilevel-index.git
cd project-multilevel-index/cli
npm install && npm run build && npm link
# 2. 使用
cd /your/project
codex init
输出示例:
🎼 Fractal Multi-level Index System
✔ Found 45 code files
✔ Generated 45 file headers
✔ Generated 8 folder indexes
✔ Generated PROJECT_INDEX.md
✅ Index system initialized successfully!
最简单的安装方式:
/plugin marketplace add Claudate/project-multilevel-index
/plugin install project-multilevel-index
使用:
# 初始化索引
/project-multilevel-index:init-index
# 自动更新(Hook 自动触发,无需手动)
# 修改代码文件后会自动更新索引
完全自动化方案 - 已发布到 VSCode 市场
插件名称: SwiftScript
安装地址: VSCode Marketplace
支持平台:
📖 中文用户指南 | English User Guide | 安装指南
JavaScript/TypeScript • Python • Java/Kotlin • Rust • Go C/C++ • PHP • Ruby • Swift • C#
📖 文件头示例
graph TB
Controllers -->|调用| Services
Services -->|使用| Models
Services -->|使用| Utils
自动生成 Mermaid 依赖关系图,支持:
| 命令 | 功能 |
|---|---|
init-index | 初始化索引系统 |
update-index | 手动更新索引 |
check-index | 一致性检查 |
set-language | 切换语言 |
💡 提示: Claude Code 命令需要前缀
/project-multilevel-index:
📖 命令详细说明
查看 USE_CASES.md 了解 8 个真实应用场景:
| 平台 | 自动化程度 | 状态 | 文档 |
|---|---|---|---|
| CLI 工具 | 手动命令 | ✅ 已发布 | CLI README |
| Claude Code | 完全自动 | ✅ 已发布 | 安装指南 |
| VSCode Extension | 完全自动 | ✅ 已发布 | 用户指南 | User Guide (EN) |
| 规则文件方案 | 半自动 | ✅ 可用 | Cursor | Windsurf | Kiro |
📖 平台详细对比
V2.0 引用分离架构 - 实现 DRY 原则和平台无关性
npx claudepluginhub Claudate/project-multilevel-index --plugin project-multilevel-indexSave and resume Claude Code session context across multiple windows. Preserves work progress, pending tasks, key files, and technical notes. Perfect for complex projects requiring context switching between sessions.
Optimized file search, semantic indexing, and persistent memory for Claude Code — with optional sync to a self-hosted web dashboard
Auto-document entire codebase with inline comments and API docs
Structural codebase indexing for efficient navigation. Reduces token consumption by 60-80% through targeted line-range reads instead of full file scans.
Lightweight knowledge graph for AI-assisted development. Impact analysis, code search, dependency tracking, and context generation.
Codebase intelligence for Claude Code. Indexes your codebase into five layers (Graph, Git, Docs, Decisions, Code Health) and exposes them through nine task-shaped MCP tools — so Claude understands architecture, ownership, hotspots, why code is built the way it is, and where the defect risk lives.
Make your AI agent code with your project's architecture, rules, and decisions.