Agent skill
validate-markdown-refs
Validate markdown file references in .claude and .prism directories. Use to find broken links before committing documentation changes.
Install this agent skill to your Project
npx add-skill https://github.com/resolve-io/.prism/tree/main/plugins/prism-devtools/skills/validate-markdown-refs
SKILL.md
Validate Markdown References
Scan markdown files for broken internal links. Returns clean JSON output.
When to Use
- Before committing documentation changes
- When the link-checker agent needs to verify its findings
- Manual validation of plugin documentation integrity
- CI/CD pipelines for documentation quality gates
Quick Start
# Run from project root
python .prism/plugins/prism-devtools/skills/validate-markdown-refs/scripts/validate-refs.py
# Or with custom directories
python validate-refs.py --directories .claude .prism
# Include archive directories
python validate-refs.py --include-archive
What It Checks
- Markdown links:
[text](path)and[ref]: pathsyntax - Relative paths: Resolved from source file location
What It Skips
- URLs (
http://,https://,mailto:) - Anchor-only links (
#section) - Links inside fenced code blocks
- Template variables (
{{...}},${...}) plugins/cachedirectory (duplicates)
Output
Returns JSON to stdout. See output format for schema.
Example:
{
"status": "FAIL",
"summary": {
"files_scanned": 127,
"broken_links": 3
},
"broken_links": [
{
"source_file": ".prism/plugins/prism-devtools/skills/README.md",
"line": 58,
"target_path": "./orca-local-setup/SKILL.md",
"error": "File not found"
}
]
}
Exit Codes
| Code | Meaning |
|---|---|
| 0 | No broken links found |
| 1 | Broken links found |
| 2 | Script error |
Integration with Link-Checker Agent
The link-checker agent can invoke this script to verify its findings:
python validate-refs.py
JSON is the default (and only) output format, providing deterministic validation to complement the agent's AI-based scanning.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
review-story
Use to perform comprehensive test architecture review with quality gate decision. Creates both story updates and detailed gate files.
create-dev-task
Use to generate development task documents for the Dev agent. Creates specifications describing WHAT needs fixing based on validated issues and investigations.
test-design
Use to design test strategies and create test specifications. Documents testing approaches for stories.
sdlc-handoff
Use for SDLC phase transitions. Ensures proper handoff between development phases with documentation.
qa-gate
Use to create or update quality gate decision files for stories. Provides clear pass/fail decisions with actionable feedback.
document-project
Use to analyze and document any project codebase. Creates comprehensive reference documentation for AI-assisted development including architecture and patterns.
Didn't find tool you were looking for?