re-generate-report
npx skills add https://github.com/caldiaworks/caldiaworks-marketplace --skill re-generate-report
Agent 安装分布
Skill 文档
Integrated Report â Reverse Engineering Phase 4
Aggregate ALL reverse engineering artifacts from Phase 1-3 into a consolidated As-Is specification document. This skill reads the manifest to discover all artifacts and produces a single comprehensive report.
Three Principles
1. Code is Truth
- As-Is spec documents ACTUAL code behavior
- Suspected bugs remain in Question List, not removed from spec
- No editorial improvements or “should” statements
2. Traceability to Line
- Traceability matrix links every requirement to source line
- All findings traceable to Phase 1-3 artifacts
- Orphaned findings (no source) flagged for review
3. Behavior over Intent
- Executive summary focuses on “what” system does, not “why”
- Architectural patterns described from observed structure
- No assumptions about business intent
Execution
Step 1: Load Manifest and Collect Artifacts
Read docs/reverse/{analysis}/manifest.json.
Verify:
phase3.statusis"verified"â if not, report error and stop
Collect all artifacts:
- Phase 1:
phase1.outputâ structure map - Phase 2:
phase2.completed[].outputâ logic diagrams - Phase 3:
phase3.completed[].outputâ requirements documents
Read each artifact and extract key sections.
Set phase4.status to "in_progress".
Step 2: Cross-Reference Verification
Requirements â Logic Diagrams: For each requirement, find corresponding nodes in Phase 2 logic diagrams. Confirm line numbers match.
Logic Diagrams â Structure Map: For each logic diagram, confirm the source file is listed in the Phase 1 structure map.
Log inconsistencies:
| Finding | Artifact A | Artifact B | Issue |
|---|
Step 3: Build Traceability Matrix
Combine requirements from all Phase 3 documents:
| Module | REQ-ID | EARS Type | Requirement | Source File:Line | Evidence Strength |
|---|
Evidence strength:
- â Strong: Implementation + verified by Critic
- â ï¸ Medium: Implementation + partial verification
- â Weak: Implementation only
Step 4: Consolidate Question Lists
Merge from all phases and prioritize:
- ð´ Critical: Suspected bugs with high impact (data loss, crashes)
- ð¡ Important: Architecture/design clarity questions
- ð¢ Informational: Optimization opportunities, style concerns
Step 5: Generate Executive Summary
Summarize from collected artifacts:
- System type and technology stack
- Primary functions (from structure map)
- Analysis scope and coverage
- Key findings and technical debt count
Step 6: Generate Report
Write to docs/reverse/{analysis}/04-report.md:
# As-Is Specification: {analysis}
**Document Version**: 1.0
**Analysis Date**: {YYYY-MM-DD}
**Target System**: {system description}
**Language**: {language}
**Framework**: {framework and version}
**Analysis Scope**: {scope description}
---
## Executive Summary
### System Overview
**System Type**: {description}
**Primary Functions**:
- {function 1}
- {function 2}
**Technology Stack**:
- **Language**: {language and version}
- **Framework**: {framework}
- **Database**: {if applicable}
- **Messaging**: {if applicable}
### Analysis Scope
**Files Analyzed**: {count}
**Components Analyzed**: {count}
**Requirements Extracted**: {count} EARS requirements
**Coverage**: {percentage} of target scope
### Key Findings
- **Technical Debt**: {count} suspected issues
- ð´ Critical: {count}
- ð¡ Important: {count}
- ð¢ Informational: {count}
---
## Technology Stack
{detailed technology stack from structure map}
---
## Module Catalog
{component listing from structure map, organized by category}
---
## Requirements Catalog (EARS)
### By Module
{requirements grouped by component}
### By EARS Type
| EARS Type | Count | Percentage |
|:----------|:------|:-----------|
| Ubiquitous | {n} | {%} |
| Event-driven | {n} | {%} |
| Unwanted | {n} | {%} |
| State-driven | {n} | {%} |
| Optional | {n} | {%} |
| **Total** | **{N}** | **100%** |
---
## Appendix A: Logic Diagrams
{embedded or linked logic diagrams from Phase 2}
---
## Appendix B: Traceability Matrix
{full traceability matrix from Step 3}
---
## Appendix C: Question List (Prioritized)
### ð´ Critical
{critical questions with source references and recommendations}
### ð¡ Important
{important questions}
### ð¢ Informational
{informational items}
---
## Appendix D: Analysis Constraints
### Confidence Factors
{from structure map}
### Evidence Strength Distribution
| Strength | Count | Percentage |
|:---------|:------|:-----------|
| â
Strong | {n} | {%} |
| â ï¸ Medium | {n} | {%} |
| â Weak | {n} | {%} |
---
**Document Control**
| Version | Date | Description |
|:--------|:-----|:------------|
| 1.0 | {YYYY-MM-DD} | Initial As-Is specification |
Step 7: Update Manifest
- Set
phase4.statusto"completed" - Set
phase4.outputto"04-report.md" - Update
updatedtimestamp
Validation Before Completion
After writing the report, re-read it and verify every number against the source data. Counting errors in the executive summary undermine confidence in the entire report.
- All Phase 1-3 artifacts collected and referenced
- Cross-reference verification completed
- Traceability matrix links all requirements to source
- Question list prioritized (Critical / Important / Informational)
- Count verification: Total requirements in executive summary matches actual count in requirements catalog. EARS type distribution sums to the total. Question list count matches actual items in Appendix C. Re-count by enumerating each item â do not rely on numbers from Phase 3 documents or your own earlier statements
- Executive summary reflects actual findings (no speculation)
- No requirements added that aren’t in Phase 3 documents
- manifest.json updated
Prohibited Actions
- Do NOT add requirements not present in Phase 3 artifacts
- Do NOT editorialize or propose improvements in As-Is spec
- Do NOT remove suspected bugs â they belong in the Question List
- Do NOT speculate on business intent
- Do NOT modify Phase 1-3 artifacts