Validates code changes against the project's consolidated knowledge and configuration rules. Use on push to catch violations of agreed-upon standards like installation scripts, linking patterns, and configuration consistency.
This skill validates code changes against the caro project's consolidated knowledge and configuration rules (the "constitution"). It catches violations of agreed-upon standards before they are pushed to the repository.
Key Responsibilities:
This skill is automatically triggered via the PostPush hookify hook. It can also be manually invoked when:
Automatic Triggers:
git push operation (via hookify PostPush)Manual Triggers:
The ONLY authorized installation command is:
bash <(curl --proto '=https' --tlsv1.2 -sSfL https://setup.caro.sh)
Why this specific format?
bash <() - Process substitution is more secure than pipe--proto '=https' - Enforces HTTPS-only connections--tlsv1.2 - Requires TLS 1.2 minimum for security-sSfL - Silent, show errors, fail on HTTP errors, follow redirectsFORBIDDEN patterns:
# These are all WRONG:
curl -sSL https://caro.sh/install.sh | bash
curl https://caro.sh/install.sh | bash
curl ... | sh
wget ... | bash
When referencing other pages within the website, always link properly:
| When mentioning... | Link to... |
|-------------------|------------|
| installation guide, download | /#download |
| FAQ | /faq |
| telemetry, privacy | /telemetry |
| support | /support |
| roadmap | /roadmap |
| credits | /credits |
Example Violation:
<!-- WRONG: No link -->
For other options, see our installation guide.
<!-- CORRECT: Proper link -->
For other options, see our <a href="/#download">installation guide</a>.
Single source of truth for all configuration:
| Configuration | Location |
|--------------|----------|
| Site config | website/src/config/site.ts |
| CLI version | Cargo.toml |
| Install URL | https://setup.caro.sh (only) |
FORBIDDEN:
When triggered, the skill:
git diff or staged changesFor comprehensive validation, invoke the constitution-validator agent:
Task: constitution-validator
Prompt: "Validate the staged changes against constitutional rules. Check for:
1. Installation script violations
2. Missing internal page links
3. Configuration consistency issues
Report all violations with file paths and suggested fixes."
This skill is integrated with hookify via the PostPush hook. The hook:
git push is executedHook Configuration (in .claude/settings.json):
{
"hooks": {
"PostPush": [{
"hooks": [{
"type": "command",
"command": "./.claude/hooks/validate-constitution.sh"
}]
}]
}
}
To manually validate before pushing:
# Check specific files
grep -rn "caro.sh/install.sh" website/
# Check for missing links
grep -rn "see our installation guide" website/ | grep -v "href="
# Full validation via agent
# Use: /skill validate-constitution
Find violations:
grep -rn "curl.*caro.sh/install.sh" .
grep -rn "curl.*|.*bash" .
Replace with canonical command:
bash <(curl --proto '=https' --tlsv1.2 -sSfL https://setup.caro.sh)
Find violations:
grep -rn "see our installation guide" . | grep -v "href="
grep -rn "see the FAQ" . | grep -v "href="
Add proper links:
<a href="/#download">installation guide</a>
<a href="/faq">FAQ</a>
Priority order for validation:
website/src/pages/*.astro - User-facing contentwebsite/src/components/*.astro - Reusable componentsREADME.md - Project entry pointdocs/**/*.md - DocumentationCLAUDE.md - AI guidance.claude/**/*.md - Claude configurationwebsite/src/components/Download.astrowebsite/src/config/site.tsThis skill ensures consistency across all caro project documentation and code, preventing drift from agreed-upon standards.
npx skills add wildcard/validate-constitution下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer