← Files 8gnc — Brand Growth DiagnosticARCHIVED FILE
skills/deep-research/reference/report-assembly.md
3.39 KB · Sep 30, 2026 · 23:15 UTC
# Report Assembly: Progressive File Generation
## Length Requirements by Mode
| Mode | Target Words | Description |
|------|--------------|-------------|
| Quick | 2,000-4,000 | Baseline quality threshold |
| Standard | 4,000-8,000 | Comprehensive analysis |
| Deep | 8,000-15,000 | Thorough investigation |
| UltraDeep | 15,000-20,000+ | Maximum rigor (at output limit) |
---
## Output Token Safeguard
Respect the current surface's output limit; do not assume a fixed token ceiling.
**Practical limits:**
- Target <=20,000 words total output
- Leave safety margin for tool call overhead
- Reports >20,000 words require auto-continuation (see continuation.md)
---
## Progressive Section Generation
**Core Strategy:** Generate and write each section individually using Write/Edit tools. This allows unlimited report length while keeping each generation manageable.
### Phase 8.1: Setup
```bash
# Create a user-approved workspace folder
mkdir -p ./research-output/[folder_name]
# Initialize markdown file with frontmatter
# Path: [folder]/research_report_[YYYYMMDD]_[slug].md
```
### Phase 8.2: Section Generation Loop
**Pattern:** Generate section -> Write/Edit to file -> Move to next section
Each Write/Edit call contains ONE section (<=2,000 words per call)
**Initialize citation tracking (persist to disk):**
```bash
# Create sources.json in the report folder for durable provenance
# Each entry: {"num": N, "title": "...", "url": "...", "claim": "...", "evidence_quote": "..."}
echo '[]' > [folder]/sources.json
```
Update sources.json after each section. This survives context compaction and enables continuation agents to pick up citation state.
**Section sequence:**
1. **Executive Summary** (200-400 words)
- Tool: Write(file, frontmatter + Executive Summary)
- Track citations
- Progress: "Executive Summary complete"
2. **Introduction** (400-800 words)
- Tool: Edit(file, append Introduction)
- Track citations
- Progress: "Introduction complete"
3. **Finding 1-N** (600-2,000 words each)
- Tool: Edit(file, append Finding N)
- Track citations
- Progress: "Finding N complete"
4. **Synthesis & Insights**
- Novel insights beyond source statements
- Tool: Edit(append)
5. **Limitations & Caveats**
- Counterevidence, gaps, uncertainties
- Tool: Edit(append)
6. **Recommendations**
- Immediate actions, next steps, research needs
- Tool: Edit(append)
7. **Bibliography** (CRITICAL)
- EVERY citation from citations_used list
- NO ranges, NO placeholders, NO truncation
- Tool: Edit(append)
8. **Methodology Appendix**
- Research process, verification approach
- Tool: Edit(append)
---
## File Organization
**1. Create dedicated folder:**
- Location: a user-approved workspace path such as `./research-output/[TopicName]_Research_[YYYYMMDD]/`
- Clean topic name (remove special chars, use underscores)
**2. File naming convention:**
All files use same base name:
- `research_report_20251104_topic_slug.md`
- `research_report_20251104_topic_slug.html`
- `research_report_20251104_topic_slug.pdf`
Do not create a second hidden tracking copy. Keep provenance and continuation state beside the user-approved report.
---
## Word Count Per Section
**CRITICAL:** No single Edit call should exceed 2,000 words.
Example: 10 findings x 1,500 words = 15,000 words total
- Each Edit call: 1,500 words (under limit)
- File grows to 15,000 words
- No single tool call exceeds limits
SHA-256: 283c471399d7c9ce12883a4f2902568cef6dadd46477cbff5d91bfa9b494e6ff