Skip to main contenttx-docs-specs
Create, patch, lint, discover, trace, and complete docs-first specs. Use when working in Claude Code and the user needs tx commands from this area.
跳到安装 用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jamesaphoenix/tx --skill tx-docs-specs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| name | tx-docs-specs |
| description | Create, patch, lint, discover, trace, and complete docs-first specs. Use when working in Claude Code and the user needs tx commands from this area. |
| metadata | {"short-description":"Create, patch, lint, discover, trace, and complete docs-first specs."} |
tx Docs And Specs
Use when the user is working in PRDs, DDs, invariants, decision tracking, or markdown export flows.
Quick Start
tx doc add prd <name> --title "Title"
tx spec discover
tx spec status
Included Commands
tx decision: Manage decisions as first-class artifacts
tx decompose: Create a task graph from a design spec
tx doc: Manage docs-as-primitives
tx doc add: Create a new doc
tx doc attach: Attach a doc to a task
tx doc edit: Open doc YAML in editor
tx doc link: Link two docs
tx doc list: List all docs
tx doc lock: Lock a doc version
tx doc patch: Create a design patch doc
tx doc rm: Remove latest mutable doc version
tx doc rm: Remove latest mutable doc version
tx doc show: Show doc details
tx doc sync: Re-read docs from disk and update DB hashes
tx doc validate: Validate doc/task coverage and index search metadatatx doc version: Create new version from locked doctx invariant is deprecated. Use 'tx spec' instead.tx md-export: Export tasks to markdown filetx spec: Docs-first spec-to-test traceability primitivestx spec batch: Import test run results from stdintx spec complete: Record human completion sign-offtx spec discover: Refresh doc-derived invariants and upsert test mappingstx spec fci: Compute Feature Completion Indextx spec gaps: List uncovered invariants (no linked tests)tx spec health: Repo-level spec-driven development rolluptx spec link: Manually link an invariant to a testtx spec lint: All-in-one spec and doc checkertx spec matrix: Full invariant-to-test traceability matrixtx spec run: Record a pass/fail run result for a canonical test IDtx spec status: Explain scope closure statetx spec tests: List tests linked to an invarianttx spec unlink: Remove an invariant/test mappingtx triangle is a deprecated alias for 'tx spec health'.Full Help
Search And Shell Fixes
When working in Claude Code, prefer rg -n <pattern> <path> and rg --files <path> over broad grep -r or fragile find pipelines.
If a shell/search command fails because of malformed flags, truncated paths, or broken quotes:
- rerun it as a smaller
rg command with an explicit directory
- avoid partial paths like
node_modul or unterminated quotes
- replace
grep -r with rg -n unless rg is unavailable
- replace broad
find probes with rg --files when you are really locating source files