v2-docs-audit
Orchestrate V2 transaction MDX documentation coverage and quality tracking
When & Why to Use This Skill
The v2-docs-audit skill is a specialized documentation management tool designed to orchestrate and track the coverage, quality, and structural integrity of V2 transaction MDX files. It automates the auditing process by comparing existing documentation against API trackers, ensuring path alignment with endpoint structures, and providing a comprehensive dashboard for documentation health.
Use Cases
- Documentation Coverage Gap Analysis: Automatically scan directories to identify which API transactions are missing corresponding MDX documentation files.
- API-to-Doc Path Alignment: Ensure that documentation file paths strictly follow the API endpoint hierarchy (e.g., /v2/tx/{system}/{role}/{action}) to maintain consistent navigation and SEO structure.
- Quality Assurance & Content Auditing: Systematically verify that each documentation file contains mandatory sections such as cost breakdowns, request bodies, and transaction patterns using a standardized checklist.
- Documentation Lifecycle Management: Track the status of technical docs from 'missing' and 'needs-review' to 'verified' using a centralized JSON tracker to coordinate team efforts.
| name | v2-docs-audit |
|---|---|
| description | Orchestrate V2 transaction MDX documentation coverage and quality tracking |
Documentation Location: content/docs/protocol/v2/transactions/
Worker Skill: Use /v2-docs-review to review individual transaction documentation.
Tracker File: .claude/skills/v2-docs-audit/v2-docs-tracker.json
Related Skills:
/transaction-audit- Tracks CBOR analysis and YAML creation/analyze-transaction- Creates YAML + TypeScript from CBOR
Scan Documentation Directory
- List all MDX files in
content/docs/protocol/v2/transactions/ - Compare against expected transactions from
v2-transaction-tracker.json - Identify missing, outdated, or misaligned documentation
- List all MDX files in
Display Coverage Dashboard
- Show summary: X documented, Y missing, Z needs update
- List transactions by system (global, instance, course, project)
- Highlight path misalignments between current and expected paths
Identify Work Needed
- List transactions with no MDX file
- List transactions with path misalignment (legacy paths)
- List transactions that need content review (outdated info)
Prompt for Action
- Offer to run
/v2-docs-reviewfor specific transactions - Offer to migrate files to correct paths
- Offer to create missing documentation stubs
- Offer to run
Commands
| Command | Description |
|---|---|
/v2-docs-audit |
Show dashboard and coverage status |
/v2-docs-audit scan |
Rescan documentation directory |
/v2-docs-audit status |
Show summary counts only |
/v2-docs-audit next |
Suggest next documentation task |
/v2-docs-audit review <id> |
Run /v2-docs-review for specific tx |
| Status | Meaning |
|---|---|
missing |
No MDX file exists for this transaction |
path-mismatch |
MDX exists but at wrong path (needs migration) |
needs-review |
MDX exists but content may be outdated |
reviewed |
MDX reviewed and content is current |
verified |
MDX verified against live API documentation |
Status Flow
missing → created → needs-review → reviewed → verified
↑ ↓
path-mismatch → migrated ┘ │
↑ ↓
└──────────────┘ (if API changes)
MDX paths MUST match the API endpoint structure:
| API Endpoint | Expected MDX Path |
|---|---|
/v2/tx/{system}/{role}/{action} |
{system}/{role}/{action}.mdx |
Current Path Issues (Known)
| Transaction ID | Current Path | Expected Path |
|---|---|---|
| instance.owner.course.create | course/admin/create.mdx | instance/owner/course/create.mdx |
| instance.owner.project.create | (missing) | instance/owner/project/create.mdx |
| course.owner.teachers.manage | course/admin/teachers-update.mdx | course/owner/teachers/manage.mdx |
| course.teacher.assignments.assess | course/teacher/assignments-assess.mdx | course/teacher/assignments/assess.mdx |
| course.student.assignment.action | course/student/assignment-update.mdx | course/student/assignment/action.mdx |
| course.student.credential.claim | course/student/credential-claim.mdx | course/student/credential/claim.mdx |
| global.general.access-token.mint | general/mint-access-token.mdx | global/general/access-token/mint.mdx |
Base Path
- MDX:
content/docs/protocol/v2/transactions/
Each transaction MDX should include:
Required Sections
- Title & Description - Frontmatter with tx_file reference
- API Endpoint - Correct path format (
/v2/tx/...) - Cost Breakdown - Table with fees, deposits, wallet delta
- Request Body - JSON example with current field names
- Transaction Pattern - Mint/Spend/Burn pattern description
- Inputs - Table of inputs with validators
- Outputs - Table of outputs with values
- Minting Operations - If applicable
- Datum Changes - Before/after datum structures
- Reference Inputs - Script references used
- Notes - Key insights and caveats
Quality Checks
- API endpoint matches current Atlas API
- Request body fields match current API schema
- Costs are accurate (compare to YAML)
- Validator names match address-registry.json
- tx_file frontmatter points to correct YAML
{
"version": "1.0.0",
"lastUpdated": "YYYY-MM-DD",
"docsPath": "content/docs/protocol/v2/transactions",
"summary": {
"documented": N,
"missing": N,
"path-mismatch": N,
"needs-review": N,
"reviewed": N,
"verified": N
},
"transactions": [
{
"id": "system.role.action",
"endpoint": "/v2/tx/...",
"system": "global|instance|course|project",
"role": "general|owner|teacher|student|manager|contributor",
"expectedPath": "path/to/expected.mdx",
"currentPath": "path/to/current.mdx" | null,
"status": "missing|path-mismatch|needs-review|reviewed|verified",
"lastReviewed": "YYYY-MM-DD" | null,
"yamlSource": "path/to/source.yaml" | null,
"issues": ["list of known issues"],
"notes": "..."
}
]
}
═══════════════════════════════════════════════════════════════
V2 DOCUMENTATION COVERAGE DASHBOARD
═══════════════════════════════════════════════════════════════
Last Updated: YYYY-MM-DD
Docs Path: content/docs/protocol/v2/transactions/
SUMMARY
───────────────────────────────────────────────────────────────
Total: 17 | Documented: 8 | Missing: 9 | Path Issues: 6
BY SYSTEM
───────────────────────────────────────────────────────────────
Global (1): ██████████░░░░░░░░░░ 50% [1/1] ⚠️ path mismatch
Instance (2): ██████████░░░░░░░░░░ 50% [1/2]
Course (6): ████████████████████ 100% [6/6] ⚠️ 5 path mismatches
Project (8): ░░░░░░░░░░░░░░░░░░░░ 0% [0/8]
DOCUMENTATION STATUS
───────────────────────────────────────────────────────────────
[✓] global.general.access-token.mint ⚠️ Wrong path
[✓] instance.owner.course.create ⚠️ Wrong path
[✗] instance.owner.project.create Missing
[✓] course.owner.teachers.manage ⚠️ Wrong path
[✓] course.teacher.modules.manage ⚠️ Wrong path
[✓] course.teacher.assignments.assess ⚠️ Wrong path
[✓] course.student.enroll OK
[✓] course.student.assignment.action ⚠️ Wrong path
[✓] course.student.credential.claim ⚠️ Wrong path
[✗] project.owner.managers.manage Missing
...
PRIORITY ACTIONS
───────────────────────────────────────────────────────────────
1. Migrate 6 files to correct paths
2. Create instance/owner/project/create.mdx
3. Create 8 project transaction docs
To review: /v2-docs-review <transaction-id>
═══════════════════════════════════════════════════════════════
- Path alignment is mandatory - All MDX files must match API URL structure
- YAML is source of truth - MDX content should align with analyzed YAML files
- Update index.mdx - When adding new transactions, update the index page
- Create meta.json - Each directory needs a meta.json for navigation
- tx_file frontmatter - Links MDX to YAML for diagram rendering
Related Files
v2-transaction-tracker.json- CBOR analysis status (different tracker)address-registry.json- Validator/policy names- YAML files in
public/yaml/transactions/v2/