ds-mapper

Solid

项目目录结构地图 - 生成带说明的可视化目录树,快速理解任意代码库

AI & Automation 692 stars 69 forks Updated today MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
95
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
62
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 项目目录结构地图(Directory Structure Mapper) ## 触发条件 当用户说「带我看看项目结构」「这个仓库怎么组织的」「目录树」「帮我理解这个代码库」或类似需求时激活此技能。 ## 工作流程 1. **扫描根目录** — 使用 Bash `find` 和 `ls` 获取顶层结构 2. **分析关键目录** — 读取关键文件(package.json, Cargo.toml, pyproject.toml, go.mod 等)获取项目元信息 3. **递归扫描** — 深入扫描主要目录,理解各模块职责 4. **生成结构图** — 输出 ASCII 目录树 + 中文注释说明 ## 输出格式 ```markdown ## 📂 项目结构地图 ### 🔧 项目信息 - 语言:TypeScript / Python / Go / ... - 框架:Next.js / FastAPI / Gin / ... - 包管理:pnpm / pip / go mod ### 🌳 目录树 ``` project-root/ ├── src/ # 📦 核心源码 │ ├── components/ # 🧩 UI 组件 │ ├── services/ # 🔌 业务逻辑层 │ ├── utils/ # 🔧 工具函数 │ └── index.ts # 🚀 入口文件 ├── tests/ # 🧪 测试文件 ├── docs/ # 📖 文档 ├── .github/ # 🔄 CI/CD 配置 ├── package.json # 📋 依赖管理 └── README.md # 📝 项目说明 ``` ### 🗺️ 模块说明 | 目录 | 职责 | 关键文件 | |------|------|----------| | `src/` | 核心源码 | index.ts, app.ts | | `src/components/` | UI 组件 | Button.tsx, Modal.tsx | ### 💡 入口建议 - 🚀 启动入口:`src/index.ts` - 📖 入门文档:`README.md` - ⚙️ 配置文件:`config.yaml` ``` ## 注意事项 - 跳过 node_modules, .git, vendor, __pycache__ 等常见忽略目录 - 对每个关键目录给出一行中文说明 - 如果项目有 monorepo 结构,分别列出各 packages - 最多展示 3 层深度,避免输出过长

Details

Author
laolaoshiren
Repository
laolaoshiren/claude-code-skills-zh
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

code-to-chart

解析代码仓库的 import/依赖关系,自动生成架构图、流程图和组织架构图,输出 Mermaid 文本或 SVG 图片。支持 Python、JavaScript、TypeScript、Go 和 Java 项目。当用户需要可视化代码结构、分析模块依赖、生成架构文档,或提及“代码架构图”、“依赖关系图”、“流程图”、“组织架构图”、“Mermaid 图”等关键词时触发。

4 Updated 1 weeks ago
serejaris
Data & Documents Listed

codemap

Analyze codebase structure, dependencies, and changes. Use when user asks about project structure, where code is located, how files connect, what changed, or before starting any coding task. Provides instant architectural context.

1 Updated yesterday
MacPRITCHARD
Data & Documents Listed

directory-map

Maps any directory tree into a structured, agent-readable taxonomy. Use this skill whenever the user wants to understand, document, or index a folder or codebase — including requests like "/directory-map", "map this project", "create a project index", "generate a directory overview", "index this repo", "help me understand what's in this folder", "create a DIRECTORY_MAP", or "build an index of this directory". Works on any language, stack, or project type. Produces three outputs: DIRECTORY_MAP.md (human-readable taxonomy), update-index.py (automated re-indexer), and index.json (machine-readable snapshot with an AgentIngress XML block for LLM context injection).

1 Updated 1 weeks ago
Idadabhai