Runs automated checks on Bookmark Vault code. Use when asked to verify code quality, run checks, or validate the project.
Automated validation and quality checks for Bookmark Vault.
Verifies TypeScript compilation without errors and checks type safety.
./scripts/check-types.shnpx tsc --noEmitValidates component sizes, structure, and pattern compliance.
./scripts/check-components.shRuns test suite and reports coverage metrics.
./scripts/check-tests.shValidates Zod schemas and type coverage.
./scripts/check-validation.shWhen asked to check the project:
Run checks in order
Collect output from each
Report pass/fail status
Summarize issues found
All scripts follow standard conventions:
Exit Codes:
0: All checks passed ā
1: Issues found (non-blocking warnings)2: Critical issues found (blocker errors)Output Format:
[CHECK_TYPE] Status message
PASS: Specific metric (if success)
WARN: Issue detail (if warning)
ERROR: Critical issue (if error)
INFO: Informational stat
# Run all checks
Ask: "Run all checks on bookmark vault"
# Run specific check
Ask: "Run type check on the project"
# Run and report
Ask: "Check the bookmark vault and report any issues"
# Run and fix
Ask: "Run checks and fix any quick issues"
any typesWhen all checks pass:
ā
Type Check: PASS (0 errors, 0 warnings)
ā
Component Check: PASS (72 components, 0 oversized)
ā
Validation Check: PASS (14 schemas, 87.5% coverage)
ā
Test Check: PASS (48 tests, 82% coverage)
Overall Status: ALL CHECKS PASSED š
When issues found:
ā
Type Check: PASS
ā ļø Component Check: WARN (2 components >100 lines)
ā Validation Check: FAIL (7 types missing schemas)
ā ļø Test Check: WARN (coverage below 80% target)
Overall Status: 2 WARNING, 1 FAILURE - Review issues
Add to VS Code tasks.json:
{
"label": "Bookmark Checker",
"type": "shell",
"command": "bash",
"args": ["${workspaceFolder}/.claude/skills/bookmark-checker/scripts/check-types.sh"],
"problemMatcher": ["$tsc"]
}
Add to .git/hooks/pre-commit:
#!/bin/bash
bash ./.claude/skills/bookmark-checker/scripts/check-types.sh
if [ $? -ne 0 ]; then
echo "Type checks failed, aborting commit"
exit 1
fi
Add to GitHub Actions workflow:
- name: Bookmark Checks
run: |
bash .claude/skills/bookmark-checker/scripts/check-types.sh
bash .claude/skills/bookmark-checker/scripts/check-components.sh
bash .claude/skills/bookmark-checker/scripts/check-validation.sh
bash .claude/skills/bookmark-checker/scripts/check-tests.sh
Scripts not executable:
chmod +x ~/.claude/skills/bookmark-checker/scripts/*.sh
Script path errors:
cd to navigate to project rootCommand not found errors:
npm installnpm list typescriptnpm list jestā Use when:
ā Don't use when:
Scripts are version-locked to project at:
tsconfig.jsonjest.config.jscomponents/__tests__/Update scripts if project structure changes.