1---2name: analysis-documentation3description: Structured, reproducible analysis documentation. Use when documenting analysis findings, creating analysis notebooks, ensuring reproducibility, or building analysis archives for future reference.4---56# Analysis Documentation78# When to use9- Finalising an analysis before sharing it with stakeholders10- Handing off an analysis to another team member or to a future self11- Archiving recurring analyses so they can be run again consistently12- Preparing for peer review or a formal audit13- Converting an exploratory notebook into a reference document1415# Process161. **Confirm audience and scope** — determine whether the primary reader is technical (data team), business (stakeholders), or both. For mixed audiences, use a tiered structure. See `references/audience_depth_guide.md` for calibration.172. **Write the business context section** — state the business question, the stakeholders who requested the analysis, the decisions it informs, and the success criteria.183. **Document data sources** — for each source, record the table or file, date range, row count, key columns, and any known quality issues or exclusions applied.194. **Write the methodology section** — describe the analytical approach, tools and library versions, key assumptions, and important decisions made (and alternatives considered). Reference the assumptions log if one exists.205. **Record results** — include key metrics and statistics, embed or link visualisations with descriptive captions, and present findings in order of importance.216. **Write the insights, recommendations, and reproducibility section** — connect each finding to a business implication and a next action. Document the steps required to reproduce the analysis (data access, environment, execution order). Use `assets/analysis_doc_template.md` as the structure.2223# Inputs the skill needs24- Final code (SQL, Python, notebook) and outputs (charts, tables)25- Business question and stakeholder context26- Key findings and recommendations already identified27- Data source details (tables, date ranges, sample sizes)28- Library and tool versions used2930# Output31- `assets/analysis_doc_template.md` — completed analysis document covering context, data, methodology, results, and reproducibility32- Linked or embedded visualisations and code references