[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71S4MXDAZCZR3XXAWRBC73Y":3,"skill-same:01M71S4MXDAZCZR3XXAWRBC73Y":67},{"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":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M71S4MXDAZCZR3XXAWRBC73Y","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.","manykarim\u002Frobotframework-agentguard","manykarim","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F61293164?v=4","01M71S15ZAXR15JHKM1N7BHT21","Many Kasiriha","01M71S160CWQXETSCYWXDVNYJ2",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmanykarim\u002Frobotframework-agentguard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverification-quality\u002FSKILL.md",[],[19,20,5,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"verification","quality","quality assurance","reliability","outputs","automatic","accuracy","for","high","with","quality-assurance","scoring","code quality","truth-scoring","system","ci-cd","ci","metrics","code","2026-11-10 13:02:02",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":43,"version":45,"category":29,"description":7},[19,32,20,44,36,34],"rollback","2.0.0","main","63caf799a0409377ce4fd434e24e9eac7c05c6fa",".claude\u002Fskills\u002Fverification-quality",0,"https:\u002F\u002Fgithub.com\u002Fmanykarim\u002Frobotframework-agentguard","https:\u002F\u002Fgithub.com\u002Fmanykarim","2026-07-27 14:20:37",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add manykarim\u002Frobotframework-agentguard --skill \"Verification & Quality Assurance\"",{"tool":59,"command":60},"bunx","bunx skills add manykarim\u002Frobotframework-agentguard --skill \"Verification & Quality Assurance\"",{"tool":62,"command":63},"pnpm","pnpm dlx skills add manykarim\u002Frobotframework-agentguard --skill \"Verification & Quality Assurance\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanykarim\u002Frobotframework-agentguard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverification-quality\u002FSKILL.md",true,[],[68,90,98,116,130,146],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":79,"publishedAt":38},"01M71S584X6G22VN1KZ42DZ33K","good-example","Demonstrate a minimal valid Agent Skill used by AgentGuard's own tests.","https:\u002F\u002Fgithub.com\u002Fmanykarim\u002Frobotframework-agentguard\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fgood-skill\u002FSKILL.md",[74],{"categoryNo":75,"categoryName":76,"taxonomyType":77,"taxonomyTypeDesc":78},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[80,81,82,83,84,85,86,87,88,89],"good example","good","example","valid","agentguard","read","write","minimal","tests","agent skill",{"skillNo":91,"name":92,"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":93,"categories":94,"keywords":95,"publishedAt":38},"01M71S55P2APRSAC0S9F5X556A","bad-example","https:\u002F\u002Fgithub.com\u002Fmanykarim\u002Frobotframework-agentguard\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fbad-skill\u002FSKILL.md",[],[96,82,97,85],"bad","bad example",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":105,"publishedAt":38},"01M71S53FGWCB5XXX4QGW3RF4P","injection-skill","Demonstrates a prompt-injection payload embedded in the body.","https:\u002F\u002Fgithub.com\u002Fmanykarim\u002Frobotframework-agentguard\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsecurity\u002Finjection-skill\u002FSKILL.md",[104],{"categoryNo":75,"categoryName":76,"taxonomyType":77,"taxonomyTypeDesc":78},[106,107,85,108,109,110,111,112,113,114,115],"injection skill","injection","payload","body","prompt","unknown","Bash","prompt-injection","author","embedded",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":123,"publishedAt":38},"01M71S518MA1JN7F1DZ5XVRH06","curl-pipe-skill","Skill whose installer script demonstrates the `curl ... | sh` antipattern.","https:\u002F\u002Fgithub.com\u002Fmanykarim\u002Frobotframework-agentguard\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsecurity\u002Fcurl-pipe-skill\u002FSKILL.md",[122],{"categoryNo":75,"categoryName":76,"taxonomyType":77,"taxonomyTypeDesc":78},[124,125,126,127,128,111,112,114,129],"curl","pipe","curl pipe skill","installer","antipattern","script",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":137,"publishedAt":38},"01M71S4YYFE3HJKDEQR5Z944ZW","clean-skill","A minimal, well-formed skill used as the security-scanner happy path.","https:\u002F\u002Fgithub.com\u002Fmanykarim\u002Frobotframework-agentguard\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsecurity\u002Fclean-skill\u002FSKILL.md",[136],{"categoryNo":75,"categoryName":76,"taxonomyType":77,"taxonomyTypeDesc":78},[138,139,84,140,87,141,142,143,144,85,145],"clean skill","clean","scanner","grep","true","as","security","path",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":38},"01M71S4W60AZYGA57HJWYBQZMJ","rf-libdoc-search","Search Robot Framework library\u002Fresource\u002Fsuite documentation to find matching keywords for a use case. Use when asked to find keywords, search libdoc, match a use case to keywords, or scan multiple libraries\u002Fresources for relevant keywords.","https:\u002F\u002Fgithub.com\u002Fmanykarim\u002Frobotframework-agentguard\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fintegrations\u002Fskills\u002Frf-libdoc-search\u002FSKILL.md",[],[153,154,155,26,156,157,158,159,160,161,162,163,164,165,166,167,168,169],"search","rf libdoc search","case","resources","relevant","scan","libraries","documentation","robot","when","framework","use","match","library","suite","matching","find"]