شعار Speq Spec Merge

Speq Spec Merge

المجتمع
marconae
speq-spec-merge

Delta-merge procedure — DELTA marker semantics, library-organization thresholds, and ADR-promotion field mapping. Used by /speq-record when recording a plan's deltas.

نظرة عامة

الناشرmarconae
المستودعspeq-skill
اسم المهارةspeq-spec-merge
النجوم
54
التفريعات
10
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها marconae على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Speq Spec Merge في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/marconae/speq-skill/tree/main/.claude/skills/speq-spec-merge
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/marconae/speq-skill.git /tmp/speq-skill
mkdir -p .claude/skills
cp -r /tmp/speq-skill/.claude/skills/speq-spec-merge .claude/skills/speq-spec-merge
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Speq Spec Merge في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Speq Spec Merge تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Speq Spec Merge بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Spec Merge

Load Plan Context

Read: specs/_plans/<plan-name>/plan.md
List: specs/_plans/<plan-name>/**/spec.md
Read: specs/_plans/<plan-name>/architecture.md (if it exists)

Run speq feature list to see the current permanent spec library.

If architecture.md exists in the plan, run steps 1 and 2 of "Apply Architecture Delta" before any feature merge.

Apply Deltas

For each delta spec at specs/_plans/<plan-name>/<domain>/<feature>/spec.md:

specs/<domain>/<feature>/spec.md exists?
├─ No  → Copy delta (strip markers)
└─ Yes → Merge using markers below

A delta block's anchor is the first non-empty line inside the block. ### Scenario: <name> and ## Background match exactly; # Feature: <name> matches by the prefix # Feature, so a description delta MAY rename the feature.

