ds-mapper
Featured项目目录结构地图 - 生��带说明的可视化目录树,快速理解任意代码库
AI & Automation 835 stars
88 forks Updated yesterday MIT
Install
Quality Score: 89/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
- 5 months ago
- Last Updated
- yesterday
- Language
- Python
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
code-to-chart
解析代码仓库的 import/依赖关系,自动生成架构图、流程图和组织架构图,输出 Mermaid 文本或 SVG 图片。支持 Python、JavaScript、TypeScript、Go 和 Java 项目。当用户需要可视化代码结构、分析模块依赖、生成架构文档,或提及“代码架构图”、“依赖关系图”、“流程图”、“组织架构图”、“Mermaid 图”等关键词时触发。
6 Updated 1 months ago
serejaris Code & Development Listed
project-structure-guide
依各語言的最佳實踐組織專案目錄結構的指南。 Use when: 建立專案、重整結構、新增模組、設定建置流程、決定檔案該放哪裡。 Not for: 專門為 AI 導覽而設計的結構——請用 /ai-friendly-architecture;原地重整既有程式碼——請用 /refactor。 Keywords: project, structure, directory, layout, gitignore, scaffold, file placement, utils, helpers, shared, 專案結構, 目錄配置, 檔案擺放.
73 Updated today
AsiaOstrich AI & Automation Listed
orient
Quickly understand and map a project's structure and architecture. Triggers when exploring new codebases or asking about project layout.
3 Updated yesterday
dagonet