validate-constitution
БесплатноБез исполняемых скриптовНе проверенValidates code changes against the project's consolidated knowledge and configuration rules. Run on demand (e.g. before pushing) to catch violations of…
Об этом скилле
Constitution Validation Skill
What This Skill Does
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:
- Validate installation script references use the canonical format
- Check internal page linking follows conventions
- Ensure configuration consistency across the codebase
- Report violations with clear fix suggestions
When to Use This Skill
This skill runs on demand only; nothing triggers it automatically (see Enforcement status). Invoke it when:
- You want to validate changes before committing
- Reviewing a PR for constitutional compliance
- Checking if documentation follows standards
Manual Triggers:
- "Validate my changes against the constitution"
- "Check if these files follow our standards"
- "Run constitution validation"
Constitutional Rules
Rule 1: Canonical Installation Script
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 redirects
FORBIDDEN patterns:
# These are all WRONG:
curl -sSL https://caro.sh/install.sh | bash
curl https://caro.sh/install.sh | bash
curl ... | sh
wget ... | bash
Rule 2: Internal Page Linking
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>.
Rule 3: Configuration Consistency
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:
- Hardcoding version numbers in content
- Multiple different install script URLs
- Duplicating config values across files
Validation Workflow
When triggered, the skill:
- Identifies changed files via
git diffor staged changes - Scans for pattern violations using grep/regex
- Reports findings with file:line, violation type, and fix
- Returns status (PASS/FAIL) to the caller
Using the Sub-Agent
For 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."
Enforcement status
Nothing runs this automatically. An earlier version of this section described
a hookify PostPush hook, but Claude Code has no PostPush event,
.claude/settings.json does not reference .claude/hooks/validate-constitution.sh,
and no git pre-push hook is installed. The script also ends in exit 0, so it
warns and never blocks.
Run it by hand: bash .claude/hooks/validate-constitution.sh. Before wiring it
into CI, tune its greps. They currently match the forbidden patterns quoted as
examples in this skill and in .claude/memory/consolidated-knowledge-rules.md.
Manual Validation
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
Remediation Guide
Fixing Installation Script Violations
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)
Fixing Missing Links
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>
Files to Validate
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 configuratio
Установить validate-constitution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobTaskFAQ
Что делает скилл validate-constitution?
Validates code changes against the project's consolidated knowledge and configuration rules. Run on demand (e.g. before pushing) to catch violations of agreed-upon standards like installation scripts, linking patterns, and configuration consistency.
Как установить скилл validate-constitution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл validate-constitution запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic