domain-mapper

A research workflow that turns scattered information about a market, industry, technology, competitor, or codebase into a structured Markdown reference called domain-map.md.

In plain words
What is it for?
Use it to define a research scope, map a domain, compare competitors, analyze social or media information, and update the resulting reference.
Why use it?
It gives unfamiliar subjects an organized, source-attributed overview instead of leaving information spread across notes and searches.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/zxpmail/reqforge/domain-mapper
Any agent
npx skills add zxpmail/ReqForge --skill domain-mapper
Clone the repo
git clone --depth 1 https://github.com/zxpmail/ReqForge

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,286 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01286
Opus 5 $0.00000 $0.00643
Sonnet 5 $0.00000 $0.00257
Haiku 4.5 $0.00000 $0.00129

Measured 2d ago against content hash 5d7a071c411b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

domain-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 2d 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.

adapters/claude-code/.claude/skills/domain-mapper/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.


name: domain-mapper description: Used when the user wants to research a domain, industry, market, technology, codebase, or competitor — turning scattered/unstructured information into a structured Markdown database (domain-map.md). Triggers on phrases like "帮我研究一下", "分析一下这个", "我不太熟悉这个领域", "拆一下这个行业/代码库". version: 1.0.0 updated: 2026-06-08 requires: []

[Task] Transform unstructured/sprawling domain knowledge into a structured Markdown database, independent of any product spec flow.

**Core pipeline**: Scope definition → Domain Snapshot (domain-map.md) → optional Deep-Dive (competitor-analysis.md) → optional Social/Media Analysis (social-analysis.md) → Synthesis (update domain-map.md).

**Depth levels**:
- L1 Snapshot: 30-min pass, only domain-map.md output
- L2 Standard: 1-2h, domain-map.md + competitor-analysis.md
- L3 Deep: Half-day, full 5-step pipeline

The output is a living document: timestamped, source-attributed, and designed to be revisited when the domain evolves.

[Not For] - Writing product requirements -> use /product-spec-builder instead - Fixing bugs -> use /bug-fixer instead - Code review -> use /code-review instead - General web search without structure -> use direct WebSearch or /deep-research instead

[Dependency Check] No required prerequisite files. This skill can always run from a blank project.

- If domain-map.md already exists for the same domain, warn about staleness (check timestamp in file header) and ask whether to regenerate or append.
- If Product-Spec.md exists, read it for context but do not modify it.

[First Principles] → references/first-principles.md

[Shared Discipline] Karpathy 四原则 → ../_shared/karpathy-discipline.md Source attribution required on every claim → see workflow.md §源标注

[HARD-GATE] Until domain-map.md is saved and the user confirms the snapshot:

- MUST NOT proceed to Step 3 (Deep-Dive) or Step 4 (Social/Media)
- MUST NOT modify Product-Spec.md, DEV-PLAN.md, or source code
- MUST NOT treat "looks good in chat" as confirmation — user must confirm the saved file

[Output Style] → 每个输出文件头部包含生成时间戳 → 每一条关键信息附来源 URL(不可溯源标注 ⚠️) → 每步完成输出一个文件,不把所有信息挤在同一份报告里

[Output Artifacts] - domain-map.md — 结构化领域数据库(所有深度级别) - competitor-analysis.md — 对比表 + 叙事差异分析(L2/L3) - social-analysis.md — 社媒内容分析 + 核心矛盾提取(L3 only)

[File Structure] domain-mapper/ ├── SKILL.md # 入口(本文件) ├── references/ │ ├── first-principles.md # 核心理念 + HBM 示例锚点 │ └── workflow.md # 完整 5 步工作流 + 失败模式 └── templates/ └── domain-map-template.md # 通用输出模板 ../_shared/

[Gotchas] 域过宽陷阱: "帮我研究科技行业" → 必须强制收窄(芯片 > 封装 > 设备,你关心哪一层?) 源不可靠: WebSearch 未返回实质内容时,必须在输出的对应条目旁标注 ⚠️(来源不足,需人工补充) 老化地图: domain-map.md 头部有生成时间戳,后续引用时若超过 30 天需提醒用户 竞品敏感数据: 某些行业核心信息不在公开网页,技能必须在输出末尾列出"已知盲区"

[Triggers] The following phrases should route to this skill: - "帮我研究一下 X" / "帮我看看 X 行业" - "分析一下 X 这个赛道/领域/市场" - "我不太熟悉 X,帮我了解一下" - "拆一下 X 的竞争格局" / "X 有哪些玩家" - "研究一下 X 这个技术/产品/代码库" - "画一张 X 的行业地图"

[Workflow] 1. Run [Dependency Check] 2. Read references/first-principles.md 3. Read references/workflow.md — 前置深度选择 → 5 步工作流 → 失败模式 4. 每步完成后暂停,让用户决定继续/转向/停止

Read the full file on GitHub · 120 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 120 lines · 0 tokens per session scan A 5d7a071c411b

Subscribe to this mod's changes

domain-mapper is a skill published in the GitHub repository zxpmail/ReqForge (18 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,286 tokens. 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.