AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Moai Foundation Quality

skill-modu-ai-moai-adk-moai-foundation-quality · by modu-ai

>

No reviews yet
0 installs
31 views
0.0% view→install

Install

$ agentstack add skill-modu-ai-moai-adk-moai-foundation-quality

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-modu-ai-moai-adk-moai-foundation-quality)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Moai Foundation Quality? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Enterprise Code Quality Orchestrator

Enterprise-grade code quality management system that combines systematic code review, proactive improvement suggestions, and automated best practices enforcement. Provides comprehensive quality assurance through TRUST 5 framework validation with Context7 integration for real-time best practices.

Quick Reference (30 seconds)

Core Capabilities:

  • TRUST 5 Validation: Testable, Readable, Unified, Secured, Trackable quality gates
  • Proactive Analysis: Automated issue detection and improvement suggestions
  • Best Practices Enforcement: Context7-powered real-time standards validation
  • Multi-Language Support: 25+ programming languages with specialized rules
  • Enterprise Integration: CI/CD pipelines, quality metrics, reporting

Key Patterns:

  • Quality Gate Pipeline: Automated validation with configurable thresholds
  • Proactive Scanner: Continuous analysis with improvement recommendations
  • Best Practices Engine: Context7-driven standards enforcement
  • Quality Metrics Dashboard: Comprehensive reporting and trend analysis

When to Use:

  • Code review automation and quality gate enforcement
  • Proactive code quality improvement and technical debt reduction
  • Enterprise coding standards enforcement and compliance validation
  • CI/CD pipeline integration with automated quality checks

Quick Access:

  • TRUST 5 Framework: See [trust5-validation.md](modules/trust5-validation.md)
  • Proactive Analysis: See [proactive-analysis.md](modules/proactive-analysis.md)
  • Best Practices: See [best-practices.md](modules/best-practices.md)
  • Integration Patterns: See [integration-patterns.md](modules/integration-patterns.md)

Implementation Guide

Getting Started

Basic Quality Validation: Initialize QualityOrchestrator with trust5enabled, proactiveanalysis, bestpracticesenforcement, and context7integration all set to True. Call analyzecodebase method with path parameter set to source directory, languages list including python, javascript, and typescript, and quality_threshold of 0.85. The method returns comprehensive quality results.

For quality gate validation with TRUST 5, create QualityGate instance and call validatetrust5 with codebasepath, testcoveragethreshold of 0.90, and complexity_threshold of 10.

Proactive Quality Analysis: Initialize ProactiveQualityScanner with context7client and BestPracticesEngine ruleengine. Call scancodebase with path and scantypes list including security, performance, maintainability, and testing. Generate recommendations by calling generaterecommendations with issues, priority set to high, and autofix enabled.

Core Components

Quality Orchestration Engine

The QualityOrchestrator class provides enterprise quality orchestration with TRUST 5 framework. Initialize with QualityConfig and create instances of TRUST5Validator, ProactiveScanner, BestPracticesEngine, Context7Client, and QualityMetricsCollector.

The analyze_codebase method performs comprehensive analysis in four phases. Phase 1 runs TRUST 5 validation on the codebase with specified thresholds. Phase 2 performs proactive analysis scanning focus areas. Phase 3 checks best practices for specified languages with Context7 docs enabled. Phase 4 collects comprehensive metrics from all analysis results.

The method returns QualityResult containing trust5validation, proactiveanalysis, bestpractices, metrics, and overallscore calculated from all results.

Detailed implementations available in modules:

  • TRUST 5 Validator Implementation in [trust5-validation.md](modules/trust5-validation.md)
  • Proactive Scanner Implementation in [proactive-analysis.md](modules/proactive-analysis.md)
  • Best Practices Engine Implementation in [best-practices.md](modules/best-practices.md)

Configuration and Customization

Quality Configuration: Create quality-config.yaml with quality_orchestration section.

Under trust5_framework, set enabled to true with thresholds for overall (0.85), testable (0.90), readable (0.80), unified (0.85), secured (0.90), and trackable (0.80).

Under proactiveanalysis, set enabled true, scanfrequency to daily, and focusareas list including performance, security, maintainability, and technicaldebt.

Under autofix, set enabled true, severitythreshold to medium, and confirmation_required to true.

Under bestpractices, set enabled true, context7integration true, autoupdatestandards true, and compliance_target to 0.85.

Under languagerules, configure python with pep8 styleguide, black formatter, ruff linter, and mypy typechecker. Configure javascript with airbnb styleguide, prettier formatter, and eslint linter. Configure typescript with google style_guide, prettier formatter, and eslint linter.

Under reporting, set enabled true, metricsretentiondays to 90, trendanalysis true, and executivedashboard true.

Under notifications, enable qualitydegradation, securityvulnerabilities, and technicaldebtincrease.

Integration Examples: See [Integration Patterns](modules/integration-patterns.md) for CI/CD Pipeline Integration, GitHub Actions Integration, Quality-as-Service REST API, and Cross-Project Benchmarking.

Advanced Patterns

Custom Quality Rules

Create CustomQualityRule class with name, validator callable, and severity defaulting to medium. The validate async method executes the validator on codebase, wrapping in try-except. On success, return RuleResult with rule_name, passed status, severity, details, and recommendations. On exception, return RuleResult with passed false, severity error, error details, and fix recommendation.