Scenario-anchor markers (### Scenario: <name> wrapped in the marker):

MarkerAction
DELTA:NEWAppend scenario
DELTA:CHANGEDReplace scenario with same name
DELTA:REMOVEDDelete scenario with same name

Prose-anchor markers (## Background or # Feature: <name> wrapped in the marker):

MarkerAction
DELTA:CHANGEDReplace the whole section (heading plus body) in place. Any line the block omits is deleted from the permanent spec
DELTA:NEWRejected — Background and the description are required sections that always exist
DELTA:REMOVEDRejected — removing a required section produces an invalid spec

After each merge:

  1. Strip all <!-- DELTA:* --> markers
  2. Validate: speq feature validate <domain>/<feature>
  3. If validation fails, stop and report. Do not guess fixes

Apply Architecture Delta

The optional file specs/_plans/<plan-name>/architecture.md changes specs/architecture.md. The speq CLI does not see it, so you apply it by hand. Its format is defined in /speq-plan's references/architecture-delta-template.md. The target format is defined in /speq-plan's references/architecture-template.md.

  1. Pre-check (read-only), before any feature merge.
    • No delta file: report Architecture: no delta and skip the rest of this section.
    • Otherwise check: the H1 is # Architecture Delta: <plan-name>, DELTA markers are balanced, each block's first non-empty line is ## <Section> and is its only ## line, no two blocks share an anchor, and only legal kinds are used (NEW and REMOVED on non-canonical sections only).
    • Check that specs/architecture.md exists, that each CHANGED and REMOVED anchor exists in it, and that no NEW anchor exists in it.
    • Check the line rules: outside blocks only the H1, the BASE comment, and blank lines. Inside blocks only - bullets, fenced blocks, and blank lines. No ###, no tables, no prose paragraphs.
  2. Base check. Run git hash-object specs/architecture.md and compare it with the BASE comment. If they match, continue. If they differ, run git cat-file -p <BASE> and compare each CHANGED and REMOVED section with the same section in the current file. A differing section, or a missing blob, stops the record with a stale-base error. Both commands are read-only and fit /speq-git-discipline. A stale BASE would overwrite another plan's changes.
  3. Feature merges. Run "Apply Deltas" as usual.
  4. Merge. Build the merged text in memory. CHANGED replaces the heading and body up to the next ##, and any line the block omits is deleted. NEW appends the section at the end. REMOVED deletes the section. Strip all DELTA markers. Write the file once.
  5. Post-check. The H1 is # Architecture. The six canonical sections appear once each, in order. No ## heading is duplicated. No DELTA text is left. The line rules hold. On failure, restore the original text, report the failure, and do not archive.
  6. Re-entry. Check this before step 1. A threshold respawn runs this section again after the delta was applied. The delta is applied when each CHANGED section in specs/architecture.md already equals its block body, each NEW section exists with its block body, and each REMOVED section is gone. In that case skip steps 1, 2, 4, and 5, run step 3, and report Architecture: already merged.
  7. Continue with the thresholds, ADR promotion, and Finalize. The mv in Finalize archives the delta with the plan.

Failure format: Recording failed: architecture delta: architecture.md:<line>: <rule>.

Report line: Architecture: § Components (CHANGED), § Deployment (NEW), or Architecture: no delta. List the lines each CHANGED block removed, so the user can spot an accidental deletion.

Check Library Thresholds

After all merges:

MetricThresholdAction
Scenarios per spec>10Return to orchestrator for user decision
Domain features>8Return to orchestrator for user decision

Never assume: library reorganization is a user decision. Return a concrete question to the orchestrator.

Promote ADRs to Permanent Decision Log

Read specs/_plans/<plan-name>/decision-log.md (if it exists).

For each entry where Promotes to ADR: yes:

  1. Convert to ADR format using /speq-plan's references/decision-log-permanent-template.md:

    • Title — from the decision entry heading
    • ID — a kebab-case slug derived from the title; MUST be unique across every file in specs/_decision/
    • Plan — <plan-name>
    • Status — Accepted. Recording the plan is the acceptance, per /speq-adr-rules
    • Supersedes (optional) — if the entry carries a Supersedes line, copy that slug. Check that it names an existing ADR slug
    • Context — one or two sentences from the entry's Rationale: the situation that forces the decision, stated as present fact. No history of how the plan reached it, per /speq-adr-rules rule 7a. Do not copy Rationale or Alternatives prose
    • Decision — from the entry's Decision bullet, in one to three sentences
    • Options Considered — emit this section ONLY when the entry's Alternatives names a real rejected option (not none, not empty). Never infer it from prose elsewhere in the entry
    • Consequences — emit this section ONLY from the entry's own Consequences line, when present. Never infer it from Rationale or any other field
    • The entry's Architecture field is not mapped into the ADR. It states which sections of specs/architecture.md the plan changes, and the merge in "Apply Architecture Delta" already applied them
    • When the entry carries neither (Alternatives is empty/none and there is no Consequences line), the assembled ADR is short-form: field block + ### Context + ### Decision only — no ### Options Considered, no ### Consequences
  2. Write ONE new fragment file specs/_decision/NNN-<plan-name>.md:

    • NNN = (count of existing files in specs/_decision/) + 1, zero-padded to 3 digits
    • H1: # Decisions: <plan-name>
    • Emit one ## ADR: <Title> block per promoted entry, in decision-log order
    • MUST NOT edit any other file in specs/_decision/ — a supersede reference is a one-way pointer from the new ADR's **Supersedes:** field to the target slug
  3. Validate: speq decision-log validate

If decision-log.md is absent or has no "Promotes to ADR: yes" entries, skip silently.

Finalize

  1. Final validation: speq feature validate. If an architecture delta was applied, confirm the post-check of "Apply Architecture Delta" passed
  2. Archive: mv specs/_plans/<plan-name> specs/_recorded/NNN-<plan-name>, where NNN = (count of existing entries in specs/_recorded/) + 1, zero-padded to 3 digits

If a threshold is exceeded, return BEFORE archiving and ask the orchestrator to clarify with the user.

Anti-Patterns

PatternWhy Wrong
Rewriting scenario wording during mergeRecording is a mechanical operation
DELTA:CHANGED or DELTA:REMOVED naming a scenario absent from the target specRejected — record errors instead of silently merging nothing
Heading left outside the marker, so the block's first line is not a recognized anchorRejected — record cannot tell what the block targets
Two delta blocks of one file sharing an anchor, whatever their marker kindsRejected — the merged result would depend on block order; write one block carrying the final text
Writing Status: Proposed on promotionRejected — /speq-record accepts the ADR, per /speq-adr-rules
DELTA:NEW or DELTA:REMOVED on a canonical architecture sectionRejected — canonical sections always exist; use DELTA:CHANGED
Editing specs/architecture.md beyond the deltaRecording is a mechanical operation

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Speq Spec Merge؟

Delta-merge procedure — DELTA marker semantics, library-organization thresholds, and ADR-promotion field mapping. Used by /speq-record when recording a plan's deltas.

لماذا تستخدم Speq Spec Merge على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Speq Spec Merge عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Speq Spec Merge في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/marconae/speq-skill/tree/main/.claude/skills/speq-spec-merge. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Speq Spec Merge؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Speq Spec Merge؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Speq Spec Merge معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Speq Spec Merge مجانية؟

نعم. نشرها marconae على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل
شعار openclaw

Clawsweeper

openclaw
مؤسسةشائع

استخدم هذا لكل أعمال ClawSweeper: تقارير فحص مشكلات/طلبات سحب OpenClaw، ومهام الإصلاح، وطلبات السحب لإصلاحات السحابة، وأوامر منشن المشرفين @clawsweeper، والإصلاح التلقائي/الدمج التلقائي الموثوق الذي راجعه ClawSweeper، ومراقبة GitHub Actions…

82.2K
391K
الملفات: 1
عرض
شعار openclaw

Control Ui E2e

openclaw
مؤسسةشائع

استخدم هذا عند تصميم واجهة OpenClaw Control UI الرسومية أو اختبارها أو إصلاحها أو توسيعها، بما في ذلك معارض اختبار الإجهاد للواجهة مع مدخلات الملاحظات، وفحوص Vitest + Playwright الشاملة، وتدفقات Gateway المحاكية…

82.2K
391K
الملفات: 1
عرض
شعار openclaw

Deslop

openclaw
مؤسسةشائع

تنظيف مقتصر على تغييرات الفرع من الحشو البرمجي المولّد بالذكاء الاصطناعي: أزِل حشو التعليقات، وفحوص التحوط الزائدة، وتمويه الأنواع، وانحراف الأسلوب من تغييرات الفرع الحالية قبل المراجعة التلقائية.

82.2K
391K
التعليمات
عرض
شعار openclaw

Discord Clawd

openclaw
مؤسسةشائع

استخدم هذا للتواصل مع وكيل/جلسة OpenClaw المتصل بـ Discord؛ وليس للبحث في الأرشيف.

82.2K
391K
الملفات: 1
عرض

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