constitution — скилл для Claude Code: правила проекта
Скилл constitution для Claude Code изучает существующий код и готовит конституцию проекта с правилами управления. Фиксирует практики команды со ссылками на файлы и строки.
MIT ★ 587 обновлён 2026-10-26
/plugin marketplace add rsmdt/the-startup
/plugin install start@the-startupЧто делает constitution
Скилл проверяет, есть ли в корне проекта CONSTITUTION.md. Если файла нет, берёт за основу template.md; если он есть, разбирает действующие правила и готовит обновление. Укажите области внимания, чтобы направить поиск на нужные аспекты проекта.
Поиск поручается специализированным субагентам: они одновременно изучают подходящие перспективы и подкрепляют выводы ссылками на файлы и строки. Затем скилл убирает дубли, распределяет правила по категориям и уровням L1, L2 или L3. Каждое предлагаемое правило должно иметь конкретное подтверждение в коде.
До записи нужно одобрить правила или попросить изменить их; можно также отменить работу. После одобрения скилл создаёт или обновляет CONSTITUTION.md, а затем предлагает запустить проверку через скилл в режиме constitution. Без вашего согласия файл не записывается.
Какие задачи решает
- зафиксировать правила проекта по фактическим паттернам кода
- обновить существующую
CONSTITUTION.mdновыми правилами - подкрепить каждое правило ссылкой на файл и строку
- разделить требования на уровни L1, L2 и L3
Примеры запросов агенту
- Запусти
/constitutionи изучи правила проекта по безопасности и тестированию. - Обнови конституцию проекта, опираясь на архитектурные паттерны в коде.
- Подготовь правила для проекта, покажи подтверждения по файлам и строкам, но дождись моего одобрения перед записью.
Как установить constitution
1Через маркетплейс плагинов
/plugin marketplace add rsmdt/the-startup/plugin install start@the-startupКоманда ставит плагин start целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add rsmdt/the-startup --skill constitution -a claude-code3Вручную: положить файлы
~/.claude/skills/constitution/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/constitution/
1Через Skills CLI (Vercel)
npx skills add rsmdt/the-startup --skill constitution -a codex2Вручную: положить файлы
.agents/skills/constitution/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add rsmdt/the-startup --skill constitution -a cursor2Вручную: положить файлы
.cursor/skills/constitution/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install rsmdt/the-startup plugins/start/skills/constitution2Вручную: положить файлы
.github/skills/constitution/SKILL.md1Через Skills CLI (Vercel)
npx skills add rsmdt/the-startup --skill constitution -a gemini-cli2Командой платформы
gemini skills install https://github.com/rsmdt/the-startup --path plugins/start/skills/constitutionВручную: положить файлы
.devin/skills/constitution/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о constitution
Как установить constitution в Claude Code?
В Claude Code добавьте маркетплейс командой /plugin marketplace add rsmdt/the-startup, затем установите плагин командой /plugin install start@the-startup.
Что делает скилл constitution?
Он изучает проект и предлагает правила для CONSTITUTION.md, каждое с уровнем и подтверждением в виде файла и строки. Запись происходит после одобрения.
Можно ли обновить уже существующую конституцию проекта?
Да. Если в корне есть CONSTITUTION.md, скилл разбирает её правила и после одобрения объединяет их с новыми.
Исходный текст
SKILL.md · MIT
---
name: constitution
description: Create or update a project constitution with governance rules. Uses discovery-based approach to generate project-specific rules.
user-invocable: true
argument-hint: "optional focus areas (e.g., 'security and testing', 'architecture patterns for Next.js')"
---
## Persona
Act as a governance orchestrator that coordinates parallel pattern discovery to create project constitutions.
**Focus Areas**: $ARGUMENTS
## Interface
Rule {
level: L1 | L2 | L3 // Must (autofix) | Should (manual) | May (advisory)
category: string // Security, Architecture, CodeQuality, Testing, or custom
statement: string // the rule itself
evidence: string // file:line references supporting the rule
}
State {
focusAreas = $ARGUMENTS
perspectives = [] // from reference/perspectives.md
existing: boolean
discoveries: Rule[]
}
## Constraints
**Always:**
- Delegate all discovery to specialist agents.
- Launch all applicable discovery perspectives simultaneously in a single response.
- Discover actual codebase patterns before proposing rules.
- Present discovered rules for user approval before writing.
- Classify every rule with a level (L1/L2/L3).
- Every proposed rule must cite specific file:line evidence.
## Reference Materials
- reference/perspectives.md — discovery perspectives and focus area mapping
- reference/rule-patterns.md — level system, rule types, scope patterns
- reference/output-format.md — update mode options and presentation guidelines
- reference/scenarios.md — create, create with focus, and update scenarios
- examples/output-example.md — expected output format
- examples/CONSTITUTION.md — complete constitution example
- template.md — constitution template
## Workflow
### 1. Check Existing
match (CONSTITUTION.md at project root) {
exists => read and parse existing rules, route to update flow
not found => read template.md, route to creation flow
}
### 2. Discover Patterns
Read reference/perspectives.md. Select applicable perspectives based on $ARGUMENTS.
Launch parallel agents for each perspective. Each agent explores the codebase and returns proposed Rules with evidence.
### 3. Synthesize
Process discoveries:
1. Deduplicate overlapping patterns.
2. Classify each rule with level (L1/L2/L3) per reference/rule-patterns.md.
3. Group by category.
### 4. Present Rules
Read reference/output-format.md and format proposed rules accordingly.
Ask the user to choose: Approve rules | Modify before saving | Cancel
### 5. Write Constitution
match (existing) {
true => merge approved rules into existing CONSTITUTION.md
false => write new CONSTITUTION.md from template + approved rules
}
Display constitution summary per reference/output-format.md.
### 6. Validate
Ask the user to choose: Run validation now | Skip
match (choice) {
validate => use the validate skill in constitution mode
skip => done
}
© Rudolf S. · MIT · rsmdt/the-startup