speckit-constitution
Что он делает
Этот скилл помогает команде написать или обновить конституцию проекта, то есть набор основных принципов, которые определяют, как планируется работа. Он нужен командам, которые используют метод Spec Kit.
Когда использовать
- ✓Когда начинается новый проект и команде нужно записать свои руководящие принципы.
- ✓Когда существующие принципы изменились и шаблоны планирования проекта должны соответствовать им.
- ✓Когда вы хотите, чтобы ИИ превратил ваши черновые правила в понятную письменную конституцию.
Ссылка на скилл
https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-constitution/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Помоги написать конституцию проекта с нашими основными принципами и обнови шаблоны планирования под нее.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл берет ваши принципы или спрашивает их и записывает в конституцию. Затем он проверяет связанные шаблоны, чтобы они оставались согласованными.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Pre-Execution Checks
Check for extension hooks (before constitution update):
- Check if
.specify/extensions.ymlexists in the project root. - If it exists, read it and look for entries under the
hooks.before_constitutionkey - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
- Filter out hooks where
enabledis explicitlyfalse. Treat hooks without anenabledfield as enabled by default. - For each remaining hook, do not attempt to interpret or evaluate hook
conditionexpressions:- If the hook has no
conditionfield, or it is null/empty, treat the hook as executable - If the hook defines a non-empty
condition, skip the hook and leave condition evaluation to the HookExecutor implementation
- If the hook has no
- When constructing slash commands from hook command names, replace dots (
.) with hyphens (-). For example,speckit.git.commit→/speckit-git-commit. - For each executable hook, output the following based on its
optionalflag:- Optional hook (
optional: true):## Extension Hooks **Optional Pre-Hook**: {extension} Command: `/{command}` Description: {description} Prompt: {prompt} To execute: `/{command}` - Mandatory hook (
optional: false):## Extension Hooks **Automatic Pre-Hook**: {extension} Executing: `/{command}` EXECUTE_COMMAND: {command} Wait for the result of the hook command before proceeding to the Outline.
- Optional hook (
- If no hooks are registered or
.specify/extensions.ymldoes not exist, skip silently
Outline
You are updating the project constitution at .specify/memory/constitution.md. This file is a TEMPLATE containing placeholder tokens in square brackets (e.g. [PROJECT_NAME], [PRINCIPLE_1_NAME]). Your job is to (a) collect/derive concrete values, (b) fill the template precisely, and (c) propagate any amendments across dependent artifacts.
Note: If .specify/memory/constitution.md does not exist yet, it should have been initialized from .specify/templates/constitution-template.md during project setup. If it's missing, copy the template first.
Follow this execution flow:
Load the existing constitution at
.specify/memory/constitution.md.- Identify every placeholder token of the form
[ALL_CAPS_IDENTIFIER]. IMPORTANT: The user might require less or more principles than the ones used in the template. If a number is specified, respect that - follow the general template. You will update the doc accordingly.
- Identify every placeholder token of the form
Collect/derive values for placeholders:
- If user input (conversation) supplies a value, use it.
- Otherwise infer from existing repo context (README, docs, prior constitution versions if embedded).
- For governance dates:
RATIFICATION_DATEis the original adoption date (if unknown ask or mark TODO),LAST_AMENDED_DATEis today if changes are made, otherwise keep previous. CONSTITUTION_VERSIONmust increment according to semantic versioning rules:- MAJOR: Backward incompatible governance/principle removals or redefinitions.
- MINOR: New principle/section added or materially expanded guidance.
- PATCH: Clarifications, wording, typo fixes, non-semantic refinements.
- If version bump type ambiguous, propose reasoning before finalizing.
Draft the updated constitution content:
- Replace every placeholder with concrete text (no bracketed tokens left except intentionally retained template slots that the project has chosen not to define yet—explicitly justify any left).
- Preserve heading hierarchy and comments can be removed once replaced unless they still add clarifying guidance.
- Ensure each Principle section: succinct name line, paragraph (or bullet list) capturing non‑negotiable rules, explicit rationale if not obvious.
- Ensure Governance section lists amendment procedure, versioning policy, and compliance review expectations.
Consistency propagation checklist (convert prior checklist into active validations):
- Read
.specify/templates/plan-template.mdand ensure any "Constitution Check" or rules align with updated principles. - Read
.specify/templates/spec-template.mdfor scope/requirements alignment—update if constitution adds/removes mandatory sections or constraints. - Read
.specify/templates/tasks-template.mdand ensure task cate
- Read
Частые вопросы
Что такое конституция проекта?
Это короткий документ с основными принципами, которым команда соглашается следовать при планировании и создании работы.
Может ли он работать с моими заметками?
Да. Скилл может использовать принципы, которые вы дали, или спросить их у вас в интерактивном режиме.
Зачем обновлять другие шаблоны?
Скилл поддерживает зависимые шаблоны в синхронизации, чтобы принципы применялись одинаково.
Подробности
Оригинальное описание автора
Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
repo: unoplatform/uno
Популярность
- Звёзды на GitHub
- 10k
- Место в рейтинге
- #11998
- Лицензия
- Apache-2.0
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
speckit-analyze
10kПомогает агенту проверить, что спецификация функции, план и список задач согласованы между собой, и указать на пробелы, не меняя никаких файлов.
speckit-checklist
10kПомогает агенту создать свой чек-лист, который проверяет, понятны ли, полны и согласованы ли письменные требования к функции до начала разработки.
speckit-clarify
10kПомогает агенту найти неясные места в спецификации функции, задать до пяти точных вопросов и записать ответы обратно в спецификацию.
speckit-git-commit
10kПозволяет агенту автоматически сохранять текущие изменения в Git после шага Spec Kit, используя настройки коммитов из файла конфигурации проекта.
Похожие скиллы
knowledge-capture
394kУчит агента сохранять решения, предпочтения и ключевые факты в хранилище Knowledge короткими заметками с указанием источника.
knowledge-claim-consolidation
394kПомогает агенту навести порядок в хранилище Knowledge: объединить дубликаты, перенести утверждения на нужные страницы и убрать устаревшие.
knowledge-correct
394kПозволяет агенту исправить или отозвать конкретное сохраненное утверждение или страницу Knowledge по вашей просьбе и вести запись изменений.