speckit-constitution
できること
このスキルは、チームがプロジェクトの憲章、つまり作業の計画方法を導く中核の原則の集まりを書いたり更新したりするのを手伝います。Spec Kitの手法を使うチーム向けです。
使う場面
- ✓新しいプロジェクトが始まり、チームが指導原則を書く必要があるとき。
- ✓既存の原則が変わり、プロジェクトの計画のテンプレートを合わせる必要があるとき。
- ✓荒いルールを、明確に書かれた憲章にAIにまとめてほしいとき。
スキルのリンク
https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-constitution/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私たちの主な原則を含むプロジェクトの憲章を書く手伝いをしてください。計画のテンプレートも、それに合わせて更新してください。”
毎週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
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
speckit-analyze
10kエージェントが、機能の仕様、計画、タスクの一覧が互いに一致しているかを確認し、ファイルを変更せずに不足を指摘できるよう支援します。
speckit-checklist
10kエージェントが、機能の要件が構築の前に明確で、完全で、一貫しているかを確かめる、カスタムのチェックリストを作成できるよう支援します。
speckit-clarify
10kエージェントが、機能の仕様のあいまいな部分を見つけ、最大5つの的を絞った質問をし、その回答を仕様に書き戻せるよう支援します。
speckit-git-commit
10kエージェントが、Spec Kitの段階の後に、プロジェクトの設定ファイルのコミット設定を使って、現在の変更を自動的にGitに保存できるよう支援します。