Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

quality-report-generate

БесплатноБез исполняемых скриптовНе проверен

Generate comprehensive quality report with metrics and verification. Produces final CHAPTER_XX_VERIFICATION.md and quality_metrics.json for deployment approval.

aiskillstoreот aiskillstore★ 509 звёзд на GitHub

Об этом скилле

Quality Report Generate Skill

Purpose

This skill generates the final quality report documenting everything about a chapter's generation and validation. The report:

  • Aggregates all validation results from previous gates
  • Calculates quality metrics (content size, structure complexity, accuracy)
  • Generates human-readable markdown report for review
  • Creates machine-readable JSON metrics for tracking and CI/CD
  • Provides deployment decision (pass/fail/requires-review)

This is the final skill before validation gates, producing the evidence needed to approve or reject a chapter for deployment.

What to Do

  1. Collect all validation artifacts

    • Load validation_structure.json (Gate 1 results)
    • Load validation_semantic.json (Gate 2 results)
    • Load consolidation_log.json (consolidation data)
    • Load final chapter_XX.html file
  2. Extract metadata from chapter

    • Parse HTML to extract structure
    • Count content elements (headings, paragraphs, lists)
    • Calculate word count and content size
    • Verify CSS class usage
  3. Calculate quality metrics

    • Overall validation score (0-100)
    • Structural compliance percentage
    • Semantic compliance percentage
    • Content completeness estimate
    • Accuracy score (if reference data available)
  4. Generate markdown report

    • Create human-readable verification report
    • Include summary status (✅ PASS / ⚠️ REVIEW / ❌ FAIL)
    • Document all validation results
    • List findings and recommendations
  5. Generate JSON metrics

    • Machine-readable metrics for tracking
    • Suitable for CI/CD pipelines
    • Enable automated quality dashboards
    • Support trend analysis
  6. Save both report formats

    • Save: output/chapter_XX/chapter_artifacts/CHAPTER_XX_VERIFICATION.md
    • Save: output/chapter_XX/chapter_artifacts/quality_metrics.json
    • Timestamp both files
    • Create summary statistics

Input Files

Validation reports (from previous gates):

  • validation_structure.json - HTML structure validation results
  • validation_semantic.json - Semantic validation results
  • consolidation_log.json - Page consolidation metadata

Chapter content:

  • chapter_XX.html - Final consolidated HTML
  • page_artifacts/page_YY/*.html - Individual page HTML (optional, for analysis)

Reference data (optional):

  • page_artifacts/page_YY/02_page_XX.png - Original PDF pages (for visual comparison)

Quality Metrics Calculation

Overall Validation Score (0-100)

base_score = 100

# Deduct for structure issues
if structure_errors > 0:
    base_score -= (structure_errors * 10)

# Deduct for semantic issues
if semantic_errors > 0:
    base_score -= (semantic_errors * 5)

# Deduct for warnings
warning_count = structure_warnings + semantic_warnings
base_score -= (warning_count * 2)

# Bonus for semantic classes
if semantic_classes_ratio > 0.8:
    base_score += 5

overall_score = max(0, min(100, base_score))

Content Completeness

expected_pages = last_page - first_page + 1
pages_with_content = count_pages_with_substantial_content()
completeness_percent = (pages_with_content / expected_pages) * 100

Structural Compliance

checks_passed = structure_validation_checks_passed
checks_total = structure_validation_checks_total
compliance_percent = (checks_passed / checks_total) * 100

Semantic Compliance

required_classes = [
    'page-container', 'page-content', 'chapter-header',
    'section-heading', 'paragraph', 'bullet-list'
]
found_classes = [c for c in required_classes if c in html]
compliance_percent = (len(found_classes) / len(required_classes)) * 100

Output: Markdown Report

Path: output/chapter_XX/chapter_artifacts/CHAPTER_XX_VERIFICATION.md

Example structure:

# Chapter 2 HTML Accuracy Verification Report

## Summary
**Status**: ✅ **VERIFIED ACCURATE**

The Chapter 2 HTML document has been thoroughly verified for accuracy and quality. All validation gates passed successfully.

---

## Overall Quality Metrics

| Metric | Value | Target | Status |
|--------|-------|--------|--------|
| **Overall Quality Score** | 96/100 | ≥85 | ✅ PASS |
| **Structure Validation** | 100% | 100% | ✅ PASS |
| **Semantic Validation** | 98% | ≥90% | ✅ PASS |
| **Content Completeness** | 100% | 100% | ✅ PASS |
| **Visual Accuracy** | 94% | ≥85% | ✅ PASS |

---

## Content Summary

### Pages
- **Book Pages**: 16-29 (14 pages)
- **PDF Indices**: 15-28
- **Chapter**: 2 - Rights in Real Estate

### Content Elements
- **Total Paragraphs**: 156
- **Total Headings**: 28 (1 h1, 4 h2, 23 h4)
- **Total Lists**: 12 (132 total items)
- **Total Tables/Exhibits**: 3
- **Total Images**: 5
- **Total Words**: 12,547

---

## Validation Results

### ✅ HTML Structure Validation (PASSED)

All structural checks passed:
- ✓ HTML5 DOCTYPE valid
- ✓ `<html>`, `<head>`, `<body>` tags properly formed
- ✓ Meta charset and viewport tags present
- ✓ Title t
Полный SKILL.md на GitHub

Установить quality-report-generate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

skill-report.json

FAQ

Что делает скилл quality-report-generate?

Generate comprehensive quality report with metrics and verification. Produces final CHAPTER_XX_VERIFICATION.md and quality_metrics.json for deployment approval.

Как установить скилл quality-report-generate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл quality-report-generate запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить quality-report-generate с