Perform comprehensive documentation validation before deployment for any project in `~/projects/`.
Performs comprehensive documentation validation and deployment for projects in ~/projects/.
/plugin marketplace add Data-Wise/craft/plugin install data-wise-craft@Data-Wise/craftcode/Perform comprehensive documentation validation before deployment for any project in ~/projects/.
First, detect the project type by examining:
package.json → npm/Node.js projectDESCRIPTION → R package (use pkgdown)mkdocs.yml → MkDocs documentation site_quarto.yml → Quarto projectpyproject.toml or setup.py → Python projectCheck version consistency across files based on project type:
npm/Node.js projects:
package.json versionsrc/index.ts or src/index.js VERSION constant (if exists)CLAUDE.md version reference_extensions/*/extension.yml)R packages:
DESCRIPTION Version fieldNEWS.md version entriesCLAUDE.md version reference_pkgdown.yml if existsAll projects:
Scan README.md for badges and validate:
Dynamic badges (GOOD):



Static badges (FLAG THESE):

Report:
Scan documentation files for broken links:
Internal links:
[text](page.md) - verify file exists[text](#anchor) - verify anchor exists[text](../path) - verify relative path resolvesGitHub links:
github.com/OWNER/REPO/blob/main/PATH - verify path exists in repogithub.com/OWNER/REPO/tree/main/PATH - verify directory existsExternal links:
Report all broken links with file:line references.
For MkDocs projects:
nav: entries point to existing filesFor R packages with pkgdown:
_pkgdown.yml structureRun the appropriate build command:
MkDocs:
mkdocs build --strict
pkgdown:
Rscript -e "pkgdown::build_site()"
npm with docs:
npm run build # if build script exists
Report any build errors or warnings.
Start local server for user review:
MkDocs:
mkdocs serve # http://localhost:8000
pkgdown:
Rscript -e "pkgdown::preview_site()"
Tell user: "Preview available at [URL]. Review and confirm when ready."
Use AskUserQuestion to ask:
Options:
Git workflow:
git add -A
git status # Show what will be committed
git commit -m "docs: [auto-generated summary]"
git push origin main
Monitor deployment:
gh run list monitoring in backgroundAfter deployment:
## Documentation Check Report
**Project**: [name] ([type])
**Path**: [path]
**Date**: [timestamp]
### Version Sync
| File | Version | Status |
|------|---------|--------|
| package.json | 0.6.6 | ✓ |
| CLAUDE.md | 0.6.6 | ✓ |
### Badges
- ✓ npm version (dynamic)
- ✓ CI status (dynamic)
- ⚠ License badge (static but OK)
### Links
- ✓ 45 internal links valid
- ✗ 2 broken links found:
- docs/guide.md:23 → [missing.md](missing.md)
- README.md:45 → https://old-url.com
### Build
- ✓ mkdocs build successful (0.8s)
- ⚠ 1 warning: [warning text]
### Deployment Status
- [ ] Pending user confirmation
- [ ] Git commit
- [ ] Push to origin
- [ ] GitHub Actions
- [ ] Live verification
### Actions Required
1. Fix broken link in docs/guide.md:23
2. Update old URL in README.md:45
This command integrates with existing skills:
doc-management - For commit message standardsdata-wise-documentation - For Data-Wise specific checksgh) required for deployment monitoring--skip-deploy argument to only run validation without deployment--quick argument to skip link validation and preview/docs-check # Full check with deployment
/docs-check --quick # Quick validation only
/docs-check --skip-deploy # Validate but don't deploy