ds-mapper

ds-mapper is a skill for Claude Code, Codex from laolaoshiren/claude-code-skills-zh. It costs 26 tokens per session (583 once invoked), scanned A, original, MIT.

A project-structure mapper that scans a code repository and produces a labeled directory tree. It explains what important folders and files are for, including separate package areas in a monorepo, a repository containing multiple related projects.

In plain words
What is it for?
Use it to understand how a repository is organized, identify its language, framework, and package manager, and document key directories and files in a compact structure guide.
Why use it?
It gives a newcomer a quick map of an unfamiliar codebase instead of requiring them to open files one by one. It also identifies likely starting points such as the entry file, configuration, tests, and documentation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to understand how a repository is organized, identify its language, framework, and package manager, and document key directories and files in a compact structure guide.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laolaoshiren/claude-code-skills-zh/ds-mapper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add laolaoshiren/claude-code-skills-zh --skill ds-mapper
Clone the repo
git clone --depth 1 https://github.com/laolaoshiren/claude-code-skills-zh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ds-mapper

README.md
[![agentmods](https://agentmods.dev/badge/skills/laolaoshiren/claude-code-skills-zh/ds-mapper/github.svg)](https://agentmods.dev/skills/laolaoshiren/claude-code-skills-zh/ds-mapper)
Your own site
<a href="https://agentmods.dev/skills/laolaoshiren/claude-code-skills-zh/ds-mapper"><img src="https://agentmods.dev/badge/skills/laolaoshiren/claude-code-skills-zh/ds-mapper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ds-mapper

Your own site · 80×15
<a href="https://agentmods.dev/skills/laolaoshiren/claude-code-skills-zh/ds-mapper"><img src="https://agentmods.dev/badge/skills/laolaoshiren/claude-code-skills-zh/ds-mapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00583
Opus 5 $0.00013 $0.00292
Sonnet 5 $0.00005 $0.00117
Haiku 4.5 $0.00003 $0.00058

Measured 10d ago against content hash 0daac0e7addd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

ds-mapper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ds-mapper/SKILL.md · 62 lines

What it actually says

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

触发条件

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

工作流程

  1. 扫描根目录 — 使用 Bash findls 获取顶层结构
  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 层深度,避免输出过长
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 62 lines · 26 tokens per session scan A 0daac0e7addd

Subscribe to this mod's changes

ds-mapper is a skill published in the GitHub repository laolaoshiren/claude-code-skills-zh (828 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 583 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

launch-tweet

Draft a launch tweet or short thread for a solo product launch on X / Twitter. Use when the user is shipping something (new product, major feature, side project) and asks for a launch post, "help me announce X", or mentions Product Hunt / Show HN / X launch.

rockscy/solo-skills · 63 tokens

postmortem-solo

Run a lightweight, blame-free postmortem after an incident, failed launch, or missed deadline — for one person. Use when the user says "that didn't go well", "the launch flopped", "we had an outage", "I missed my deadline", or wants to learn from a recent failure.

rockscy/solo-skills · 68 tokens

bug-from-user

Convert a vague user complaint into a reproducible bug report a solo dev can act on. Use when the user pastes a confusing customer message, says "user says it's broken but I can't repro", "this email makes no sense", or wants to triage a bug report.

rockscy/solo-skills · 60 tokens

changelog-from-commits

Generate a user-facing CHANGELOG entry from raw git log output. Use when the user is preparing a release, says "what changed since last version", asks to write release notes, or wants to summarize a batch of commits for end users.

rockscy/solo-skills · 55 tokens

standup-solo

Run a 5-minute personal standup for a solo dev — what shipped yesterday, what's blocked, what's next today. Use when the user asks for a daily check-in, says "what should I work on today", "what did I do yesterday", or wants to break out of a productivity slump.

rockscy/solo-skills · 66 tokens

email-customer

Draft a polite-but-firm reply to a tricky customer email — refund request, scope creep, complaint, billing dispute. Use when the user pastes a customer email and asks for a reply, mentions "how do I respond", "user is asking for a refund", "they want a discount", or any awkward customer-facing communication.

rockscy/solo-skills · 71 tokens