Skip to content
ds-mapper logo

项目目录结构地图(Directory Structure Mapper)

ds-mapper

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

SKILL.md

Full skill instructions

项目目录结构地图(Directory Structure Mapper)

触发条件

当用户说「带我看看项目结构」「这个仓库怎么组织的」「目录树」「帮我理解这个代码库」或类似需求时激活此技能。

工作流程

  1. 扫描根目录 — 使用 Bash find 和 ls 获取顶层结构
  2. 分析关键目录 — 读取关键文件(package.json, Cargo.toml, pyproject.toml, go.mod 等)获取项目元信息
  3. 递归扫描 — 深入扫描主要目录,理解各模块职责
  4. 生成结构图 — 输出 ASCII 目录树 + 中文注释说明

输出格式

## 📂 项目结构地图

### 🔧 项目信息
- 语言: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 层深度,避免输出过长

More skills from laolaoshiren

test-generator logo
laolaoshiren/claude-code-skills-zh

test-generator

自动生成单元测试:识别函数逻辑、覆盖边界条件、生成可运行测试代码

876 0
View
git-workflow logo
laolaoshiren/claude-code-skills-zh

git-workflow

Git 工作流自动化 - 智能分支管理、提交信息生成、PR 创建

876 0
View
db-migrator logo
laolaoshiren/claude-code-skills-zh

db-migrator

数据库迁移助手 - Schema 对比、迁移脚本生成

876 0
View
i18n-helper logo
laolaoshiren/claude-code-skills-zh

i18n-helper

国际化/本地化助手 — 扫描代码中的硬编码文本、生成 i18n 配置、批量翻译

876 0
View
zh-code-reviewer logo
laolaoshiren/claude-code-skills-zh

zh-code-reviewer

中文代码审查专家 - 生成详细的中文代码审查报告

876 0
View
log-analyzer logo
laolaoshiren/claude-code-skills-zh

log-analyzer

日志分析助手 — 智能解析日志文件,识别异常模式,定位问题根因

876 0
View
github-actions-gen logo
laolaoshiren/claude-code-skills-zh

github-actions-gen

GitHub Actions CI/CD 流水线生成器:根据项目技术栈自动创建 workflows

876 0
View
error-translator logo
laolaoshiren/claude-code-skills-zh

error-translator

编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案

876 0
View
zh-docgen logo
laolaoshiren/claude-code-skills-zh

zh-docgen

中文文档生成器 - 从代码库自动生成中文技术文档

876 0
View
api-tester logo
laolaoshiren/claude-code-skills-zh

api-tester

API 自动化测试 - OpenAPI 解析、测试用例生成、集成测试

876 0
View
security-audit logo
laolaoshiren/claude-code-skills-zh

security-audit

代码安全审计 - 漏洞扫描、依赖检查、安全最佳实践

876 0
View
eslint-fix logo
laolaoshiren/claude-code-skills-zh

eslint-fix

ESLint 自动修复专家 — 识别 ESLint 报错,批量修复,支持常见规则和自定义配置

876 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View