See [Best Practices - Custom Rules](modules/best-practices.md#custom-quality-rules) for complete examples.

Machine Learning Quality Prediction

ML-powered quality issue prediction using code feature extraction and predictive models. See [Proactive Analysis - ML Prediction](modules/proactive-analysis.md#machine-learning-quality-prediction) for implementation details.

Real-time Quality Monitoring

Continuous quality monitoring with automated alerting for quality degradation and security vulnerabilities. See [Proactive Analysis - Real-time Monitoring](modules/proactive-analysis.md#real-time-quality-monitoring) for implementation details.

Cross-Project Quality Benchmarking

Compare project quality metrics against similar projects in your industry. See [Integration Patterns - Benchmarking](modules/integration-patterns.md#cross-project-quality-benchmarking) for implementation details.

Module Reference

Core Modules

  • [TRUST 5 Validation](modules/trust5-validation.md) - Comprehensive quality framework validation
  • [Proactive Analysis](modules/proactive-analysis.md) - Automated issue detection and improvements
  • [Best Practices](modules/best-practices.md) - Context7-powered standards enforcement
  • [Integration Patterns](modules/integration-patterns.md) - CI/CD and enterprise integrations

Key Components by Module

TRUST 5 Validation: TRUST5Validator for five-pillar quality validation, TestableValidator for test coverage and quality, SecuredValidator for security and OWASP compliance, and quality gate pipeline integration.

Proactive Analysis: ProactiveQualityScanner for automated issue detection, QualityPredictionEngine for ML-powered predictions, RealTimeQualityMonitor for continuous monitoring, and performance and maintainability analysis.

Best Practices: BestPracticesEngine for standards validation, Context7 integration for latest docs, custom quality rules, and language-specific validators.

Integration Patterns: CI/CD pipeline integration, GitHub Actions workflows, Quality-as-Service REST API, and cross-project benchmarking.

Context7 Library Mappings

Essential library mappings for quality analysis tools and frameworks. See [Best Practices - Library Mappings](modules/best-practices.md#context7-library-mappings) for complete list.

Works Well With

Agents:

  • core-planner - Quality requirements planning
  • workflow-ddd - DDD implementation validation
  • security-expert - Security vulnerability analysis
  • code-backend - Backend code quality
  • code-frontend - Frontend code quality

Skills:

  • moai-foundation-core - TRUST 5 framework reference
  • moai-workflow-ddd - DDD workflow validation
  • moai-security-owasp - Security compliance
  • moai-context7-integration - Context7 best practices
  • moai-performance-optimization - Performance analysis

Commands:

  • /moai:2-run - DDD validation integration
  • /moai:3-sync - Documentation quality checks
  • /moai:9-feedback - Quality improvement feedback

Quick Reference Summary

Core Capabilities: TRUST 5 validation, proactive scanning, Context7-powered best practices, multi-language support, enterprise integration

Key Classes: QualityOrchestrator, TRUST5Validator, ProactiveQualityScanner, BestPracticesEngine, QualityMetricsCollector

Essential Methods: analyzecodebase(), validatetrust5(), scanforissues(), validatebestpractices(), generatequalityreport()

Integration Ready: CI/CD pipelines, GitHub Actions, REST APIs, real-time monitoring, cross-project benchmarking

Enterprise Features: Custom rules, ML prediction, real-time monitoring, benchmarking, comprehensive reporting

Quality Standards: OWASP compliance, TRUST 5 framework, Context7 integration, automated improvement recommendations

Common Rationalizations

| Rationalization | Reality | |---|---| | "The linter warnings are false positives" | False positives should be suppressed with inline comments. Ignoring them trains the team to ignore real issues. | | "Security scanning can wait until before release" | Security vulnerabilities compound. Late discovery means expensive rework. Scan continuously. | | "Coverage is high enough, the remaining 15% is edge cases" | Edge cases are where production bugs live. The uncovered code is the riskiest code. | | "Code review is subjective, automation is sufficient" | Automation catches syntax and patterns. Reviews catch design flaws, naming confusion, and missing abstractions. | | "TRUST 5 is too bureaucratic for a hotfix" | Hotfixes without quality gates introduce the next hotfix. TRUST 5 on a hotfix is the minimum, not the maximum. |

Chesterton's Fence: Before removing a quality check, understand why it was added. Removing a gate without understanding its history repeats the failure it was designed to prevent.

Shift Left: The earlier a defect is found, the cheaper it is to fix. Quality checks belong in the development loop, not at the end of it.

Red Flags

  • Linter or type-checker warnings suppressed globally instead of per-line
  • OWASP checklist not consulted when handling user input or authentication
  • Coverage report not generated for a commit that adds new functionality
  • TRUST 5 dimension skipped with "not applicable" without justification
  • Quality report generated but no action taken on identified issues

Verification

  • [ ] Linter runs clean or remaining warnings have inline suppression comments with reasons
  • [ ] OWASP checklist reviewed for security-relevant changes (show checklist references)
  • [ ] Coverage report generated and threshold met (show tool output)
  • [ ] All five TRUST 5 dimensions assessed (show assessment for each)
  • [ ] Quality report issues triaged with resolution plan for each finding
  • [ ] No global rule disabling in linter configuration

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.