用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dikamilo/dx-workflow --skill dx-domain-discover命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Archive a completed change or effort — move its folder to context/archive/ and stamp it archived.
Record one finding — a warning or a decision-with-rationale — as an append-only entry in foundation/lessons.md.
Start a new piece of work — creates a change or an effort and points you at the next step.
基于 SOC 职业分类
正在显示 SKILL.md
| name | dx-domain-discover |
| description | Mine a brownfield codebase for its domain vocabulary and seed the project glossary. |
| disable-model-invocation | true |
| argument-hint | ["module or path"] |
Bootstrap foundation/glossary.md from an existing codebase. Mine the code for the ubiquitous language already living in it — the terms the domain uses — and write them down so every later skill names things consistently. This is the one-time (per-module) extraction pass; /dx-domain keeps the glossary sharp during ongoing work. Re-runnable: pass [module or path] to scope the sweep to one area and grow the glossary incrementally.
Guard. foundation/glossary.md must exist (seeded by /dx-init) — if it is missing, tell the user to run /dx-init first, then stop. Read the current glossary before mining so you extend it, never clobber it.
Invoke dx-references with knowledge-layer for the glossary entry shape and the standards/lessons/glossary distinction — this skill writes the glossary and nothing else.
Spawn built-in Explore subagents (fan-out, read-only), scoped to [module or path] when given, else the whole repo. Harvest candidate domain terms from:
Keep only terms specific to this domain. Drop general programming concepts (cache, retry, handler, DTO) — they are not ubiquitous language.
For each surviving term, write a glossary entry in the shape from knowledge-layer (**Term**: definition — domain-only, no implementation. _Avoid_: confusable term). Be opinionated: when several names map to one concept, pick one and list the rest under _Avoid_.
Surface, don't average. When you find a term clash (two definitions for one word) or a fuzzy/overloaded term, do not guess — list it and ask the user to resolve it, then record their decision. Keep the file glossary-ONLY: no implementation detail, no rationale, no decisions (those are lessons).
New and sharpened terms are in foundation/glossary.md and every clash was resolved by the user. Print a short summary — terms added, terms already present, clashes resolved — then:
Glossary seeded: foundation/glossary.md
Next: /dx-domain-discover <another-module> — extend the sweep to another area
or: /dx-domain — keep the glossary sharp as you work
Stop. Do not chain into another skill.