$npx -y skills add spencermarx/open-code-review --skill verification-qualityComprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.
| 1 | # Verification & Quality Assurance Skill |
| 2 | |
| 3 | ## What This Skill Does |
| 4 | |
| 5 | This skill provides a comprehensive verification and quality assurance system that ensures code quality and correctness through: |
| 6 | |
| 7 | - **Truth Scoring**: Real-time reliability metrics (0.0-1.0 scale) for code, agents, and tasks |
| 8 | - **Verification Checks**: Automated code correctness, security, and best practices validation |
| 9 | - **Automatic Rollback**: Instant reversion of changes that fail verification (default threshold: 0.95) |
| 10 | - **Quality Metrics**: Statistical analysis with trends, confidence intervals, and improvement tracking |
| 11 | - **CI/CD Integration**: Export capabilities for continuous integration pipelines |
| 12 | - **Real-time Monitoring**: Live dashboards and watch modes for ongoing verification |
| 13 | |
| 14 | ## Prerequisites |
| 15 | |
| 16 | - Claude Flow installed (`npx claude-flow@alpha`) |
| 17 | - Git repository (for rollback features) |
| 18 | - Node.js 18+ (for dashboard features) |
| 19 | |
| 20 | ## Quick Start |
| 21 | |
| 22 | ```bash |
| 23 | # View current truth scores |
| 24 | npx claude-flow@alpha truth |
| 25 | |
| 26 | # Run verification check |
| 27 | npx claude-flow@alpha verify check |
| 28 | |
| 29 | # Verify specific file with custom threshold |
| 30 | npx claude-flow@alpha verify check --file src/app.js --threshold 0.98 |
| 31 | |
| 32 | # Rollback last failed verification |
| 33 | npx claude-flow@alpha verify rollback --last-good |
| 34 | ``` |
| 35 | |
| 36 | --- |
| 37 | |
| 38 | ## Complete Guide |
| 39 | |
| 40 | ### Truth Scoring System |
| 41 | |
| 42 | #### View Truth Metrics |
| 43 | |
| 44 | Display comprehensive quality and reliability metrics for your codebase and agent tasks. |
| 45 | |
| 46 | **Basic Usage:** |
| 47 | ```bash |
| 48 | # View current truth scores (default: table format) |
| 49 | npx claude-flow@alpha truth |
| 50 | |
| 51 | # View scores for specific time period |
| 52 | npx claude-flow@alpha truth --period 7d |
| 53 | |
| 54 | # View scores for specific agent |
| 55 | npx claude-flow@alpha truth --agent coder --period 24h |
| 56 | |
| 57 | # Find files/tasks below threshold |
| 58 | npx claude-flow@alpha truth --threshold 0.8 |
| 59 | ``` |
| 60 | |
| 61 | **Output Formats:** |
| 62 | ```bash |
| 63 | # Table format (default) |
| 64 | npx claude-flow@alpha truth --format table |
| 65 | |
| 66 | # JSON for programmatic access |
| 67 | npx claude-flow@alpha truth --format json |
| 68 | |
| 69 | # CSV for spreadsheet analysis |
| 70 | npx claude-flow@alpha truth --format csv |
| 71 | |
| 72 | # HTML report with visualizations |
| 73 | npx claude-flow@alpha truth --format html --export report.html |
| 74 | ``` |
| 75 | |
| 76 | **Real-time Monitoring:** |
| 77 | ```bash |
| 78 | # Watch mode with live updates |
| 79 | npx claude-flow@alpha truth --watch |
| 80 | |
| 81 | # Export metrics automatically |
| 82 | npx claude-flow@alpha truth --export .claude-flow/metrics/truth-$(date +%Y%m%d).json |
| 83 | ``` |
| 84 | |
| 85 | #### Truth Score Dashboard |
| 86 | |
| 87 | Example dashboard output: |
| 88 | ``` |
| 89 | 📊 Truth Metrics Dashboard |
| 90 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 91 | |
| 92 | Overall Truth Score: 0.947 ✅ |
| 93 | Trend: ↗️ +2.3% (7d) |
| 94 | |
| 95 | Top Performers: |
| 96 | verification-agent 0.982 ⭐ |
| 97 | code-analyzer 0.971 ⭐ |
| 98 | test-generator 0.958 ✅ |
| 99 | |
| 100 | Needs Attention: |
| 101 | refactor-agent 0.821 ⚠️ |
| 102 | docs-generator 0.794 ⚠️ |
| 103 | |
| 104 | Recent Tasks: |
| 105 | task-456 0.991 ✅ "Implement auth" |
| 106 | task-455 0.967 ✅ "Add tests" |
| 107 | task-454 0.743 ❌ "Refactor API" |
| 108 | ``` |
| 109 | |
| 110 | #### Metrics Explained |
| 111 | |
| 112 | **Truth Scores (0.0-1.0):** |
| 113 | - `1.0-0.95`: Excellent ⭐ (production-ready) |
| 114 | - `0.94-0.85`: Good ✅ (acceptable quality) |
| 115 | - `0.84-0.75`: Warning ⚠️ (needs attention) |
| 116 | - `<0.75`: Critical ❌ (requires immediate action) |
| 117 | |
| 118 | **Trend Indicators:** |
| 119 | - ↗️ Improving (positive trend) |
| 120 | - → Stable (consistent performance) |
| 121 | - ↘️ Declining (quality regression detected) |
| 122 | |
| 123 | **Statistics:** |
| 124 | - **Mean Score**: Average truth score across all measurements |
| 125 | - **Median Score**: Middle value (less affected by outliers) |
| 126 | - **Standard Deviation**: Consistency of scores (lower = more consistent) |
| 127 | - **Confidence Interval**: Statistical reliability of measurements |
| 128 | |
| 129 | ### Verification Checks |
| 130 | |
| 131 | #### Run Verification |
| 132 | |
| 133 | Execute comprehensive verification checks on code, tasks, or agent outputs. |
| 134 | |
| 135 | **File Verification:** |
| 136 | ```bash |
| 137 | # Verify single file |
| 138 | npx claude-flow@alpha verify check --file src/app.js |
| 139 | |
| 140 | # Verify directory recursively |
| 141 | npx claude-flow@alpha verify check --directory src/ |
| 142 | |
| 143 | # Verify with auto-fix enabled |
| 144 | npx claude-flow@alpha verify check --file src/utils.js --auto-fix |
| 145 | |
| 146 | # Verify current working directory |
| 147 | npx claude-flow@alpha verify check |
| 148 | ``` |
| 149 | |
| 150 | **Task Verification:** |
| 151 | ```bash |
| 152 | # Verify specific task output |
| 153 | npx claude-flow@alpha verify check --task task-123 |
| 154 | |
| 155 | # Verify with custom threshold |
| 156 | npx claude-flow@alpha verify check --task task-456 --threshold 0.99 |
| 157 | |
| 158 | # Verbose output for debugging |
| 159 | npx claude-flow@alpha verify check --task task-789 --verbose |
| 160 | ``` |
| 161 | |
| 162 | **Batch Verification:** |
| 163 | ```bash |
| 164 | # Verify multiple files in parallel |
| 165 | npx claude-flow@alpha verify batch --files "*.js" --parallel |
| 166 | |
| 167 | # Verify with pattern matching |
| 168 | npx claude-flow@alpha verify batch --pattern "src/**/*.ts" |
| 169 | |
| 170 | # Integration test suite |
| 171 | npx claude-flow@alpha verify integration --test-suite full |
| 172 | ``` |
| 173 | |
| 174 | #### Verificatio |