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 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تأخذ المهارة مبادئك أو تطلبها منك، ثم تكتبها في الدستور. ثم تفحص القوالب المرتبطة للتأكد من بقائها متسقة.
المحتوى التقني (ملف 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
- آخر تحديث
- 2/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 أو سحبها بناءً على طلبك، مع الاحتفاظ بسجل لما تغيّر.