[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ESQPRMDP4EPXX5CSG6G78F":3,"skill-same:01M6ESQPRMDP4EPXX5CSG6G78F":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6ESQPRMDP4EPXX5CSG6G78F","verification-quality-assurance",null,"Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdnyoussef\u002Fverification-quality-assurance\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"quality","verification quality assurance","quality assurance","verification","metrics","ci","ci-cd","system","truth-scoring","code quality","rollback","reliability","scoring","cd","quality-assurance","with","code","2026-11-10 10:12:30",false,"---\nname: verification-quality-assurance\ndescription: \"Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.\"\nversion: \"2.0.0\"\ncategory: \"quality-assurance\"\ntags: [\"verification\", \"truth-scoring\", \"quality\", \"rollback\", \"metrics\", \"ci-cd\"]\n---\n\n# Verification & Quality Assurance Skill\n\n## What This Skill Does\n\nThis skill provides a comprehensive verification and quality assurance system that ensures code quality and correctness through:\n\n- **Truth Scoring**: Real-time reliability metrics (0.0-1.0 scale) for code, agents, and tasks\n- **Verification Checks**: Automated code correctness, security, and best practices validation\n- **Automatic Rollback**: Instant reversion of changes that fail verification (default threshold: 0.95)\n- **Quality Metrics**: Statistical analysis with trends, confidence intervals, and improvement tracking\n- **CI\u002FCD Integration**: Export capabilities for continuous integration pipelines\n- **Real-time Monitoring**: Live dashboards and watch modes for ongoing verification\n\n## Prerequisites\n\n- Claude Flow installed (`npx claude-flow@alpha`)\n- Git repository (for rollback features)\n- Node.js 18+ (for dashboard features)\n\n## Quick Start\n\n```bash\n# View current truth scores\nnpx claude-flow@alpha truth\n\n# Run verification check\nnpx claude-flow@alpha verify check\n\n# Verify specific file with custom threshold\nnpx claude-flow@alpha verify check --file src\u002Fapp.js --threshold 0.98\n\n# Rollback last failed verification\nnpx claude-flow@alpha verify rollback --last-good\n```\n\n---\n\n## Complete Guide\n\n### Truth Scoring System\n\n#### View Truth Metrics\n\nDisplay comprehensive quality and reliability metrics for your codebase and agent tasks.\n\n**Basic Usage:**\n```bash\n# View current truth scores (default: table format)\nnpx claude-flow@alpha truth\n\n# View scores for specific time period\nnpx claude-flow@alpha truth --period 7d\n\n# View scores for specific agent\nnpx claude-flow@alpha truth --agent coder --period 24h\n\n# Find files\u002Ftasks below threshold\nnpx claude-flow@alpha truth --threshold 0.8\n```\n\n**Output Formats:**\n```bash\n# Table format (default)\nnpx claude-flow@alpha truth --format table\n\n# JSON for programmatic access\nnpx claude-flow@alpha truth --format json\n\n# CSV for spreadsheet analysis\nnpx claude-flow@alpha truth --format csv\n\n# HTML report with visualizations\nnpx claude-flow@alpha truth --format html --export report.html\n```\n\n**Real-time Monitoring:**\n```bash\n# Watch mode with live updates\nnpx claude-flow@alpha truth --watch\n\n# Export metrics automatically\nnpx claude-flow@alpha truth --export .claude-flow\u002Fmetrics\u002Ftruth-$(date +%Y%m%d).json\n```\n\n#### Truth Score Dashboard\n\nExample dashboard output:\n```\n? Truth Metrics Dashboard\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nOverall Truth Score: 0.947 ✅\nTrend: ↗️ +2.3% (7d)\n\nTop Performers:\n  verification-agent   0.982 ⭐\n  code-analyzer       0.971 ⭐\n  test-generator      0.958 ✅\n\nNeeds Attention:\n  refactor-agent      0.821 ⚠️\n  docs-generator      0.794 ⚠️\n\nRecent Tasks:\n  task-456  0.991 ✅  \"Implement auth\"\n  task-455  0.967 ✅  \"Add tests\"\n  task-454  0.743 ❌  \"Refactor API\"\n```\n\n#### Metrics Explained\n\n**Truth Scores (0.0-1.0):**\n- `1.0-0.95`: Excellent ⭐ (production-ready)\n- `0.94-0.85`: Good ✅ (acceptable quality)\n- `0.84-0.75`: Warning ⚠️ (needs attention)\n- `\u003C0.75`: Critical ❌ (requires immediate action)\n\n**Trend Indicators:**\n- ↗️ Improving (positive trend)\n- → Stable (consistent performance)\n- ↘️ Declining (quality regression detected)\n\n**Statistics:**\n- **Mean Score**: Average truth score across all measurements\n- **Median Score**: Middle value (less affected by outliers)\n- **Standard Deviation**: Consistency of scores (lower = more consistent)\n- **Confidence Interval**: Statistical reliability of measurements\n\n### Verification Checks\n\n#### Run Verification\n\nExecute comprehensive verification checks on code, tasks, or agent outputs.\n\n**File Verification:**\n```bash\n# Verify single file\nnpx claude-flow@alpha verify check --file src\u002Fapp.js\n\n# Verify directory recursively\nnpx claude-flow@alpha verify check --directory src\u002F\n\n# Verify with auto-fix enabled\nnpx claude-flow@alpha verify check --file src\u002Futils.js --auto-fix\n\n# Verify current working directory\nnpx claude-flow@alpha verify check\n```\n\n**Task Verification:**\n```bash\n# Verify specific task output\nnpx claude-flow@alpha verify check --task task-123\n\n# Verify with custom threshold\nnpx claude-flow@alpha verify check --task task-456 --threshold 0.99\n\n# Verbose output for debugging\nnpx claude-flow@alpha verify check --task task-789 --verbose\n```\n\n**Batch Verification:**\n```bash\n# Verify multiple files in parallel\nnpx claude-flow@alpha verify batch --files \"*.js\" --parallel\n\n# Verify with pattern matching\nnpx claude-flow@alpha verify batch --pattern \"src\u002F**\u002F*.ts\"\n\n# Integration test suite\nnpx claude-flow@alpha verify integration --test-suite full\n```\n\n#### Verification Criteria\n\nThe verification system evaluates:\n\n1. **Code Correctness**\n   - Syntax validation\n   - Type checking (TypeScript)\n   - Logic flow analysis\n   - Error handling completeness\n\n2. **Best Practices**\n   - Code style adherence\n   - SOLID principles\n   - Design patterns usage\n   - Modularity and reusability\n\n3. **Security**\n   - Vulnerability scanning\n   - Secret detection\n   - Input validation\n   - Authentication\u002Fauthorization checks\n\n4. **Performance**\n   - Algorithmic complexity\n   - Memory usage patterns\n   - Database query optimization\n   - Bundle size impact\n\n5. **Documentation**\n   - JSDoc\u002FTypeDoc completeness\n   - README accuracy\n   - API documentation\n   - Code comments quality\n\n#### JSON Output for CI\u002FCD\n\n```bash\n# Get structured JSON output\nnpx claude-flow@alpha verify check --json > verification.json\n\n# Example JSON structure:\n{\n  \"overallScore\": 0.947,\n  \"passed\": true,\n  \"threshold\": 0.95,\n  \"checks\": [\n    {\n      \"name\": \"code-correctness\",\n      \"score\": 0.98,\n      \"passed\": true\n    },\n    {\n      \"name\": \"security\",\n      \"score\": 0.91,\n      \"passed\": false,\n      \"issues\": [...]\n    }\n  ]\n}\n```\n\n### Automatic Rollback\n\n#### Rollback Failed Changes\n\nAutomatically revert changes that fail verification checks.\n\n**Basic Rollback:**\n```bash\n# Rollback to last known good state\nnpx claude-flow@alpha verify rollback --last-good\n\n# Rollback to specific commit\nnpx claude-flow@alpha verify rollback --to-commit abc123\n\n# Interactive rollback with preview\nnpx claude-flow@alpha verify rollback --interactive\n```\n\n**Smart Rollback:**\n```bash\n# Rollback only failed files (preserve good changes)\nnpx claude-flow@alpha verify rollback --selective\n\n# Rollback with automatic backup\nnpx claude-flow@alpha verify rollback --backup-first\n\n# Dry-run mode (preview without executing)\nnpx claude-flow@alpha verify rollback --dry-run\n```\n\n**Rollback Performance:**\n- Git-based rollback: \u003C1 second\n- Selective file rollback: \u003C500ms\n- Backup creation: Automatic before rollback\n\n### Verification Reports\n\n#### Generate Reports\n\nCreate detailed verification reports with metrics and visualizations.\n\n**Report Formats:**\n```bash\n# JSON report\nnpx claude-flow@alpha verify report --format json\n\n# HTML report with charts\nnpx claude-flow@alpha verify report --export metrics.html --format html\n\n# CSV for data analysis\nnpx claude-flow@alpha verify report --format csv --export metrics.csv\n\n# Markdown summary\nnpx claude-flow@alpha verify report --format markdown\n```\n\n**Time-based Reports:**\n```bash\n# Last 24 hours\nnpx claude-flow@alpha verify report --period 24h\n\n# Last 7 days\nnpx claude-flow@alpha verify report --period 7d\n\n# Last 30 days with trends\nnpx claude-flow@alpha verify report --period 30d --include-trends\n\n# Custom date range\nnpx claude-flow@alpha verify report --from 2025-01-01 --to 2025-01-31\n```\n\n**Report Content:**\n- Overall truth scores\n- Per-agent performance metrics\n- Task completion quality\n- Verification pass\u002Ffail rates\n- Rollback frequency\n- Quality improvement trends\n- Statistical confidence intervals\n\n### Interactive Dashboard\n\n#### Launch Dashboard\n\nRun interactive web-based verification dashboard with real-time updates.\n\n```bash\n# Launch dashboard on default port (3000)\nnpx claude-flow@alpha verify dashboard\n\n# Custom port\nnpx claude-flow@alpha verify dashboard --port 8080\n\n# Export dashboard data\nnpx claude-flow@alpha verify dashboard --export\n\n# Dashboard with auto-refresh\nnpx claude-flow@alpha verify dashboard --refresh 5s\n```\n\n**Dashboard Features:**\n- Real-time truth score updates (WebSocket)\n- Interactive charts and graphs\n- Agent performance comparison\n- Task history timeline\n- Rollback history viewer\n- Export to PDF\u002FHTML\n- Filter by time period\u002Fagent\u002Fscore\n\n### Configuration\n\n#### Default Configuration\n\nSet verification preferences in `.claude-flow\u002Fconfig.json`:\n\n```json\n{\n  \"verification\": {\n    \"threshold\": 0.95,\n    \"autoRollback\": true,\n    \"gitIntegration\": true,\n    \"hooks\": {\n      \"preCommit\": true,\n      \"preTask\": true,\n      \"postEdit\": true\n    },\n    \"checks\": {\n      \"codeCorrectness\": true,\n      \"security\": true,\n      \"performance\": true,\n      \"documentation\": true,\n      \"bestPractices\": true\n    }\n  },\n  \"truth\": {\n    \"defaultFormat\": \"table\",\n    \"defaultPeriod\": \"24h\",\n    \"warningThreshold\": 0.85,\n    \"criticalThreshold\": 0.75,\n    \"autoExport\": {\n      \"enabled\": true,\n      \"path\": \".claude-flow\u002Fmetrics\u002Ftruth-daily.json\"\n    }\n  }\n}\n```\n\n#### Threshold Configuration\n\n**Adjust verification strictness:**\n```bash\n# Strict mode (99% accuracy required)\nnpx claude-flow@alpha verify check --threshold 0.99\n\n# Lenient mode (90% acceptable)\nnpx claude-flow@alpha verify check --threshold 0.90\n\n# Set default threshold\nnpx claude-flow@alpha config set verification.threshold 0.98\n```\n\n**Per-environment thresholds:**\n```json\n{\n  \"verification\": {\n    \"thresholds\": {\n      \"production\": 0.99,\n      \"staging\": 0.95,\n      \"development\": 0.90\n    }\n  }\n}\n```\n\n### Integration Examples\n\n#### CI\u002FCD Integration\n\n**GitHub Actions:**\n```yaml\nname: Quality Verification\n\non: [push, pull_request]\n\njobs:\n  verify:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v3\n\n      - name: Install Dependencies\n        run: npm install\n\n      - name: Run Verification\n        run: |\n          npx claude-flow@alpha verify check --json > verification.json\n\n      - name: Check Truth Score\n        run: |\n          score=$(jq '.overallScore' verification.json)\n          if (( $(echo \"$score \u003C 0.95\" | bc -l) )); then\n            echo \"Truth score too low: $score\"\n            exit 1\n          fi\n\n      - name: Upload Report\n        uses: actions\u002Fupload-artifact@v3\n        with:\n          name: verification-report\n          path: verification.json\n```\n\n**GitLab CI:**\n```yaml\nverify:\n  stage: test\n  script:\n    - npx claude-flow@alpha verify check --threshold 0.95 --json > verification.json\n    - |\n      score=$(jq '.overallScore' verification.json)\n      if [ $(echo \"$score \u003C 0.95\" | bc) -eq 1 ]; then\n        echo \"Verification failed with score: $score\"\n        exit 1\n      fi\n  artifacts:\n    paths:\n      - verification.json\n    reports:\n      junit: verification.json\n```\n\n#### Swarm Integration\n\nRun verification automatically during swarm operations:\n\n```bash\n# Swarm with verification enabled\nnpx claude-flow@alpha swarm --verify --threshold 0.98\n\n# Hive Mind with auto-rollback\nnpx claude-flow@alpha hive-mind --verify --rollback-on-fail\n\n# Training pipeline with verification\nnpx claude-flow@alpha train --verify --threshold 0.99\n```\n\n#### Pair Programming Integration\n\nEnable real-time verification during collaborative development:\n\n```bash\n# Pair with verification\nnpx claude-flow@alpha pair --verify --real-time\n\n# Pair with custom threshold\nnpx claude-flow@alpha pair --verify --threshold 0.97 --auto-fix\n```\n\n### Advanced Workflows\n\n#### Continuous Verification\n\nMonitor codebase continuously during development:\n\n```bash\n# Watch directory for changes\nnpx claude-flow@alpha verify watch --directory src\u002F\n\n# Watch with auto-fix\nnpx claude-flow@alpha verify watch --directory src\u002F --auto-fix\n\n# Watch with notifications\nnpx claude-flow@alpha verify watch --notify --threshold 0.95\n```\n\n#### Monitoring Integration\n\nSend metrics to external monitoring systems:\n\n```bash\n# Export to Prometheus\nnpx claude-flow@alpha truth --format json | \\\n  curl -X POST https:\u002F\u002Fpushgateway.example.com\u002Fmetrics\u002Fjob\u002Fclaude-flow \\\n  -d @-\n\n# Send to DataDog\nnpx claude-flow@alpha verify report --format json | \\\n  curl -X POST \"https:\u002F\u002Fapi.datadoghq.com\u002Fapi\u002Fv1\u002Fseries?api_key=${DD_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @-\n\n# Custom webhook\nnpx claude-flow@alpha truth --format json | \\\n  curl -X POST https:\u002F\u002Fmetrics.example.com\u002Fapi\u002Ftruth \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @-\n```\n\n#### Pre-commit Hooks\n\nAutomatically verify before commits:\n\n```bash\n# Install pre-commit hook\nnpx claude-flow@alpha verify install-hook --pre-commit\n\n# .git\u002Fhooks\u002Fpre-commit example:\n#!\u002Fbin\u002Fbash\nnpx claude-flow@alpha verify check --threshold 0.95 --json > \u002Ftmp\u002Fverify.json\n\nscore=$(jq '.overallScore' \u002Ftmp\u002Fverify.json)\nif (( $(echo \"$score \u003C 0.95\" | bc -l) )); then\n  echo \"❌ Verification failed with score: $score\"\n  echo \"Run 'npx claude-flow@alpha verify check --verbose' for details\"\n  exit 1\nfi\n\necho \"✅ Verification passed with score: $score\"\n```\n\n### Performance Metrics\n\n**Verification Speed:**\n- Single file check: \u003C100ms\n- Directory scan: \u003C500ms (per 100 files)\n- Full codebase analysis: \u003C5s (typical project)\n- Truth score calculation: \u003C50ms\n\n**Rollback Speed:**\n- Git-based rollback: \u003C1s\n- Selective file rollback: \u003C500ms\n- Backup creation: \u003C2s\n\n**Dashboard Performance:**\n- Initial load: \u003C1s\n- Real-time updates: \u003C100ms latency (WebSocket)\n- Chart rendering: 60 FPS\n\n### Troubleshooting\n\n#### Common Issues\n\n**Low Truth Scores:**\n```bash\n# Get detailed breakdown\nnpx claude-flow@alpha truth --verbose --threshold 0.0\n\n# Check specific criteria\nnpx claude-flow@alpha verify check --verbose\n\n# View agent-specific issues\nnpx claude-flow@alpha truth --agent \u003Cagent-name> --format json\n```\n\n**Rollback Failures:**\n```bash\n# Check git status\ngit status\n\n# View rollback history\nnpx claude-flow@alpha verify rollback --history\n\n# Manual rollback\ngit reset --hard HEAD~1\n```\n\n**Verification Timeouts:**\n```bash\n# Increase timeout\nnpx claude-flow@alpha verify check --timeout 60s\n\n# Verify in batches\nnpx claude-flow@alpha verify batch --batch-size 10\n```\n\n### Exit Codes\n\nVerification commands return standard exit codes:\n\n- `0`: Verification passed (score ≥ threshold)\n- `1`: Verification failed (score \u003C threshold)\n- `2`: Error during verification (invalid input, system error)\n\n### Related Commands\n\n- `npx claude-flow@alpha pair` - Collaborative development with verification\n- `npx claude-flow@alpha train` - Training with verification feedback\n- `npx claude-flow@alpha swarm` - Multi-agent coordination with quality checks\n- `npx claude-flow@alpha report` - Generate comprehensive project reports\n\n### Best Practices\n\n1. **Set Appropriate Thresholds**: Use 0.99 for critical code, 0.95 for standard, 0.90 for experimental\n2. **Enable Auto-rollback**: Prevent bad code from persisting\n3. **Monitor Trends**: Track improvement over time, not just current scores\n4. **Integrate with CI\u002FCD**: Make verification part of your pipeline\n5. **Use Watch Mode**: Get immediate feedback during development\n6. **Export Metrics**: Track quality metrics in your monitoring system\n7. **Review Rollbacks**: Understand why changes were rejected\n8. **Train Agents**: Use verification feedback to improve agent performance\n\n### Additional Resources\n\n- Truth Scoring Algorithm: See `\u002Fdocs\u002Ftruth-scoring.md`\n- Verification Criteria: See `\u002Fdocs\u002Fverification-criteria.md`\n- Integration Examples: See `\u002Fexamples\u002Fverification\u002F`\n- API Reference: See `\u002Fdocs\u002Fapi\u002Fverification.md`\n","# Verification & Quality Assurance Skill\n\n## What This Skill Does\n\nThis skill provides a comprehensive verification and quality assurance system that ensures code quality and correctness through:\n\n- **Truth Scoring**: Real-time reliability metrics (0.0-1.0 scale) for code, agents, and tasks\n- **Verification Checks**: Automated code correctness, security, and best practices validation\n- **Automatic Rollback**: Instant reversion of changes that fail verification (default threshold: 0.95)\n- **Quality Metrics**: Statistical analysis with trends, confidence intervals, and improvement tracking\n- **CI\u002FCD Integration**: Export capabilities for continuous integration pipelines\n- **Real-time Monitoring**: Live dashboards and watch modes for ongoing verification\n\n## Prerequisites\n\n- Claude Flow installed (`npx claude-flow@alpha`)\n- Git repository (for rollback features)\n- Node.js 18+ (for dashboard features)\n\n## Quick Start\n\n```bash\n# View current truth scores\nnpx claude-flow@alpha truth\n\n# Run verification check\nnpx claude-flow@alpha verify check\n\n# Verify specific file with custom threshold\nnpx claude-flow@alpha verify check --file src\u002Fapp.js --threshold 0.98\n\n# Rollback last failed verification\nnpx claude-flow@alpha verify rollback --last-good\n```\n\n---\n\n## Complete Guide\n\n### Truth Scoring System\n\n#### View Truth Metrics\n\nDisplay comprehensive quality and reliability metrics for your codebase and agent tasks.\n\n**Basic Usage:**\n```bash\n# View current truth scores (default: table format)\nnpx claude-flow@alpha truth\n\n# View scores for specific time period\nnpx claude-flow@alpha truth --period 7d\n\n# View scores for specific agent\nnpx claude-flow@alpha truth --agent coder --period 24h\n\n# Find files\u002Ftasks below threshold\nnpx claude-flow@alpha truth --threshold 0.8\n```\n\n**Output Formats:**\n```bash\n# Table format (default)\nnpx claude-flow@alpha truth --format table\n\n# JSON for programmatic access\nnpx claude-flow@alpha truth --format json\n\n# CSV for spreadsheet analysis\nnpx claude-flow@alpha truth --format csv\n\n# HTML report with visualizations\nnpx claude-flow@alpha truth --format html --export report.html\n```\n\n**Real-time Monitoring:**\n```bash\n# Watch mode with live updates\nnpx claude-flow@alpha truth --watch\n\n# Export metrics automatically\nnpx claude-flow@alpha truth --export .claude-flow\u002Fmetrics\u002Ftruth-$(date +%Y%m%d).json\n```\n\n#### Truth Score Dashboard\n\nExample dashboard output:\n```\n? Truth Metrics Dashboard\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\nOverall Truth Score: 0.947 ✅\nTrend: ↗️ +2.3% (7d)\n\nTop Performers:\n  verification-agent   0.982 ⭐\n  code-analyzer       0.971 ⭐\n  test-generator      0.958 ✅\n\nNeeds Attention:\n  refactor-agent      0.821 ⚠️\n  docs-generator      0.794 ⚠️\n\nRecent Tasks:\n  task-456  0.991 ✅  \"Implement auth\"\n  task-455  0.967 ✅  \"Add tests\"\n  task-454  0.743 ❌  \"Refactor API\"\n```\n\n#### Metrics Explained\n\n**Truth Scores (0.0-1.0):**\n- `1.0-0.95`: Excellent ⭐ (production-ready)\n- `0.94-0.85`: Good ✅ (acceptable quality)\n- `0.84-0.75`: Warning ⚠️ (needs attention)\n- `\u003C0.75`: Critical ❌ (requires immediate action)\n\n**Trend Indicators:**\n- ↗️ Improving (positive trend)\n- → Stable (consistent performance)\n- ↘️ Declining (quality regression detected)\n\n**Statistics:**\n- **Mean Score**: Average truth score across all measurements\n- **Median Score**: Middle value (less affected by outliers)\n- **Standard Deviation**: Consistency of scores (lower = more consistent)\n- **Confidence Interval**: Statistical reliability of measurements\n\n### Verification Checks\n\n#### Run Verification\n\nExecute comprehensive verification checks on code, tasks, or agent outputs.\n\n**File Verification:**\n```bash\n# Verify single file\nnpx claude-flow@alpha verify check --file src\u002Fapp.js\n\n# Verify directory recursively\nnpx claude-flow@alpha verify check --directory src\u002F\n\n# Verify with auto-fix enabled\nnpx claude-flow@alpha verify check --file src\u002Futils.js --auto-fix\n\n# Verify current working directory\nnpx claude-flow@alpha verify check\n```\n\n**Task Verification:**\n```bash\n# Verify specific task output\nnpx claude-flow@alpha verify check --task task-123\n\n# Verify with custom threshold\nnpx claude-flow@alpha verify check --task task-456 --threshold 0.99\n\n# Verbose output for debugging\nnpx claude-flow@alpha verify check --task task-789 --verbose\n```\n\n**Batch Verification:**\n```bash\n# Verify multiple files in parallel\nnpx claude-flow@alpha verify batch --files \"*.js\" --parallel\n\n# Verify with pattern matching\nnpx claude-flow@alpha verify batch --pattern \"src\u002F**\u002F*.ts\"\n\n# Integration test suite\nnpx claude-flow@alpha verify integration --test-suite full\n```\n\n#### Verification Criteria\n\nThe verification system evaluates:\n\n1. **Code Correctness**\n   - Syntax validation\n   - Type checking (TypeScript)\n   - Logic flow analysis\n   - Error handling completeness\n\n2. **Best Practices**\n   - Code style adherence\n   - SOLID principles\n   - Design patterns usage\n   - Modularity and reusability\n\n3. **Security**\n   - Vulnerability scanning\n   - Secret detection\n   - Input validation\n   - Authentication\u002Fauthorization checks\n\n4. **Performance**\n   - Algorithmic complexity\n   - Memory usage patterns\n   - Database query optimization\n   - Bundle size impact\n\n5. **Documentation**\n   - JSDoc\u002FTypeDoc completeness\n   - README accuracy\n   - API documentation\n   - Code comments quality\n\n#### JSON Output for CI\u002FCD\n\n```bash\n# Get structured JSON output\nnpx claude-flow@alpha verify check --json > verification.json\n\n# Example JSON structure:\n{\n  \"overallScore\": 0.947,\n  \"passed\": true,\n  \"threshold\": 0.95,\n  \"checks\": [\n    {\n      \"name\": \"code-correctness\",\n      \"score\": 0.98,\n      \"passed\": true\n    },\n    {\n      \"name\": \"security\",\n      \"score\": 0.91,\n      \"passed\": false,\n      \"issues\": [...]\n    }\n  ]\n}\n```\n\n### Automatic Rollback\n\n#### Rollback Failed Changes\n\nAutomatically revert changes that fail verification checks.\n\n**Basic Rollback:**\n```bash\n# Rollback to last known good state\nnpx claude-flow@alpha verify rollback --last-good\n\n# Rollback to specific commit\nnpx claude-flow@alpha verify rollback --to-commit abc123\n\n# Interactive rollback with preview\nnpx claude-flow@alpha verify rollback --interactive\n```\n\n**Smart Rollback:**\n```bash\n# Rollback only failed files (preserve good changes)\nnpx claude-flow@alpha verify rollback --selective\n\n# Rollback with automatic backup\nnpx claude-flow@alpha verify rollback --backup-first\n\n# Dry-run mode (preview without executing)\nnpx claude-flow@alpha verify rollback --dry-run\n```\n\n**Rollback Performance:**\n- Git-based rollback: \u003C1 second\n- Selective file rollback: \u003C500ms\n- Backup creation: Automatic before rollback\n\n### Verification Reports\n\n#### Generate Reports\n\nCreate detailed verification reports with metrics and visualizations.\n\n**Report Formats:**\n```bash\n# JSON report\nnpx claude-flow@alpha verify report --format json\n\n# HTML report with charts\nnpx claude-flow@alpha verify report --export metrics.html --format html\n\n# CSV for data analysis\nnpx claude-flow@alpha verify report --format csv --export metrics.csv\n\n# Markdown summary\nnpx claude-flow@alpha verify report --format markdown\n```\n\n**Time-based Reports:**\n```bash\n# Last 24 hours\nnpx claude-flow@alpha verify report --period 24h\n\n# Last 7 days\nnpx claude-flow@alpha verify report --period 7d\n\n# Last 30 days with trends\nnpx claude-flow@alpha verify report --period 30d --include-trends\n\n# Custom date range\nnpx claude-flow@alpha verify report --from 2025-01-01 --to 2025-01-31\n```\n\n**Report Content:**\n- Overall truth scores\n- Per-agent performance metrics\n- Task completion quality\n- Verification pass\u002Ffail rates\n- Rollback frequency\n- Quality improvement trends\n- Statistical confidence intervals\n\n### Interactive Dashboard\n\n#### Launch Dashboard\n\nRun interactive web-based verification dashboard with real-time updates.\n\n```bash\n# Launch dashboard on default port (3000)\nnpx claude-flow@alpha verify dashboard\n\n# Custom port\nnpx claude-flow@alpha verify dashboard --port 8080\n\n# Export dashboard data\nnpx claude-flow@alpha verify dashboard --export\n\n# Dashboard with auto-refresh\nnpx claude-flow@alpha verify dashboard --refresh 5s\n```\n\n**Dashboard Features:**\n- Real-time truth score updates (WebSocket)\n- Interactive charts and graphs\n- Agent performance comparison\n- Task history timeline\n- Rollback history viewer\n- Export to PDF\u002FHTML\n- Filter by time period\u002Fagent\u002Fscore\n\n### Configuration\n\n#### Default Configuration\n\nSet verification preferences in `.claude-flow\u002Fconfig.json`:\n\n```json\n{\n  \"verification\": {\n    \"threshold\": 0.95,\n    \"autoRollback\": true,\n    \"gitIntegration\": true,\n    \"hooks\": {\n      \"preCommit\": true,\n      \"preTask\": true,\n      \"postEdit\": true\n    },\n    \"checks\": {\n      \"codeCorrectness\": true,\n      \"security\": true,\n      \"performance\": true,\n      \"documentation\": true,\n      \"bestPractices\": true\n    }\n  },\n  \"truth\": {\n    \"defaultFormat\": \"table\",\n    \"defaultPeriod\": \"24h\",\n    \"warningThreshold\": 0.85,\n    \"criticalThreshold\": 0.75,\n    \"autoExport\": {\n      \"enabled\": true,\n      \"path\": \".claude-flow\u002Fmetrics\u002Ftruth-daily.json\"\n    }\n  }\n}\n```\n\n#### Threshold Configuration\n\n**Adjust verification strictness:**\n```bash\n# Strict mode (99% accuracy required)\nnpx claude-flow@alpha verify check --threshold 0.99\n\n# Lenient mode (90% acceptable)\nnpx claude-flow@alpha verify check --threshold 0.90\n\n# Set default threshold\nnpx claude-flow@alpha config set verification.threshold 0.98\n```\n\n**Per-environment thresholds:**\n```json\n{\n  \"verification\": {\n    \"thresholds\": {\n      \"production\": 0.99,\n      \"staging\": 0.95,\n      \"development\": 0.90\n    }\n  }\n}\n```\n\n### Integration Examples\n\n#### CI\u002FCD Integration\n\n**GitHub Actions:**\n```yaml\nname: Quality Verification\n\non: [push, pull_request]\n\njobs:\n  verify:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v3\n\n      - name: Install Dependencies\n        run: npm install\n\n      - name: Run Verification\n        run: |\n          npx claude-flow@alpha verify check --json > verification.json\n\n      - name: Check Truth Score\n        run: |\n          score=$(jq '.overallScore' verification.json)\n          if (( $(echo \"$score \u003C 0.95\" | bc -l) )); then\n            echo \"Truth score too low: $score\"\n            exit 1\n          fi\n\n      - name: Upload Report\n        uses: actions\u002Fupload-artifact@v3\n        with:\n          name: verification-report\n          path: verification.json\n```\n\n**GitLab CI:**\n```yaml\nverify:\n  stage: test\n  script:\n    - npx claude-flow@alpha verify check --threshold 0.95 --json > verification.json\n    - |\n      score=$(jq '.overallScore' verification.json)\n      if [ $(echo \"$score \u003C 0.95\" | bc) -eq 1 ]; then\n        echo \"Verification failed with score: $score\"\n        exit 1\n      fi\n  artifacts:\n    paths:\n      - verification.json\n    reports:\n      junit: verification.json\n```\n\n#### Swarm Integration\n\nRun verification automatically during swarm operations:\n\n```bash\n# Swarm with verification enabled\nnpx claude-flow@alpha swarm --verify --threshold 0.98\n\n# Hive Mind with auto-rollback\nnpx claude-flow@alpha hive-mind --verify --rollback-on-fail\n\n# Training pipeline with verification\nnpx claude-flow@alpha train --verify --threshold 0.99\n```\n\n#### Pair Programming Integration\n\nEnable real-time verification during collaborative development:\n\n```bash\n# Pair with verification\nnpx claude-flow@alpha pair --verify --real-time\n\n# Pair with custom threshold\nnpx claude-flow@alpha pair --verify --threshold 0.97 --auto-fix\n```\n\n### Advanced Workflows\n\n#### Continuous Verification\n\nMonitor codebase continuously during development:\n\n```bash\n# Watch directory for changes\nnpx claude-flow@alpha verify watch --directory src\u002F\n\n# Watch with auto-fix\nnpx claude-flow@alpha verify watch --directory src\u002F --auto-fix\n\n# Watch with notifications\nnpx claude-flow@alpha verify watch --notify --threshold 0.95\n```\n\n#### Monitoring Integration\n\nSend metrics to external monitoring systems:\n\n```bash\n# Export to Prometheus\nnpx claude-flow@alpha truth --format json | \\\n  curl -X POST https:\u002F\u002Fpushgateway.example.com\u002Fmetrics\u002Fjob\u002Fclaude-flow \\\n  -d @-\n\n# Send to DataDog\nnpx claude-flow@alpha verify report --format json | \\\n  curl -X POST \"https:\u002F\u002Fapi.datadoghq.com\u002Fapi\u002Fv1\u002Fseries?api_key=${DD_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @-\n\n# Custom webhook\nnpx claude-flow@alpha truth --format json | \\\n  curl -X POST https:\u002F\u002Fmetrics.example.com\u002Fapi\u002Ftruth \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @-\n```\n\n#### Pre-commit Hooks\n\nAutomatically verify before commits:\n\n```bash\n# Install pre-commit hook\nnpx claude-flow@alpha verify install-hook --pre-commit\n\n# .git\u002Fhooks\u002Fpre-commit example:\n#!\u002Fbin\u002Fbash\nnpx claude-flow@alpha verify check --threshold 0.95 --json > \u002Ftmp\u002Fverify.json\n\nscore=$(jq '.overallScore' \u002Ftmp\u002Fverify.json)\nif (( $(echo \"$score \u003C 0.95\" | bc -l) )); then\n  echo \"❌ Verification failed with score: $score\"\n  echo \"Run 'npx claude-flow@alpha verify check --verbose' for details\"\n  exit 1\nfi\n\necho \"✅ Verification passed with score: $score\"\n```\n\n### Performance Metrics\n\n**Verification Speed:**\n- Single file check: \u003C100ms\n- Directory scan: \u003C500ms (per 100 files)\n- Full codebase analysis: \u003C5s (typical project)\n- Truth score calculation: \u003C50ms\n\n**Rollback Speed:**\n- Git-based rollback: \u003C1s\n- Selective file rollback: \u003C500ms\n- Backup creation: \u003C2s\n\n**Dashboard Performance:**\n- Initial load: \u003C1s\n- Real-time updates: \u003C100ms latency (WebSocket)\n- Chart rendering: 60 FPS\n\n### Troubleshooting\n\n#### Common Issues\n\n**Low Truth Scores:**\n```bash\n# Get detailed breakdown\nnpx claude-flow@alpha truth --verbose --threshold 0.0\n\n# Check specific criteria\nnpx claude-flow@alpha verify check --verbose\n\n# View agent-specific issues\nnpx claude-flow@alpha truth --agent \u003Cagent-name> --format json\n```\n\n**Rollback Failures:**\n```bash\n# Check git status\ngit status\n\n# View rollback history\nnpx claude-flow@alpha verify rollback --history\n\n# Manual rollback\ngit reset --hard HEAD~1\n```\n\n**Verification Timeouts:**\n```bash\n# Increase timeout\nnpx claude-flow@alpha verify check --timeout 60s\n\n# Verify in batches\nnpx claude-flow@alpha verify batch --batch-size 10\n```\n\n### Exit Codes\n\nVerification commands return standard exit codes:\n\n- `0`: Verification passed (score ≥ threshold)\n- `1`: Verification failed (score \u003C threshold)\n- `2`: Error during verification (invalid input, system error)\n\n### Related Commands\n\n- `npx claude-flow@alpha pair` - Collaborative development with verification\n- `npx claude-flow@alpha train` - Training with verification feedback\n- `npx claude-flow@alpha swarm` - Multi-agent coordination with quality checks\n- `npx claude-flow@alpha report` - Generate comprehensive project reports\n\n### Best Practices\n\n1. **Set Appropriate Thresholds**: Use 0.99 for critical code, 0.95 for standard, 0.90 for experimental\n2. **Enable Auto-rollback**: Prevent bad code from persisting\n3. **Monitor Trends**: Track improvement over time, not just current scores\n4. **Integrate with CI\u002FCD**: Make verification part of your pipeline\n5. **Use Watch Mode**: Get immediate feedback during development\n6. **Export Metrics**: Track quality metrics in your monitoring system\n7. **Review Rollbacks**: Understand why changes were rejected\n8. **Train Agents**: Use verification feedback to improve agent performance\n\n### Additional Resources\n\n- Truth Scoring Algorithm: See `\u002Fdocs\u002Ftruth-scoring.md`\n- Verification Criteria: See `\u002Fdocs\u002Fverification-criteria.md`\n- Integration Examples: See `\u002Fexamples\u002Fverification\u002F`\n- API Reference: See `\u002Fdocs\u002Fapi\u002Fverification.md`\n",{"name":5,"tags":51,"version":52,"category":43,"description":7},[32,37,29,39,33,35],"2.0.0","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fdnyoussef\u002Fverification-quality-assurance",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill verification-quality-assurance",{"tool":68,"command":69},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill verification-quality-assurance",{"tool":71,"command":72},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill verification-quality-assurance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdnyoussef\u002Fverification-quality-assurance\u002FSKILL.md",true,[76,82],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Feval_queries.json","REFERENCE","参考文档",855,"https:\u002F\u002Fgithub.com\u002Feugenelim\u002Fagent-ready-repo\u002Fblob\u002Fmain\u002Fpacks\u002F_example\u002F.apm\u002Fskills\u002Fexample-skill\u002Fevals\u002Feval_queries.json",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"skill-report.json",25451,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdnyoussef\u002Fverification-quality-assurance\u002Fskill-report.json",[87,97,107,116,122,129],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":93,"publishedAt":46},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[92],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[94,95,96],"model","model hierarchy","model hierarchy skill",{"skillNo":98,"name":99,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":103,"publishedAt":46},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[102],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[104,105,106],"MCP","zoom","zoom mcp",{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":46},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[113,114,115,105],"sdk","zoom apps sdk","apps",{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":46},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[118],{"skillNo":123,"name":124,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":128,"publishedAt":46},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[127],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[124],{"skillNo":130,"name":131,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":46},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[131]]