9-language quality gate validation: linting, formatting, type checking, and test execution. Validates code changes meet quality standards before completion. Use when: (1) after code implementation, (2) before PR creation, (3) as part of /orchestrator Step 6, (4) manual quality check. Triggers: /gates, 'quality gates', 'run validation', 'check quality', 'validate code'.
VERSION: 2.43.0
name: gates
description: "9-language quality gate validation: linting, formatting, type checking, and test execution. Validates code changes meet quality standards before completion. Use when: (1) after code implementation, (2) before PR creation, (3) as part of /orchestrator Step 6, (4) manual quality check. Triggers: /gates, 'quality gates', 'run validation', 'check quality', 'validate code'."
context: fork
user-invocable: true
Gates - Quality Validation (v2.37)
Comprehensive quality validation across 9 programming languages with TLDR-assisted analysis.
Quick Start
/gates # Run all quality gates
ralph gates # Via CLI
ralph gates src/ # Specific directory
Pre-Gates: TLDR Language Detection (v2.37)
AUTOMATIC - Detect project languages efficiently:
# Get codebase structure to detect languages (95% token savings)
tldr structure . > /tmp/project-structure.md
# From structure, identify:
# - Primary language(s)
# - Config files present
# - Test frameworks used
Supported Languages
Language
Linter
Formatter
Types
TypeScript
ESLint
Prettier
tsc
JavaScript
ESLint
Prettier
-
Python
Ruff
Black
mypy
Rust
Clippy
rustfmt
cargo check
Go
golint
gofmt
go vet
Java
Checkstyle
google-java-format
-
Ruby
RuboCop
-
Sorbet
PHP
PHP_CodeSniffer
php-cs-fixer
PHPStan
Solidity
Solhint
prettier-solidity
-
Workflow
1. Detect Languages
# Auto-detect based on file extensions and config files