شعار Quality Gates

Quality Gates

المجتمع
cubetribe
quality-gates

نموذج بوابات للتحقق بما يتناسب مع الأدلة بعد @builder — تُشغّل الخطافات الحتمية دائمًا، ولا يُستخدم @tester إلا عندما يعلن السبرنت عن ux_gate: auto، ويُستخدم @security في واجهات الأمان، و/code-review عند وجود مخاطر أو شك.

Add to TypingMind

نظرة عامة

الناشرcubetribe
المستودعClaudeCode_GodMode-On
اسم المهارةquality-gates
النجوم
54
التفريعات
10
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Quality Gates (Verification Matches the Evidence)

After @builder completes, "checks" means, per Core Rule 5:

  1. Deterministic checks — always. Typecheck, lint, tests, build, run by hook. A compiler result is a fact, not a second opinion, and it costs no context when it passes.
  2. UX gate — when the sprint declared ux_gate: auto. @tester.
  3. Security gate — on security surfaces. @security (auth code, secrets handling, .github/workflows/).
  4. Review pass — on risk or doubt. Pull the /code-review skill. No standing agent re-reads the same diff.

Whichever of 2–4 apply run in PARALLEL:

  • All APPROVED -> continue to @scribe
  • Any BLOCKED -> back to @builder with merged feedback

Execution Pattern

                    @builder completes
                           │
                 ┌─────────┴──────────┐
                 ▼                    ▼
        ┌─────────────────┐   (parallel, only if applicable)
        │ Deterministic    │   ┌──────────┐ ┌───────────┐ ┌──────────────┐
        │ hook (always)    │   │ @tester  │ │ @security │ │ /code-review │
        │ typecheck/lint/  │   │ if       │ │ if        │ │ if risk or   │
        │ tests/build      │   │ ux_gate: │ │ security  │ │ doubt        │
        │ 0 bytes on pass  │   │ auto     │ │ surface   │ │              │
        └────────┬─────────┘   └────┬─────┘ └─────┬─────┘ └──────┬───────┘
                 │                  │              │               │
                 └──────────────────┴──────────────┴───────────────┘
                                     SYNC POINT
                                         │
                              Apply Decision Matrix

Decision Matrix

Every gate that ran for this sprint MUST report before the matrix applies:

Deterministic hook@tester (if run)@security (if run)/code-review (if run)NEXT ACTION
PASSAPPROVED/skipAPPROVED/skipAPPROVED/skipPROCEED to @scribe
FAIL———RETURN to @builder with hook output
PASSBLOCKEDanyanyRETURN to @builder (with @tester feedback)
PASSanyBLOCKEDanyRETURN to @builder (with @security feedback)
PASSanyanyBLOCKEDRETURN to @builder (with review feedback)
PASSmultiple BLOCKEDRETURN to @builder with MERGED feedback

Rules:

  • You MUST wait for every gate that applies to this sprint before deciding.
  • @scribe can ONLY be called when every gate that ran is APPROVED (or the hook passed and no other gate applied).
  • If ANY gate is BLOCKED → back to @builder with specific feedback.
  • Escalation follows docs/orchestrator/META-DECISIONS.md's Tier 1 self-resolution: max 2 attempts, same agent, same scope, before Tier 2 (orchestrator resolution).

Deterministic Hook (Always)

CheckToolBlocking?
TypeScript / language compilationnpx tsc --noEmit (or project equivalent)YES
Unit tests passnpm test (or project equivalent)YES
Build succeedsproject build commandYES
Code style / lintingnpm run lintNO (warning only)

Runs via hook, not a subagent — a compiler or test runner result is a fact, not a second opinion. Emits 0 bytes of context on success; output only on failure. Project-detection is required: the hook must recognize what kind of project it is running in (Node/TS, Swift, Flutter, other) and pass through cleanly on unknown project types instead of blocking.

@tester Gate (when ux_gate: auto)

Runs only when the sprint frontmatter declares ux_gate: auto (see docs/templates/SPRINT_TEMPLATE.md). Default is human; skip when the write scope has no UI paths. If the playwright MCP is unreachable, the sprint falls back to human and logs it — it does not block.

CheckToolBlocking?
E2E tests passPlaywright MCPYES
Screenshots at 3 viewportsPlaywright MCPYES
Console errors capturedBrowser consoleYES (errors only)
WCAG 2.1 AA compliancea11y checksYES
Core Web VitalsLCP, CLS, INP, FCPNO (warning if poor)

Screenshot viewports: 375×667 (mobile), 768×1024 (tablet), 1920×1080 (desktop).

Minimum output: 800 characters Required sections: Summary, Screenshots Table, Console Errors, Performance Metrics, Verdict

@security Gate (on security surfaces)

Runs on auth code, secrets handling, .github/workflows/, and other security-sensitive surfaces flagged by the sprint's risk signals. Opens evidence @builder did not have (threat-modeling read of the diff), so it stays a model pass, not a hook.

Review Pass (/code-review, on risk or doubt)

Pulled on demand when risk or doubt about code judgment warrants a second read of the diff — never as a standing agent. This is the replacement for the judgment portion of the former @validator: a compiler is a fact, but naming, structure, and maintainability calls need a model pass, invoked only when it is worth the cost.

Judgment-class decisions (architecture choice between valid alternatives, design taste, malformed-request suspicion) remain mandatory human escalations regardless of how many of the gates above pass — see docs/orchestrator/QUALITY-GATES.md for the full decision matrix. Unanimous agreement among same-tier agents on a judgment question is correlated evidence, not independent evidence, and does not waive the human escalation.

Fail-Safe (Graceful Degradation)

If a gate agent crashes (MCP failure, timeout):

  1. Full Report — Normal operation, all checks pass
  2. Partial Report — Some checks completed, others failed/timed out
  3. Failure Report — Agent crashed, structured error output

Failure report includes: error type, suggested action (retry/escalate/skip), completion percentage.

Agent Return Contract

Each agent that ran writes a full report to reports/vX.Y.Z/sprint-NN/<NN>-<agent>-report.md (canonical numbering: docs/templates/REPORT_TEMPLATES.md) if it holds Write; read-only agents return their verdict and whoever dispatched them persists it. The return message to the Orchestrator is the structured verdict only — separate from the on-disk report.

STATUS: APPROVED | BLOCKED | DONE
- finding 1 (one line max)
- finding 2
- finding 3
report: <absolute path to full report>

Important: scripts/validate-agent-output.js enforces min-length on the file, not the return message, for agents that still hold Write. This contract does not change validation behavior.


CC_GodMode — © 2025–2026 Dennis Westermann (dennis-westermann.de). Proprietary — not open source. Free for private, non-commercial use; redistribution or re-hosting outside GitHub is prohibited; attribution required. Official source: github.com/cubetribe/ClaudeCode_GodMode-On. See LICENSE.

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

ماذا تفعل مهارة الذكاء الاصطناعي Quality Gates؟

نموذج بوابات للتحقق بما يتناسب مع الأدلة بعد @builder — تُشغّل الخطافات الحتمية دائمًا، ولا يُستخدم @tester إلا عندما يعلن السبرنت عن ux_gate: auto، ويُستخدم @security في واجهات الأمان، و/code-review عند وجود مخاطر أو شك.

لماذا تستخدم Quality Gates على TypingMind؟

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

كيف أثبّت Quality Gates في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/cubetribe/ClaudeCode_GodMode-On/tree/main/skills/quality-gates. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Quality Gates؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Quality Gates؟

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

هل مهارة الذكاء الاصطناعي Quality Gates مجانية؟

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

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

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

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

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

عرض الكل

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

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