constitution
БесплатноБез исполняемых скриптовНе проверенCreate or update the project constitution - personalized governance and coding principles. Use when starting a project or updating project standards. Triggers…
от ArvorCo★ 100 звёзд на GitHubОб этом скилле
Project Constitution Generator
Create a personalized project constitution that defines your team's coding principles, patterns, and governance.
The Job
- Ask the user about their project's coding philosophy and standards
- Analyze the project structure and documentation
- Generate personalized constitution based on their answers →
relentless/constitution.md - Generate personalized agent prompt based on the same analysis →
relentless/prompt.md - Ensure consistency with project templates and documentation
Important: The constitution is the foundation for all feature work - create this before generating features.
Upgrade Detection (For Existing Users)
If relentless/constitution.md and/or relentless/prompt.md already exist:
Step 0: Check for Template Updates
Read current files:
- Check version in existing constitution.md (look for
<!-- TEMPLATE_VERSION: X.Y.Z -->or**Template Version:**) - Check generated date in existing prompt.md
- Check version in existing constitution.md (look for
Compare with templates:
- Read
.claude/skills/constitution/templates/constitution.md - Read
.claude/skills/constitution/templates/prompt.md - Check template VERSION comments for changes
- Read
Detect changes:
- If template version > existing version → Offer upgrade
- If template has new sections → Offer selective merge
- If quality commands changed → Offer prompt.md refresh
Offer upgrade options:
## Upgrade Available Your constitution.md is v2.0.0, template is v2.1.0. Changes in v2.1.0: - Added SpecKit workflow documentation - Enhanced TDD requirements - Added quality gates section Options: A. Full upgrade (backup existing, apply template changes) B. Selective merge (show diff, choose sections) C. Skip upgrade (keep existing) D. Regenerate from scratch (lose customizations)If upgrading:
- Backup existing files to
*.backup - Apply template changes preserving customizations
- Update version number
- Update
LAST_AMENDED_DATEto today
- Backup existing files to
Step 1: Gather Project Information
Ask essential questions about the project:
Project Identity:
- Project name?
- Primary programming language(s)?
- Tech stack (frameworks, libraries)?
Testing Philosophy:
- Testing approach? (TDD, test after, pragmatic)
- Required test coverage?
- Testing frameworks preferred?
Code Quality:
- Linting/formatting tools?
- Required checks before commit? (typecheck, lint, test)
- Code review requirements?
Architecture Principles:
- Preferred patterns? (MVC, clean architecture, etc.)
- Modularity requirements?
- Performance expectations?
Version Control:
- Branch naming conventions?
- Commit message format?
- CI/CD requirements?
Step 2: Generate Constitution
Load the template from templates/constitution.md and:
- Replace all
[PLACEHOLDER]tokens with concrete values from user answers - Add/remove principles based on project needs (template is a starting point)
- Ensure each principle has:
- MUST rules (enforced, blocking)
- SHOULD rules (best practices, warnings)
- Clear rationale
- Set version to
1.0.0for new constitutions - Set ratification date to today
- Add governance section with amendment procedures
Step 3: Analyze Project Structure
Read and analyze project documentation:
Core Files:
README.md- Project overview, setup instructionsAGENTS.mdorCLAUDE.md- Developer guidelinespackage.json- Scripts, dependencies, tech stackCONTRIBUTING.md- Contribution workflow (if exists)
Extract:
- Tech stack (TypeScript, React, Node, etc.)
- Testing framework (vitest, jest, playwright)
- Quality commands (
typecheck,lint,test) - Build system (bun, npm, turbo, vite)
- Linting setup (eslint, biome)
- File structure patterns
Step 4: Generate Personalized Prompt
Load the base template from templates/prompt.md and personalize it:
Must include spec/plan/tasks awareness so the agent reads spec.md and plan.md in full before execution, and reads only the relevant user story section from tasks.md for the current story.
Base Template Location: templates/prompt.md
Create a personalized prompt.md with:
Section 1: Quality Gates
## CRITICAL: Quality Gates (Non-Negotiable)
Before marking ANY story as complete:
\`\`\`bash
# TypeScript (detected from package.json)
[actual typecheck command from package.json scripts]
# Linting (detected from package.json)
[actual lint command from package.json scripts]
# Tests (detected from package.json)
[actual test command from package.json scripts]
\`\`\`
**If ANY check fails, DO NOT mark the story as complete.**
Section 2: Project-Specific Patterns (from README/AGENTS.md)
- Monorepo structure (if applicable)
- Component locations
- Test file patterns
- Database/backend info
- Styling approach
Section 3: TDD Workflow (MANDATORY)
- Test-first wo
Установить constitution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл constitution?
Create or update the project constitution - personalized governance and coding principles. Use when starting a project or updating project standards. Triggers on: create constitution, update principles, set project rules.
Как установить скилл constitution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 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