Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

moai-workflow-testing

БесплатноБез исполняемых скриптовНе проверен

Use when writing tests, measuring coverage, or running characterization, performance, or PR-review QA. Comprehensive specialist combining DDD testing…

modu-aiот modu-ai★ 1 264 звезды на GitHub

Об этом скилле

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 CLAUDE.md per modified dir + summarize PR
  3. Parallel Review (5 Sonnet agents): CLAUDE.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 Configur

Полный SKILL.md на GitHub

Установить moai-workflow-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash(pytest:*)
Bash(ruff:*)
Bash(npm:*)
Bash(npx:*)
Bash(node:*)
Bash(jest:*)
Bash(vitest:*)
Bash(go:*)
Bash(cargo:*)
Bash(mix:*)
Bash(uv:*)
Bash(bundle:*)
Bash(php:*)
Bash(phpunit:*)
Grep
Glob

Вложенные файлы

modules/INDEX.mdmodules/advanced-patterns.mdmodules/ai-debugging.mdmodules/automated-code-review.mdmodules/automated-code-review/review-workflows.mdmodules/automated-code-review/trust5-framework.mdmodules/automated-code-review/trust5-framework/relevance-analysis.mdmodules/automated-code-review/trust5-framework/safety-analysis.mdmodules/automated-code-review/trust5-framework/scoring-algorithms.mdmodules/automated-code-review/trust5-framework/timeliness-analysis.mdmodules/automated-code-review/trust5-framework/truthfulness-analysis.mdmodules/automated-code-review/trust5-framework/usability-analysis.mdmodules/code-review/analysis-patterns.mdmodules/code-review/core-classes.mdmodules/code-review/tool-integration.mdmodules/ddd/core-classes.mdmodules/debugging/debugging-workflows.mdmodules/debugging/error-analysis.mdmodules/optimization.mdmodules/performance-optimization.mdmodules/performance-optimization/ai-optimization.mdmodules/performance-optimization/bottleneck-detection.mdmodules/performance-optimization/optimization-plan.mdmodules/performance-optimization/profiler-core.mdmodules/performance-optimization/real-time-monitoring.mdmodules/performance/optimization-patterns.mdmodules/performance/profiling-techniques.mdmodules/quality-metrics.mdmodules/refactoring/ai-workflows.mdmodules/refactoring/patterns.mdmodules/security-analysis.mdmodules/smart-refactoring.mdmodules/static-analysis.mdmodules/trust5-validation.mdreferences/e2e-desktop-native-recipes.mdreferences/examples.mdreferences/integration-patterns.mdreferences/multi-language-support.mdreferences/playwright-best-practices.mdreferences/pr-review-multi-agent.md

FAQ

Что делает скилл 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?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл moai-workflow-testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить moai-workflow-testing с