شعار Moai Workflow Testing

Moai Workflow Testing

مؤسسةشائع
modu-ai
moai-workflow-testing

Use when writing tests, measuring coverage, or running characterization, performance, or PR-review QA. Comprehensive specialist combining DDD testing, characterization tests, performance profiling, and TRUST 5 quality-assurance validation.

نظرة عامة

الناشرmodu-ai
المستودعmoai-adk
اسم المهارةmoai-workflow-testing
النجوم
1.2K
التفريعات
226
الملفات المرفقة
43
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • الملفات المرفقة: 43

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-workflow-testing
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/modu-ai/moai-adk.git /tmp/moai-adk
mkdir -p .claude/skills
cp -r /tmp/moai-adk/.claude/skills/moai-workflow-testing .claude/skills/moai-workflow-testing
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Development Workflow Specialist

Quick Reference

Unified development workflow combining DDD (domain-driven development) testing, debugging guidance, performance optimization, automated code review, and CI/CD quality gates. Emphasizes behavior preservation during refactoring through characterization tests.

Core Capabilities:

  • DDD Testing: Characterization tests (legacy) + specification tests (greenfield) + behavior snapshots
  • AI-Powered Debugging: Error analysis, classification, solution candidates
  • Performance Optimization: Profiling, bottleneck detection, optimization recommendations
  • Automated Code Review: TRUST 5 framework validation
  • PR Code Review: Multi-agent pattern (Haiku eligibility + 5 Sonnet parallel reviewers)
  • Quality Assurance: CI/CD integration with quality gates

Workflow Progression: Debug → Refactor → Optimize → Review → Test → Profile

When to Use:

  • Complete development lifecycle management
  • Quality assurance and CI/CD integration
  • Multi-language and performance-critical projects
  • Technical debt reduction
  • PR code review automation

Implementation Guide

Core Concepts

Five integrated components form the workflow:

  • AI-Powered Debugging: Error classification (syntax/runtime/logic/integration/performance) and solution candidates ranked by likelihood
  • Smart Refactoring: Technical debt analysis with complexity metrics and risk assessment
  • Performance Optimization: CPU/memory/IO/network profiling with optimization strategies
  • DDD Testing Management: Characterization tests (PRESERVE phase) for legacy + specification tests for greenfield + TRUST 5 validation
  • Automated Code Review: TRUST 5 framework with actionable recommendations

TRUST 5 Framework

Quality assessment model with five dimensions:

  • Testability: pure functions, injectable dependencies, modular design
  • Readability: descriptive names, logical structure, documented complexity
  • Understandability: clear business logic, appropriate abstractions, conceptual clarity
  • Security: input validation, secret management, OWASP compliance (injection/XSS/CSRF)
  • Transparency: comprehensive error handling, structured logs, traceable issues

Overall score: weighted average with critical-dimension override (security/testability cannot be masked).

See TRUST 5 detailed dimensions and scoring for full assessment rubric.

DDD Testing Process

Legacy Code (PRESERVE phase):

  1. Write characterization tests documenting current behavior (not aspirational)
  2. Organize tests by domain concepts to surface domain boundaries
  3. Use behavior snapshots as regression safeguards for complex scenarios
  4. Verify baseline: all characterization tests PASS before any change
  5. Apply refactoring with continuous test execution
  6. Run TRUST 5 validation post-refactor

Greenfield Development:

  1. Derive specification tests from domain requirements (each test = business rule)
  2. Organize tests by aggregates, entities, value objects (DDD ubiquitous language)
  3. Specify behavior in business language, not implementation details
  4. Implement to satisfy specifications
  5. Verify with integration tests (domain interactions + invariants)
  6. Apply TRUST 5 validation

Debugging, Refactoring, Performance Workflows

All three follow a 6-step pattern: capture/analyze → classify → identify candidates → apply → verify → document.

See debugging/refactoring/performance step-by-step walkthroughs for detailed process tables.

Code Review Process

  1. Scan codebase for review targets
  2. Apply TRUST 5 framework per file
  3. Identify critical issues
  4. Calculate per-file + aggregate scores
  5. Generate prioritized recommendations
  6. Create summary report with improvement roadmap

PR Code Review (Multi-Agent Pattern)

