.claude/skills/quality-gates-parallel/SKILL.md
Launch quality subagents in parallel using Claude Code 2.1+ native Task tool. Includes ralph-security for OWASP validation and ralph-frontend for WCAG checks. Reads results post-analysis for orchestrator decision-making.
npx skillsauth add alfredolopez80/multi-agent-ralph-loop quality-gates-parallelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Orchestrator integration for launching 4 quality subagents in parallel using Claude Code 2.1+ native Task tool with teammate coordination.
~/.claude/settings.json or CLI/env varsANTHROPIC_DEFAULT_*_MODEL env vars# Launch quality checks after implementation
/quality-gates-parallel src/auth.ts --complexity 7
# Read aggregated results post-analysis
/quality-gates-parallel --read-results <run_id>
Based on: claude-sneakpeek native-multiagent-gates
Optimal Scenario: Integrated (Agent Teams + Custom Subagents)
Parallel quality gates combine Agent Teams coordination with specialized ralph-* agents for comprehensive parallel validation.
| Subagent | Quality Gate Role |
|----------|-------------------|
| ralph-tester | Test execution and coverage |
| ralph-reviewer | Code quality analysis |
| ralph-coder | Auto-fix application |
When Agent Teams is active:
This skill was designed for Agent Teams with:
After implementation (orchestrator step 6b), launch 4 subagents:
// Pseudo-code for orchestrator integration
1. Classify task complexity (1-10)
2. If complexity >= 5:
3. Create 4 tasks using TaskCreate:
4. - Security auditor (sec-context-depth)
5. - Code reviewer (code-reviewer)
6. - Code cleanup (deslop)
7. - Prose cleanup (stop-slop)
8. Tasks execute in parallel (non-blocking)
9. Continue orchestrator workflow
10. Else: Skip quality checks (low complexity)
Before validation (orchestrator step 7), poll for results:
# Run results reader
.claude/scripts/read-quality-results.sh <run_id>
Orchestrator reads aggregated results and decides:
// Pseudo-code for decision logic
results = readQualityResults(run_id)
if (results.total_findings == 0) {
// No issues - proceed to validation
proceedToValidation()
} else if (results.critical_findings > 0) {
// Critical issues - block and fix
blockMerge()
requireFixes()
} else {
// Minor issues - advisory only
proceedWithWarnings()
}
sec-context-depth)Agent: security-auditor or glm-reviewer
Purpose: 27 security anti-patterns (OWASP/CWE)
Findings: P0 (Critical), P1 (High), P2 (Medium)
Command: /sec-context-depth <file>
Coverage:
code-reviewer)Agent: code-reviewer or codex-cli
Purpose: Official Claude Code plugin with 4 parallel agents
Features: Confidence scoring (≥80 threshold)
Command: /code-review <file>
Architecture:
deslop)Agent: refactorer or gemini-cli
Purpose: Remove AI-generated code slop
Command: /deslop
Removes:
any for type issuesstop-slop)Agent: docs-writer or minimax
Purpose: Remove AI writing patterns from prose
Command: /stop-slop <file>
Removes:
Location: After implementation (6b), before validation (7)
Trigger: complexity >= 5 OR security-related code
Execution:
# Non-blocking parallel launch
.claude/scripts/quality-coordinator.sh <target_file> <complexity>
Output: JSON with 4 task definitions
Before validation: Read aggregated results
# Poll for completed checks
.claude/scripts/read-quality-results.sh <run_id>
Output: Aggregated JSON with all findings
Decision Logic:
.claude/quality-results/
├── aggregated_<run_id>.json # Aggregated results
├── sec-context_<run_id>.json # Security findings
├── code-review_<run_id>.json # Code review findings
├── deslop_<run_id>.json # Code cleanup findings
├── stop-slop_<run_id>.json # Prose cleanup findings
├── *_<run_id>.done # Completion markers
└── coordinator.log # Execution log
# Launch quality checks
./.claude/scripts/quality-coordinator.sh src/auth.ts 7
# Read results
./.claude/scripts/read-quality-results.sh 20250128_221437_12345
# In orchestrator step 6b (after implementation)
quality_check_result=$(./.claude/scripts/quality-coordinator.sh "$file" "$complexity")
# Parse result and create tasks
if [[ "$complexity" -ge 5 ]]; then
# Create 4 tasks using TaskCreate
# Tasks execute in parallel
# Store run_id for later retrieval
fi
# In orchestrator step 7 (before validation)
quality_results=$(./.claude/scripts/read-quality-results.sh "$run_id")
# Parse results and make decision
critical_count=$(echo "$quality_results" | jq '.summary.critical_findings // 0')
if [[ "$critical_count" -gt 0 ]]; then
# Block and require fixes
echo "CRITICAL: $critical_count security issues found"
else
# Proceed to validation
echo "No critical issues, proceeding to validation"
fi
async: true in settings.jsonEsta skill genera reportes automáticos completos para trazabilidad:
Cuando esta skill completa, se genera automáticamente:
docs/actions/quality-gates-parallel/{timestamp}.md.claude/metadata/actions/quality-gates-parallel/{timestamp}.jsonCada reporte incluye:
# Listar todos los reportes de esta skill
ls -lt docs/actions/quality-gates-parallel/
# Ver el reporte más reciente
cat $(ls -t docs/actions/quality-gates-parallel/*.md | head -1)
# Buscar reportes fallidos
grep -l "Status: FAILED" docs/actions/quality-gates-parallel/*.md
source .claude/lib/action-report-lib.sh
start_action_report "quality-gates-parallel" "Task description"
# ... ejecución ...
complete_action_report "success" "Summary" "Recommendations"
Action Reports System - Documentación completa
action-report-lib.sh - Librería helper
action-report-generator.sh - Generador
Native Multi-Agent Gates: claude-sneakpeek documentation
Claude Code 2.1.16+ features: Swarms, TeammateTool, teammate coordination
Quality consolidation: docs/analysis/QUALITY_PARALLEL_CONSOLIDATION_v2.80.3.md
Async hooks correction: docs/analysis/ASYNC_HOOKS_CORRECTION_v2.80.2.md
development
Living knowledge base management. Actions: search (query vault), save (store learning), index (update indices), compile (raw->wiki->rules graduation), init (create vault structure). Follows Karpathy pipeline: ingest->compile->query. Use when: (1) searching accumulated knowledge, (2) saving learnings, (3) compiling raw notes into wiki, (4) initializing a new vault. Triggers: /vault, 'vault search', 'knowledge base', 'save learning'.
testing
Produce a verifiable technical specification before coding. 6 mandatory sections: Interfaces, Behaviors, Invariants (from Aristotle Phase 2), File Plan, Test Plan, Exit Criteria (executable bash commands + expected results). Use when: (1) before implementing features with complexity > 4, (2) as Step 1.5 in orchestrator workflow, (3) when requirements need formalization. Triggers: /spec, 'create spec', 'write specification', 'technical spec'.
testing
Pre-launch shipping checklist orchestrating /gates, /security, /browser-test, /perf. Ensures nothing ships without passing all quality checks. Use when: (1) before deploying, (2) before merging to main, (3) before release. Triggers: /ship, 'ship it', 'ready to deploy', 'pre-launch check'.
development
Performance optimization skill. Core Web Vitals via Lighthouse, bundle size analysis, metrics tracking over time. Use when: (1) optimizing frontend performance, (2) analyzing bundle size, (3) tracking metrics regression. Triggers: /perf, 'performance audit', 'core web vitals', 'bundle size'.