moai-workflow-testing

Orchestrates DDD testing, debugging, performance profiling, and TRUST 5 code review workflows.

2|Updated May 27, 2026
One-click install
npx skills add https://github.com/yekinya/moai-novel --skill moai-workflow-testing-yekinya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-workflow-testing
Source: https://github.com/yekinya/moai-novel/tree/main/moai-novel/.claude/skills/moai-workflow-testing
Command: npx skills add https://github.com/yekinya/moai-novel --skill moai-workflow-testing-yekinya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? It unifies fragmented development quality tasks—writing characterization tests for legacy code, debugging errors, profiling performance, and reviewing pull requests—into one consistent workflow with enforceable quality gates. ## Core Features & Use Cases - DDD Testing: Generate characterization tests to preserve legacy behavior during refactoring and specification tests for greenfield domain code, following the ANALYZE-PRESERVE-IMPROVE cycle. - TRUST 5 Code Review: Score code across Testability, Readability, Understandability, Security, and Transparency, with a multi-agent PR review pattern using Haiku eligibility checks and five parallel Sonnet reviewers with confidence scoring. - Debugging & Performance: Classify errors by type, generate ranked fix suggestions, and profile CPU, memory, and I/O bottlenecks across Python, JavaScript, Go, Rust, and other stacks. - Use Case: Before merging a pull request, run the workflow to execute the test suite with coverage thresholds, scan for security issues like logged passwords, and post only high-confidence review findings via the GitHub CLI. ## Quick Start Ask the agent to write characterization tests for a legacy module and run the full quality workflow with TRUST 5 validation before refactoring it.

Frequently Asked Questions about moai-workflow-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write characterization tests for legacy code before refactoring?

Characterization tests capture what the code currently does, not what it should do. Follow the PRESERVE phase: write tests documenting existing behavior, record input-output snapshots for complex scenarios, verify all tests pass, then refactor while keeping them green.

What is the TRUST 5 framework for code review?

TRUST 5 is a quality assessment model scoring code across five dimensions: Testability, Readability, Understandability, Security, and Transparency. Scores are combined with weighted averaging, and critical issues in any dimension can override the average to block progression.

How does the multi-agent PR review pattern work?

A Haiku agent first filters out closed, draft, or trivial PRs. Then five parallel Sonnet agents check CLAUDE.md compliance, obvious bugs, git history, previous comments, and comment accuracy. Issues scoring below 80 confidence are filtered before posting via the gh CLI.

Which programming languages and test frameworks are supported?

The workflow supports Python with pytest, JavaScript and TypeScript with Jest or Vitest, Go with go test, Rust with cargo test, plus Elixir, PHP, and Ruby toolchains. Each language pairs with matching static analysis and security scanning tools.

What coverage threshold and quality gates does the workflow enforce?

Default quality gates require an 85 percent coverage threshold for changed packages, a minimum TRUST score around 0.85, and zero critical issues. Gates can run in strict, standard, or lenient modes depending on project requirements.

Why do my tests pass locally but fail in CI?

Environment differences between local machines and CI runners cause CI-only failures. The workflow guidance is to trust CI output over local runs, fix flaky tests instead of re-running them, and verify stability with repeated executions such as -count=3.