5-step multi-agent pipeline:

  1. Eligibility Check (Haiku): skip closed/draft/already-reviewed/trivial PRs
  2. Context Gathering: find AGENTS.md per modified dir + summarize PR
  3. Parallel Review (5 Sonnet agents): AGENTS.md compliance / obvious bugs / git blame / previous comments / code comment compliance
  4. Confidence Scoring (0-100): 0=false positive, 25=somewhat, 50=moderate, 75=high, 100=certain
  5. Filter & Report: drop issues <80 confidence, post via gh CLI with file/line/commit links

See PR review multi-agent architecture and output format for agent role detail and example output.

Multi-Language Support

Per-language toolchain mappings (Python pytest+ruff+bandit, JS/TS Jest+ESLint+npm audit, Go go test+staticcheck+gosec, Rust cargo test+clippy+gosec equivalents).

See multi-language toolchain reference for per-language testing/lint/security/perf tool inventory.


Advanced Features

Quality Gate Configuration

Three strictness modes:

  • Strict: all TRUST dimensions ≥ threshold, zero critical issues, full coverage
  • Standard: average score ≥ threshold, no critical issues blocking, warnings allowed
  • Lenient: only critical blockers prevent progression

Gate config: per-dimension thresholds, max issues by severity, coverage targets, perf benchmarks.

CI/CD Integration

Four-stage pipeline: Code Quality → Testing → Performance → Security. Each stage terminates pipeline on failure with stage-specific failure report.

See CI/CD integration patterns (GitHub Actions + Docker) for job configuration walkthroughs.

E2E / Browser Testing

Playwright patterns (Page Object Model, cross-browser, visual regression) and documentation-lookup integration. See Playwright best practices.


Modules

Deep-dive modules for each workflow stage. These describe conceptual workflows (not an importable SDK) — apply each with your project's own toolchain. Start at the modules index, or jump to a stage:


Works Well With

  • moai-domain-backend: Backend testing patterns
  • moai-domain-frontend: Frontend UI testing
  • moai-foundation-core: SPEC system integration
  • moai-domain-database / moai-domain-frontend / moai-domain-backend: Platform-specific testing
  • moai-workflow-project: Project management workflows

Status: Production Ready Maintained by: MoAI-ADK Development Workflow Team Version: 2.5.0 (audit remediation: language-neutrality + module re-linking)

Common Rationalizations

RationalizationReality
"This code is already covered by integration tests"Integration tests catch different bugs than unit tests. The testing pyramid exists for a reason.
"Mocking the database is too hard, I will skip that test"If the test is hard to write because of coupling, the code needs a better abstraction boundary.
"80% coverage is good enough"Coverage targets are floors, not ceilings. The missing 20% often contains the error handling paths.
"These are just utility functions, they do not need tests"Utility functions are the most reused code. A bug in a utility propagates everywhere.
"I ran the tests locally, CI will pass"Environment differences cause CI-only failures. Trust CI output, not local runs.
"Flaky tests are normal, just re-run"Flaky tests hide real failures. Fix the flakiness or quarantine the test explicitly.

Shift Left: Find and fix defects as early as possible. Every test that runs in CI instead of locally adds latency. Every test that could have been a unit test but is an E2E test adds fragility.

Beyonce Rule: If you liked it, you should have put a test on it. Untested behavior is unspecified behavior.

Red Flags

  • Coverage report shows decreased coverage after a feature addition
  • Test file contains t.Skip() or skip without an accompanying issue tracker link
  • Test names are auto-generated (test_1, test_2) instead of behavior-descriptive
  • No test touches the error/failure branch of a new function
  • Test file imports the concrete implementation instead of the interface

Verification

  • Test suite passes with zero failures (paste command output)
  • Coverage report generated and meets the 85% threshold for changed packages
  • Error paths have dedicated test cases (not just happy path)
  • No flaky tests introduced (run with -count=3 to verify stability)
  • Test isolation confirmed: each test uses its own fixtures or t.TempDir()
  • Race detector passed for concurrent code (go test -race or equivalent)

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي Moai Workflow Testing؟

Use when writing tests, measuring coverage, or running characterization, performance, or PR-review QA. Comprehensive specialist combining DDD testing, characterization tests, performance profiling, and TRUST 5 quality-assurance validation.

لماذا تستخدم Moai Workflow Testing على TypingMind؟

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

كيف أثبّت Moai Workflow Testing في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-workflow-testing. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Moai Workflow Testing؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Moai Workflow Testing؟

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

هل مهارة الذكاء الاصطناعي Moai Workflow Testing مجانية؟

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

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

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

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

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

عرض الكل

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

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