speckit-constitution
Skill này làm gì
Skill này giúp một nhóm viết hoặc cập nhật hiến pháp dự án, tức bộ nguyên tắc cốt lõi định hướng cách lập kế hoạch công việc. Skill dành cho các nhóm dùng phương pháp Spec Kit.
Khi nào nên dùng
- ✓Khi một dự án mới bắt đầu và nhóm cần viết ra các nguyên tắc định hướng.
- ✓Khi các nguyên tắc cũ đã thay đổi và các mẫu kế hoạch của dự án cần được cập nhật theo.
- ✓Khi bạn muốn AI biến những quy tắc ghi chép sơ bộ thành một hiến pháp dự án rõ ràng.
Liên kết skill
https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-constitution/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy giúp tôi viết hiến pháp cho dự án với các nguyên tắc chính của chúng tôi, rồi cập nhật các mẫu kế hoạch cho khớp.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill lấy các nguyên tắc của bạn, hoặc hỏi bạn để có chúng, rồi viết vào hiến pháp. Sau đó skill kiểm tra các mẫu liên quan để chúng luôn nhất quán.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Hiến pháp dự án là gì?
Đó là một tài liệu ngắn gồm các nguyên tắc cốt lõi mà nhóm đồng ý tuân theo khi lập kế hoạch và thực hiện công việc.
Skill có dùng được ghi chú của tôi không?
Có. Skill có thể dùng các nguyên tắc bạn cung cấp hoặc hỏi bạn từng phần.
Vì sao phải cập nhật các mẫu khác?
Skill giữ các mẫu phụ thuộc đồng bộ để các nguyên tắc được áp dụng nhất quán.
Chi tiết
Mô tả gốc của tác giả
Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
repo: unoplatform/uno
Độ phổ biến
- Sao GitHub
- 10k
- Vị trí xếp hạng
- #11998
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
speckit-analyze
10kKiểm tra spec tính năng, kế hoạch và danh sách tác vụ có khớp với nhau không và chỉ ra các chỗ thiếu, mà không thay đổi file nào.
speckit-checklist
10kGiúp agent của bạn tạo checklist kiểm tra xem yêu cầu của một tính năng có rõ ràng, đầy đủ và nhất quán trước khi bắt đầu làm.
speckit-clarify
10kGiúp agent của bạn tìm các phần chưa rõ trong bản đặc tả tính năng, hỏi tối đa năm câu hỏi trọng tâm và ghi câu trả lời vào đặc tả.
speckit-git-commit
10kGiúp agent của bạn tự động lưu các thay đổi hiện tại lên Git sau mỗi bước Spec Kit, theo cài đặt commit trong file cấu hình của dự án.
Skill tương tự
knowledge-capture
394kDạy agent của bạn lưu các quyết định, sở thích và sự kiện quan trọng vào kho Knowledge dưới dạng ghi chú ngắn có ghi nguồn.
knowledge-claim-consolidation
394kGiúp agent của bạn dọn gọn kho Knowledge bằng cách gộp các khẳng định trùng lặp, chuyển chúng đến đúng trang chủ đề và loại bỏ những cái lỗi thời.
knowledge-correct
394kCho phép agent của bạn sửa hoặc rút lại một khẳng định hoặc trang Knowledge cụ thể theo yêu cầu của bạn, và giữ nhật ký những gì đã thay đổi.