.claude/skills/docs-diagrams/SKILL.md
Add or refine diagrams in documentation, especially Mermaid workflow diagrams in apps/docs. Use when a docs page explains actor handoffs, phase gates, failure paths, state transitions, or multi-step flows that are clearer as a diagram.
npx skillsauth add jamesaphoenix/tx docs-diagramsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when updating apps/docs/content/docs/**/*.mdx and the page would benefit from a visual explanation.
apps/docs/components/mermaid.tsx rather than raw Mermaid fences.actorIcons={{ Human: "human", Agent: "robot" }} when those roles are present.bun run --cwd apps/docs build.apps/docs/components/mermaid.tsxapps/docs/content/docs/primitives/gate.mdxapps/docs/content/docs/getting-started.mdx and apps/docs/content/docs/agent-sdk.mdxUse a sequence diagram for:
Use a flow or state diagram only when the page is really about:
Do not add a diagram if a short table or 3-step list is clearer.
tx, API, MCP, Agent, and Human.Human and Agent both appear, make them visually distinct with actorIcons.import { Mermaid } from '@/components/mermaid'
<Mermaid
title="Happy Path"
caption="Agent finishes the phase. Human approves the gate."
actorIcons={{ Human: "human", Agent: "robot" }}
chart={`sequenceDiagram
autonumber
participant TX as tx
actor Agent
actor Human
Agent->>TX: complete phase task
Human->>TX: approve gate
Human->>TX: complete review task
`}
/>
bun run --cwd apps/docs build
If you changed Mermaid rendering logic, also spot-check the page in the browser.
development
Implement and verify design doc invariants by annotating tests and source code with [INV-*] / @spec tags, then driving tx spec coverage from BUILD toward HARDEN (100% FCI). Works with any design doc that has an invariants block.
data-ai
Link tasks to paired PRD/design specs, export all open work to markdown, and keep Ralph-style loops moving by creating tasks, subtasks, and dependency updates through tx primitives.
development
Refresh bundled tx Claude Code and Codex skills in a project from the canonical tx source without manual copy and paste.
development
Run Ralph against either the full repo queue or tasks linked to one design doc, with injected task/spec/queue context for Codex or Claude runtimes.