name: "tx-docs-specs" description: "Create, patch, lint, discover, trace, and complete docs-first specs. Use when working in Codex 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 discovertx spec status
Included Commands
tx decision: Manage decisions as first-class artifactstx decompose: Create a task graph from a design spectx doc: Manage docs-as-primitivestx doc add: Create a new doctx doc attach: Attach a doc to a tasktx doc edit: Open doc YAML in editortx doc link: Link two docstx doc list: List all docstx doc lock: Lock a doc versiontx doc patch: Create a design patch doctx doc rm: Remove latest mutable doc versiontx doc rm: Remove latest mutable doc versiontx doc show: Show doc detailstx doc sync: Re-read docs from disk and update DB hashestx 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
Read references/commands.md for the full generated CLI help text for this skill's commands.
Search And Shell Fixes
When working in Codex, 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
rgcommand with an explicit directory - avoid partial paths like
node_modulor unterminated quotes - replace
grep -rwithrg -nunlessrgis unavailable - replace broad
findprobes withrg --fileswhen you are really locating source files