html-report-generation
Skill2 starsChanged 7 months agoMITView on GitHub
Generate polished, interactive single-file HTML reports with business-minimal design for Japanese client defense scenarios. Compiles analysis, critique, persuasion scenarios, and QA validation results into a navigable, print-friendly report. Use this skill when creating final defense reports, rendering analysis results as HTML, generating business reports, or producing client-meeting preparation documents. MUST trigger on any report generation or HTML output task in the defense pipeline.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- microsoft/copilot-studio-gallerytheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- microsoft/copilot-studio-gallery★ 14same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- jp-client-defenderSkill
- file-preprocessingSkill
- deliverable-analysisSkill
- gap-analysisSkill
- decision-analysisSkill
- jp-client-critiqueSkill
- persuasion-scenariosSkill
- consulting-qaSkill
- quality-gateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
All upstream analysis is complete and needs to be compiled into a report
- Distinctive: line 23
Read all workspace JSON files:
- Very specific: line 32
Read the HTML template from assets/report-template.html (relative to this skill directory).
- Very specific: line 51
Ensure all string values are properly JSON-escaped: backslashes doubled (\\), double quotes escaped (\"), newlines as \n, tabs as \t.
- Distinctive: line 52
Do NOT pretty-print the JSON with indentation — use compact single-line output to avoid accidental line-break issues.
- Very specific: line 53
After writing the file, verify by reading back the line containing const REPORT_DATA and checking it ends with }.
- Distinctive: line 57
After writing the HTML file, run the validation script:
- Distinctive: line 61
If the script exits with code 0, the report is valid.
- Distinctive: line 64
Write the complete HTML file to the path specified by the orchestrator.
- Distinctive: line 70
Single-file: All CSS and JS embedded. Only external dependency: Google Fonts CDN (Inter + Noto Sans JP)
- Very specific: line 71
Data-driven: All content rendered from the REPORT_DATA JavaScript variable
- Distinctive: line 136
If any JSON file is missing, generate report with available data + warning banner
- Distinctive: line 137
If data is malformed, render what's parseable and mark broken sections
- Distinctive: line 138
Always produce an HTML file — partial report > no report
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HTML Report Generation Skill
{WORKSPACE}= timestamped run directory provided by the orchestrator (e.g.,_workspace/run_20260404_153000).
Purpose
Compile all pipeline data into a single, self-contained HTML file that serves as the user's primary tool for Japanese client defense preparation. The report must be immediately useful — a professional can open it, find their item, see the criticism, and rehearse their argument within seconds.
When to Use
- All upstream analysis is complete and needs to be compiled into a report
- User needs a final, actionable defense preparation document
- Results need to be rendered as an interactive HTML report
Report Generation Process
Step 1: Load Data
Read all workspace JSON files:
{WORKSPACE}/01_analyst_items.json{WORKSPACE}/02_critic_findings.json{WORKSPACE}/03_strategist_scenarios.json{WORKSPACE}/04_qa_results.json{WORKSPACE}/05_decision_recommendations.json(if exists){WORKSPACE}/06_gap_analysis.json(if exists)
Step 2: Load Template
Read the HTML template from assets/report-template.html (relative to this skill directory).
Step 3: Merge Data
Combine all JSON data into a single REPORT_DATA object following the structure defined in the report-generator agent definition.
Step 4: Inject Data
Replace the placeholder in the template. The template contains:
const REPORT_DATA = /* __REPORT_DATA_PLACEHOLDER__ */ {};You MUST replace the entire pattern /* __REPORT_DATA_PLACEHOLDER__ */ {} with the JSON data (not just the comment — the trailing {} must also be replaced). The result should be:
const REPORT_DATA = {actual merged data};CRITICAL — JSON Safety Rules for HTML Embedding:
- The JSON data will be embedded inside a
<script>tag, so any</script>substring in string values will break the HTML parser. Replace all occurrences:</script>→<\/script>and</Script>→<\/Script>(case-insensitive). - Ensure all string values are properly JSON-escaped: backslashes doubled (
\\), double quotes escaped (\"), newlines as\n, tabs as\t. - Do NOT pretty-print the JSON with indentation — use compact single-line output to avoid accidental line-break issues.
- After writing the file, verify by reading back the line containing
const REPORT_DATAand checking it ends with};on the same line.
Step 4.5: Validate Report
After writing the HTML file, run the validation script:
node .claude/skills/08_html-report-generation/scripts/validate-report.js {WORKSPACE}/{TIMESTAMP}_client-defense-report.htmlIf the script exits with code 0, the report is valid. If it exits with code 1, read the error output, fix the issue, and re-write the file.
Step 5: Write Output
Write the complete HTML file to the path specified by the orchestrator.
Template Design Principles
The template in assets/report-template.html follows these design principles:
- Single-file: All CSS and JS embedded. Only external dependency: Google Fonts CDN (Inter + Noto Sans JP)
- Data-driven: All content rendered from the
REPORT_DATAJavaScript variable - Navigation-first: Left sidebar with item listing, severity filters, search
- Progressive disclosure: Summary → Item → Finding → Argument Tree → QA Details
- Print-ready: Print stylesheet hides interactive elements, expands all sections
- Keyboard-accessible: j/k navigation, e to expand, p to print
Report Sections
1. Executive Summary (Top)
- Deliverable title and type
- Total items, findings, severity breakdown
- Defense readiness score (gauge visualization)
- QA pass rate
- Top 3 critical issues
2. Sidebar Navigation
- Filterable list of all items
- Severity indicators (colored dots)
- QA status badges
- Search box
3. Item Cards (Main Content)
Each item has a card containing:
- Item title, category, section
- Content summary
- List of findings (expandable)
4. Finding Details (Within Item Cards)
Each finding expands to show:
- Criticism type badge and severity
- Japanese phrasing (criticism_jp)
- Detailed explanation
- Client psychology insight
5. Argument Tree (Within Finding Details)
Expandable accordion showing:
- Level-by-level debate flow
- Technique badges
- Evidence lists
- Japanese business phrases
- Visual flow arrows between levels
6. QA Validation (Within Finding Details)
- 5 consulting firm grade badges
- Expandable details per firm
- Overall verdict badge (PASS/REVISION_NEEDED/FAIL)
7. QA Summary Section (Bottom)
- Aggregate scores by consulting firm
- Radar chart visualization
- Global recommendations
User Convenience Features
The report prioritizes user convenience:
- Quick find: Ctrl+F works, but also custom search that filters items
- Severity focus: One-click filter to show only HIGH severity items
- Meeting mode: Button to show only items with QA=PASS for confident presentation
- Copy button: On each Japanese phrase and argument for quick copy-paste
- Bookmark support: URL hash navigation (#item-001) for sharing specific sections
- Responsive: Works on tablet screens for in-meeting reference
Error Handling
- If any JSON file is missing, generate report with available data + warning banner
- If data is malformed, render what's parseable and mark broken sections
- Always produce an HTML file — partial report > no report
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

