hive-skills 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +235 -0
  3. package/assets/LICENSE +32 -0
  4. package/assets/THIRD_PARTY_NOTICES.md +72 -0
  5. package/assets/manifest.json +1290 -0
  6. package/assets/skills/authored/code-review/composable/BUNDLE.md +192 -0
  7. package/assets/skills/authored/code-review/composable/INDEX.md +13 -0
  8. package/assets/skills/authored/code-review/composable/VERSION +1 -0
  9. package/assets/skills/authored/code-review/composable/mini/01-review-method.md +34 -0
  10. package/assets/skills/authored/code-review/composable/mini/02-security-review.md +20 -0
  11. package/assets/skills/authored/code-review/composable/mini/03-correctness-bugs.md +19 -0
  12. package/assets/skills/authored/code-review/composable/mini/04-concurrency.md +16 -0
  13. package/assets/skills/authored/code-review/composable/mini/05-error-handling.md +12 -0
  14. package/assets/skills/authored/code-review/composable/mini/06-performance.md +11 -0
  15. package/assets/skills/authored/code-review/composable/mini/07-api-design.md +20 -0
  16. package/assets/skills/authored/code-review/composable/mini/08-missing-tests.md +25 -0
  17. package/assets/skills/authored/code-review/composable/mini/09-refactoring-and-communication.md +32 -0
  18. package/assets/skills/authored/data-analysis/composable/BUNDLE.md +186 -0
  19. package/assets/skills/authored/data-analysis/composable/INDEX.md +13 -0
  20. package/assets/skills/authored/data-analysis/composable/VERSION +1 -0
  21. package/assets/skills/authored/data-analysis/composable/mini/01-data-quality-profiling.md +26 -0
  22. package/assets/skills/authored/data-analysis/composable/mini/02-aggregation-pitfalls.md +21 -0
  23. package/assets/skills/authored/data-analysis/composable/mini/03-time-series.md +19 -0
  24. package/assets/skills/authored/data-analysis/composable/mini/04-segmentation.md +23 -0
  25. package/assets/skills/authored/data-analysis/composable/mini/05-discount-pricing.md +17 -0
  26. package/assets/skills/authored/data-analysis/composable/mini/06-insight-generation.md +25 -0
  27. package/assets/skills/authored/data-analysis/composable/mini/07-executive-writing.md +26 -0
  28. package/assets/skills/authored/data-analysis/composable/mini/08-recommendations.md +20 -0
  29. package/assets/skills/authored/data-analysis/composable/mini/09-reproducibility-assumptions.md +20 -0
  30. package/assets/skills/authored/financial-analysis/composable/BUNDLE.md +1293 -0
  31. package/assets/skills/authored/financial-analysis/composable/INDEX.md +17 -0
  32. package/assets/skills/authored/financial-analysis/composable/VERSION +1 -0
  33. package/assets/skills/authored/financial-analysis/composable/mini/00-core.md +69 -0
  34. package/assets/skills/authored/financial-analysis/composable/mini/01-profitability-efficiency-ratios.md +173 -0
  35. package/assets/skills/authored/financial-analysis/composable/mini/02-liquidity-leverage-ratios.md +120 -0
  36. package/assets/skills/authored/financial-analysis/composable/mini/03-valuation-ratios-interpretation.md +107 -0
  37. package/assets/skills/authored/financial-analysis/composable/mini/04-dcf-projection-wacc.md +122 -0
  38. package/assets/skills/authored/financial-analysis/composable/mini/05-dcf-terminal-value-sensitivity.md +75 -0
  39. package/assets/skills/authored/financial-analysis/composable/mini/06-comparables-precedents.md +78 -0
  40. package/assets/skills/authored/financial-analysis/composable/mini/07-budget-variance-analysis.md +47 -0
  41. package/assets/skills/authored/financial-analysis/composable/mini/08-driver-based-forecasting-scenarios.md +111 -0
  42. package/assets/skills/authored/financial-analysis/composable/mini/09-rolling-forecasts-accuracy.md +114 -0
  43. package/assets/skills/authored/financial-analysis/composable/mini/10-reporting-exec-summary.md +58 -0
  44. package/assets/skills/authored/financial-analysis/composable/mini/11-industry-adaptations.md +130 -0
  45. package/assets/skills/authored/financial-analysis/composable/mini/12-toolkit-scripts-io.md +102 -0
  46. package/assets/skills/authored/python-api/composable/BUNDLE.md +389 -0
  47. package/assets/skills/authored/python-api/composable/INDEX.md +13 -0
  48. package/assets/skills/authored/python-api/composable/VERSION +1 -0
  49. package/assets/skills/authored/python-api/composable/mini/01-project-structure.md +44 -0
  50. package/assets/skills/authored/python-api/composable/mini/02-routing-and-app.md +38 -0
  51. package/assets/skills/authored/python-api/composable/mini/03-pydantic-models.md +45 -0
  52. package/assets/skills/authored/python-api/composable/mini/04-validation-and-errors.md +59 -0
  53. package/assets/skills/authored/python-api/composable/mini/05-dependencies-and-auth.md +60 -0
  54. package/assets/skills/authored/python-api/composable/mini/06-pagination-filtering.md +44 -0
  55. package/assets/skills/authored/python-api/composable/mini/07-async-performance.md +30 -0
  56. package/assets/skills/authored/python-api/composable/mini/08-testing.md +45 -0
  57. package/assets/skills/authored/python-api/composable/mini/09-middleware-observability.md +29 -0
  58. package/assets/skills/authored/tech-writing/composable/BUNDLE.md +220 -0
  59. package/assets/skills/authored/tech-writing/composable/INDEX.md +12 -0
  60. package/assets/skills/authored/tech-writing/composable/VERSION +1 -0
  61. package/assets/skills/authored/tech-writing/composable/mini/01-audience-analysis.md +26 -0
  62. package/assets/skills/authored/tech-writing/composable/mini/02-document-types.md +27 -0
  63. package/assets/skills/authored/tech-writing/composable/mini/03-readme-quickstart-changelog.md +22 -0
  64. package/assets/skills/authored/tech-writing/composable/mini/04-information-architecture.md +21 -0
  65. package/assets/skills/authored/tech-writing/composable/mini/05-style-clarity.md +29 -0
  66. package/assets/skills/authored/tech-writing/composable/mini/06-breaking-changes-migrations.md +33 -0
  67. package/assets/skills/authored/tech-writing/composable/mini/07-troubleshooting-security.md +30 -0
  68. package/assets/skills/authored/tech-writing/composable/mini/08-faq-voice-tone.md +32 -0
  69. package/assets/skills/converted/claude-api/composable/BUNDLE.md +14996 -0
  70. package/assets/skills/converted/claude-api/composable/INDEX.md +98 -0
  71. package/assets/skills/converted/claude-api/composable/VERSION +1 -0
  72. package/assets/skills/converted/claude-api/composable/mini/00-core.md +235 -0
  73. package/assets/skills/converted/claude-api/composable/mini/01-model-api-quick-reference.md +258 -0
  74. package/assets/skills/converted/claude-api/composable/mini/02-common-pitfalls.md +42 -0
  75. package/assets/skills/converted/claude-api/composable/mini/10-models.md +135 -0
  76. package/assets/skills/converted/claude-api/composable/mini/11-platform-availability.md +96 -0
  77. package/assets/skills/converted/claude-api/composable/mini/12-claude-platform-on-aws.md +59 -0
  78. package/assets/skills/converted/claude-api/composable/mini/13-live-sources.md +143 -0
  79. package/assets/skills/converted/claude-api/composable/mini/14-error-codes.md +256 -0
  80. package/assets/skills/converted/claude-api/composable/mini/15-prompt-caching.md +223 -0
  81. package/assets/skills/converted/claude-api/composable/mini/16-token-counting.md +56 -0
  82. package/assets/skills/converted/claude-api/composable/mini/17-tool-use-concepts.md +444 -0
  83. package/assets/skills/converted/claude-api/composable/mini/18-agent-design.md +101 -0
  84. package/assets/skills/converted/claude-api/composable/mini/19-anthropic-cli.md +246 -0
  85. package/assets/skills/converted/claude-api/composable/mini/20-model-migration.md +1301 -0
  86. package/assets/skills/converted/claude-api/composable/mini/30-managed-agents-overview.md +71 -0
  87. package/assets/skills/converted/claude-api/composable/mini/31-managed-agents-core.md +278 -0
  88. package/assets/skills/converted/claude-api/composable/mini/32-managed-agents-environments.md +219 -0
  89. package/assets/skills/converted/claude-api/composable/mini/33-managed-agents-tools.md +366 -0
  90. package/assets/skills/converted/claude-api/composable/mini/34-managed-agents-events.md +252 -0
  91. package/assets/skills/converted/claude-api/composable/mini/35-managed-agents-outcomes.md +106 -0
  92. package/assets/skills/converted/claude-api/composable/mini/36-managed-agents-multiagent.md +101 -0
  93. package/assets/skills/converted/claude-api/composable/mini/37-managed-agents-webhooks.md +123 -0
  94. package/assets/skills/converted/claude-api/composable/mini/38-managed-agents-memory.md +197 -0
  95. package/assets/skills/converted/claude-api/composable/mini/39-managed-agents-scheduled-deployments.md +146 -0
  96. package/assets/skills/converted/claude-api/composable/mini/40-managed-agents-client-patterns.md +211 -0
  97. package/assets/skills/converted/claude-api/composable/mini/41-managed-agents-onboarding.md +82 -0
  98. package/assets/skills/converted/claude-api/composable/mini/42-managed-agents-api-reference.md +441 -0
  99. package/assets/skills/converted/claude-api/composable/mini/43-managed-agents-self-hosted-sandboxes.md +174 -0
  100. package/assets/skills/converted/claude-api/composable/mini/50-python-readme.md +564 -0
  101. package/assets/skills/converted/claude-api/composable/mini/51-python-tool-use.md +590 -0
  102. package/assets/skills/converted/claude-api/composable/mini/52-python-streaming-batches-files.md +549 -0
  103. package/assets/skills/converted/claude-api/composable/mini/53-python-managed-agents.md +335 -0
  104. package/assets/skills/converted/claude-api/composable/mini/55-typescript-readme.md +404 -0
  105. package/assets/skills/converted/claude-api/composable/mini/56-typescript-tool-use.md +548 -0
  106. package/assets/skills/converted/claude-api/composable/mini/57-typescript-streaming-batches-files.md +384 -0
  107. package/assets/skills/converted/claude-api/composable/mini/58-typescript-managed-agents.md +358 -0
  108. package/assets/skills/converted/claude-api/composable/mini/60-csharp-readme.md +361 -0
  109. package/assets/skills/converted/claude-api/composable/mini/61-csharp-tool-use.md +163 -0
  110. package/assets/skills/converted/claude-api/composable/mini/62-csharp-streaming-batches-files.md +64 -0
  111. package/assets/skills/converted/claude-api/composable/mini/65-go-readme.md +185 -0
  112. package/assets/skills/converted/claude-api/composable/mini/66-go-tool-use.md +219 -0
  113. package/assets/skills/converted/claude-api/composable/mini/67-go-streaming-files.md +63 -0
  114. package/assets/skills/converted/claude-api/composable/mini/68-go-managed-agents.md +564 -0
  115. package/assets/skills/converted/claude-api/composable/mini/70-java-readme.md +237 -0
  116. package/assets/skills/converted/claude-api/composable/mini/71-java-tool-use.md +227 -0
  117. package/assets/skills/converted/claude-api/composable/mini/72-java-streaming-files.md +49 -0
  118. package/assets/skills/converted/claude-api/composable/mini/73-java-managed-agents.md +443 -0
  119. package/assets/skills/converted/claude-api/composable/mini/75-php-readme.md +173 -0
  120. package/assets/skills/converted/claude-api/composable/mini/76-php-tool-use.md +252 -0
  121. package/assets/skills/converted/claude-api/composable/mini/77-php-streaming-batches-files.md +53 -0
  122. package/assets/skills/converted/claude-api/composable/mini/78-php-managed-agents.md +443 -0
  123. package/assets/skills/converted/claude-api/composable/mini/80-ruby-readme.md +133 -0
  124. package/assets/skills/converted/claude-api/composable/mini/81-ruby-tool-use-streaming.md +56 -0
  125. package/assets/skills/converted/claude-api/composable/mini/82-ruby-managed-agents.md +394 -0
  126. package/assets/skills/converted/claude-api/composable/mini/85-curl-examples.md +255 -0
  127. package/assets/skills/converted/claude-api/composable/mini/86-curl-managed-agents.md +340 -0
  128. package/assets/skills/converted/claude-api/composable/presets/csharp.md +1151 -0
  129. package/assets/skills/converted/claude-api/composable/presets/curl.md +1154 -0
  130. package/assets/skills/converted/claude-api/composable/presets/go.md +1598 -0
  131. package/assets/skills/converted/claude-api/composable/presets/java.md +1523 -0
  132. package/assets/skills/converted/claude-api/composable/presets/php.md +1488 -0
  133. package/assets/skills/converted/claude-api/composable/presets/python.md +2605 -0
  134. package/assets/skills/converted/claude-api/composable/presets/ruby.md +1146 -0
  135. package/assets/skills/converted/claude-api/composable/presets/shared.md +6478 -0
  136. package/assets/skills/converted/claude-api/composable/presets/typescript.md +2261 -0
  137. package/assets/skills/converted/docx/composable/BUNDLE.md +617 -0
  138. package/assets/skills/converted/docx/composable/INDEX.md +12 -0
  139. package/assets/skills/converted/docx/composable/VERSION +1 -0
  140. package/assets/skills/converted/docx/composable/mini/00-core.md +26 -0
  141. package/assets/skills/converted/docx/composable/mini/01-reading-converting.md +36 -0
  142. package/assets/skills/converted/docx/composable/mini/02-creating-setup-layout.md +85 -0
  143. package/assets/skills/converted/docx/composable/mini/03-creating-elements.md +257 -0
  144. package/assets/skills/converted/docx/composable/mini/04-editing-existing.md +57 -0
  145. package/assets/skills/converted/docx/composable/mini/05-xml-reference.md +128 -0
  146. package/assets/skills/converted/internal-comms/composable/BUNDLE.md +220 -0
  147. package/assets/skills/converted/internal-comms/composable/INDEX.md +11 -0
  148. package/assets/skills/converted/internal-comms/composable/VERSION +1 -0
  149. package/assets/skills/converted/internal-comms/composable/mini/00-core.md +30 -0
  150. package/assets/skills/converted/internal-comms/composable/mini/01-3p-updates.md +49 -0
  151. package/assets/skills/converted/internal-comms/composable/mini/02-company-newsletter.md +67 -0
  152. package/assets/skills/converted/internal-comms/composable/mini/03-faq-answers.md +32 -0
  153. package/assets/skills/converted/internal-comms/composable/mini/04-general-comms.md +18 -0
  154. package/assets/skills/converted/mcp-builder/composable/BUNDLE.md +2460 -0
  155. package/assets/skills/converted/mcp-builder/composable/INDEX.md +23 -0
  156. package/assets/skills/converted/mcp-builder/composable/VERSION +1 -0
  157. package/assets/skills/converted/mcp-builder/composable/mini/00-core.md +43 -0
  158. package/assets/skills/converted/mcp-builder/composable/mini/01-workflow-research-planning.md +54 -0
  159. package/assets/skills/converted/mcp-builder/composable/mini/02-implementation-process.md +78 -0
  160. package/assets/skills/converted/mcp-builder/composable/mini/03-naming-conventions.md +33 -0
  161. package/assets/skills/converted/mcp-builder/composable/mini/04-response-formats.md +21 -0
  162. package/assets/skills/converted/mcp-builder/composable/mini/05-pagination.md +24 -0
  163. package/assets/skills/converted/mcp-builder/composable/mini/06-transport.md +47 -0
  164. package/assets/skills/converted/mcp-builder/composable/mini/07-annotations.md +20 -0
  165. package/assets/skills/converted/mcp-builder/composable/mini/08-security.md +35 -0
  166. package/assets/skills/converted/mcp-builder/composable/mini/09-error-handling.md +32 -0
  167. package/assets/skills/converted/mcp-builder/composable/mini/10-testing-and-documentation.md +21 -0
  168. package/assets/skills/converted/mcp-builder/composable/mini/11-python-implementation.md +432 -0
  169. package/assets/skills/converted/mcp-builder/composable/mini/12-python-advanced-and-checklist.md +233 -0
  170. package/assets/skills/converted/mcp-builder/composable/mini/13-node-implementation.md +717 -0
  171. package/assets/skills/converted/mcp-builder/composable/mini/14-node-advanced-and-checklist.md +200 -0
  172. package/assets/skills/converted/mcp-builder/composable/mini/15-evaluation-design.md +200 -0
  173. package/assets/skills/converted/mcp-builder/composable/mini/16-evaluation-running.md +198 -0
  174. package/assets/skills/converted/mcp-builder/composable/presets/node-server.md +1381 -0
  175. package/assets/skills/converted/mcp-builder/composable/presets/python-server.md +1129 -0
  176. package/assets/skills/converted/pdf/composable/BUNDLE.md +1284 -0
  177. package/assets/skills/converted/pdf/composable/INDEX.md +14 -0
  178. package/assets/skills/converted/pdf/composable/VERSION +1 -0
  179. package/assets/skills/converted/pdf/composable/mini/00-core.md +46 -0
  180. package/assets/skills/converted/pdf/composable/mini/01-creation.md +176 -0
  181. package/assets/skills/converted/pdf/composable/mini/02-extraction.md +178 -0
  182. package/assets/skills/converted/pdf/composable/mini/03-merge-split-manipulate.md +240 -0
  183. package/assets/skills/converted/pdf/composable/mini/04-images-ocr.md +168 -0
  184. package/assets/skills/converted/pdf/composable/mini/05-encryption.md +51 -0
  185. package/assets/skills/converted/pdf/composable/mini/06-forms.md +300 -0
  186. package/assets/skills/converted/pdf/composable/mini/07-libraries-reference.md +89 -0
  187. package/assets/skills/converted/pptx/composable/BUNDLE.md +911 -0
  188. package/assets/skills/converted/pptx/composable/INDEX.md +12 -0
  189. package/assets/skills/converted/pptx/composable/VERSION +1 -0
  190. package/assets/skills/converted/pptx/composable/mini/00-core.md +37 -0
  191. package/assets/skills/converted/pptx/composable/mini/01-reading.md +37 -0
  192. package/assets/skills/converted/pptx/composable/mini/02-creating-from-scratch.md +422 -0
  193. package/assets/skills/converted/pptx/composable/mini/03-editing-templates.md +207 -0
  194. package/assets/skills/converted/pptx/composable/mini/04-design.md +89 -0
  195. package/assets/skills/converted/pptx/composable/mini/05-qa-and-rendering.md +91 -0
  196. package/assets/skills/converted/pptx/composable/presets/creating.md +659 -0
  197. package/assets/skills/converted/pptx/composable/presets/editing.md +485 -0
  198. package/assets/skills/converted/skill-creator/composable/BUNDLE.md +1681 -0
  199. package/assets/skills/converted/skill-creator/composable/INDEX.md +21 -0
  200. package/assets/skills/converted/skill-creator/composable/VERSION +1 -0
  201. package/assets/skills/converted/skill-creator/composable/mini/00-core.md +59 -0
  202. package/assets/skills/converted/skill-creator/composable/mini/01-creating-a-skill.md +27 -0
  203. package/assets/skills/converted/skill-creator/composable/mini/02-skill-writing-guide.md +71 -0
  204. package/assets/skills/converted/skill-creator/composable/mini/03-test-cases.md +21 -0
  205. package/assets/skills/converted/skill-creator/composable/mini/04-running-and-evaluating.md +128 -0
  206. package/assets/skills/converted/skill-creator/composable/mini/05-improving-the-skill.md +30 -0
  207. package/assets/skills/converted/skill-creator/composable/mini/06-blind-comparison.md +5 -0
  208. package/assets/skills/converted/skill-creator/composable/mini/07-description-optimization.md +74 -0
  209. package/assets/skills/converted/skill-creator/composable/mini/08-packaging.md +11 -0
  210. package/assets/skills/converted/skill-creator/composable/mini/09-environment-specific.md +38 -0
  211. package/assets/skills/converted/skill-creator/composable/mini/10-scripts-and-references.md +34 -0
  212. package/assets/skills/converted/skill-creator/composable/mini/11-json-schemas.md +414 -0
  213. package/assets/skills/converted/skill-creator/composable/mini/12-agent-grader.md +225 -0
  214. package/assets/skills/converted/skill-creator/composable/mini/13-agent-comparator.md +204 -0
  215. package/assets/skills/converted/skill-creator/composable/mini/14-agent-analyzer.md +276 -0
  216. package/assets/skills/converted/skill-creator/composable/presets/authoring.md +198 -0
  217. package/assets/skills/converted/skill-creator/composable/presets/evaluating.md +1334 -0
  218. package/assets/skills/converted/skill-creator/composable/presets/optimizing.md +160 -0
  219. package/assets/skills/converted/skill-creator/composable/presets.json +5 -0
  220. package/assets/skills/meta/ccs-skill-creator/composable/BUNDLE.md +465 -0
  221. package/assets/skills/meta/ccs-skill-creator/composable/INDEX.md +8 -0
  222. package/assets/skills/meta/ccs-skill-creator/composable/VERSION +1 -0
  223. package/assets/skills/meta/ccs-skill-creator/composable/mini/00-core.md +46 -0
  224. package/assets/skills/meta/ccs-skill-creator/composable/mini/01-create-new-skill.md +167 -0
  225. package/assets/skills/meta/ccs-skill-creator/composable/mini/02-convert-existing-skill.md +120 -0
  226. package/assets/skills/meta/ccs-skill-creator/composable/mini/03-review-and-maintain.md +112 -0
  227. package/assets/skills/sources/anthropic/PROVENANCE.md +3 -0
  228. package/assets/skills/sources/anthropic/claude-api/LICENSE.txt +202 -0
  229. package/assets/skills/sources/anthropic/docx/LICENSE.txt +30 -0
  230. package/assets/skills/sources/anthropic/internal-comms/LICENSE.txt +202 -0
  231. package/assets/skills/sources/anthropic/mcp-builder/LICENSE.txt +202 -0
  232. package/assets/skills/sources/anthropic/pdf/LICENSE.txt +30 -0
  233. package/assets/skills/sources/anthropic/pptx/LICENSE.txt +30 -0
  234. package/assets/skills/sources/anthropic/skill-creator/LICENSE.txt +202 -0
  235. package/assets/skills/sources/financial-analyst/PROVENANCE.md +1 -0
  236. package/assets/tools/hive.py +728 -0
  237. package/dist/cli.js +7494 -0
  238. package/package.json +40 -0
@@ -0,0 +1,78 @@
1
+ ---
2
+ pairs-with:
3
+ - 04-dcf-projection-wacc.md
4
+ - 03-valuation-ratios-interpretation.md
5
+ ---
6
+
7
+ # Comparable Companies, Precedent Transactions & Framework Selection
8
+
9
+ Use these market-based methods to sanity-check intrinsic (DCF) values and to value companies where DCF is weak.
10
+
11
+ ## Comparable Company Analysis
12
+
13
+ ### Methodology
14
+
15
+ 1. **Select peer group** - Similar size, industry, growth profile, and margins
16
+ 2. **Calculate trading multiples** for each peer
17
+ 3. **Determine appropriate multiple range**
18
+ 4. **Apply to target company's metrics**
19
+
20
+ ### Common Multiples
21
+
22
+ | Multiple | When to Use |
23
+ |----------|-------------|
24
+ | EV/Revenue | Pre-profit companies, high-growth tech |
25
+ | EV/EBITDA | Most common for mature companies |
26
+ | EV/EBIT | When D&A differs significantly across peers |
27
+ | P/E | Stable earnings, financial services |
28
+ | P/B | Banks, insurance, asset-heavy industries |
29
+ | EV/FCF | Capital-light businesses with clean FCF |
30
+
31
+ ### Peer Selection Criteria
32
+
33
+ - **Industry:** Same or closely adjacent sectors
34
+ - **Size:** Within 0.5x to 2x of target revenue/market cap
35
+ - **Geography:** Same primary markets
36
+ - **Growth profile:** Similar revenue growth rates (within 5-10%)
37
+ - **Margin profile:** Similar operating margin structure
38
+ - **Business model:** Comparable revenue mix and customer base
39
+
40
+ ### Premium/Discount Adjustments
41
+
42
+ | Factor | Adjustment |
43
+ |--------|-----------|
44
+ | Higher growth | Premium of 1-3x on EV/EBITDA |
45
+ | Lower margins | Discount of 1-2x |
46
+ | Smaller scale | Discount of 10-20% |
47
+ | Private company | Discount of 15-30% (illiquidity) |
48
+ | Control premium | Premium of 20-40% (for acquisitions) |
49
+
50
+ ## Precedent Transaction Analysis
51
+
52
+ ### Methodology
53
+
54
+ 1. **Identify comparable transactions** in same industry
55
+ 2. **Calculate transaction multiples** (EV/Revenue, EV/EBITDA)
56
+ 3. **Adjust for market conditions** and deal-specific factors
57
+ 4. **Apply adjusted multiples** to target
58
+
59
+ ### Key Considerations
60
+
61
+ - Transactions include control premiums (typically 20-40%)
62
+ - Market conditions at time of deal affect multiples
63
+ - Strategic vs financial buyer valuations differ
64
+ - Consider synergy expectations embedded in price
65
+ - More recent transactions carry greater relevance
66
+
67
+ ## Valuation Framework Selection
68
+
69
+ | Situation | Primary Method | Secondary Method |
70
+ |-----------|---------------|-----------------|
71
+ | Profitable, stable | DCF | Comparable companies |
72
+ | High growth, pre-profit | Comparable companies (EV/Revenue) | DCF with scenario analysis |
73
+ | M&A target | Precedent transactions | DCF |
74
+ | Asset-heavy, cyclical | Asset-based valuation | Normalized DCF |
75
+ | Financial institution | Dividend discount model | P/B, P/E comps |
76
+ | Distressed | Liquidation value | Restructured DCF |
77
+
78
+ Sanity check: DCF-implied multiples should fall within the comparable range; large gaps flag inconsistent assumptions or stale comps.
@@ -0,0 +1,47 @@
1
+ ---
2
+ pairs-with:
3
+ - 08-driver-based-forecasting-scenarios.md
4
+ - 10-reporting-exec-summary.md
5
+ ---
6
+
7
+ # Budget Variance Analysis
8
+
9
+ Analyze actual vs budget vs prior-year performance with materiality filtering to explain what happened and drive corrective action.
10
+
11
+ ## Core Calculations
12
+
13
+ - **Dollar variance** = Actual − Budget (also compute vs prior year).
14
+ - **Percentage variance** = (Actual − Budget) / Budget × 100%.
15
+ - Compute both against budget and against prior-year actuals for a full picture.
16
+
17
+ ## Favorable / Unfavorable Classification
18
+
19
+ Direction depends on line-item type (revenue vs expense logic):
20
+ - **Revenue:** actual above budget is **favorable**; below is **unfavorable**.
21
+ - **Expense:** actual below budget is **favorable**; above is **unfavorable**.
22
+
23
+ Apply this sign logic per line item: never treat a raw positive dollar variance as automatically "good."
24
+
25
+ ## Materiality Filtering
26
+
27
+ Filter to variances worth explaining using a materiality threshold: **default 10% or $50K** (whichever triggers). Tighten for sensitive analyses (e.g., 5% / $25K). Only material variances demand root-cause explanation, keeping reports focused.
28
+
29
+ ## Breakdown & Reporting
30
+
31
+ - Break variances down by **department** and by **category** so ownership is clear.
32
+ - Generate an **executive summary** highlighting the largest and most material variances.
33
+ - Target: **explain 100% of material variances** with root causes.
34
+
35
+ ## Variance Analysis Loop (feedback into forecasting)
36
+
37
+ After each period closes:
38
+ - Compare actual vs budget/forecast
39
+ - Identify root causes of significant variances
40
+ - Update driver assumptions based on learnings
41
+ - Document what changed and why
42
+
43
+ Build a **variance bridge** that walks from budget (or prior forecast) to the current actual/forecast, attributing the gap to specific drivers. This closed loop both explains the period and improves the next forecast's accuracy.
44
+
45
+ ## Discipline
46
+
47
+ Validate input completeness before computing (missing or null line items produce misleading variances). Watch for reclassifications and one-time items that create apparent variances without economic substance.
@@ -0,0 +1,111 @@
1
+ ---
2
+ pairs-with:
3
+ - 09-rolling-forecasts-accuracy.md
4
+ - 07-budget-variance-analysis.md
5
+ ---
6
+
7
+ # Driver-Based Forecasting & Scenario Planning
8
+
9
+ ## 1. Driver-Based Forecasting
10
+
11
+ ### Overview
12
+
13
+ Driver-based forecasting models financial outcomes based on key business drivers rather than extrapolating from historical trends alone. This approach creates more transparent, actionable, and accurate forecasts.
14
+
15
+ ### Identifying Key Drivers
16
+
17
+ **Revenue Drivers:**
18
+
19
+ | Business Model | Primary Drivers |
20
+ |---------------|----------------|
21
+ | SaaS/Subscription | Customers × ARPU × Retention Rate |
22
+ | E-commerce | Visitors × Conversion Rate × AOV |
23
+ | Manufacturing | Units × Price per Unit |
24
+ | Professional Services | Headcount × Utilization × Bill Rate |
25
+ | Retail | Stores × Revenue per Store (or sqft) |
26
+ | Marketplace | GMV × Take Rate |
27
+
28
+ **Cost Drivers:**
29
+
30
+ | Category | Common Drivers |
31
+ |----------|---------------|
32
+ | COGS | Revenue × (1 - Gross Margin) or Units × Unit Cost |
33
+ | Headcount Costs | Employees × Average Compensation × (1 + Benefits Rate) |
34
+ | Sales & Marketing | Revenue × S&M % or CAC × New Customers |
35
+ | R&D | Engineering Headcount × Avg Salary |
36
+ | G&A | Headcount-based + fixed costs |
37
+ | CapEx | Revenue × CapEx Intensity or Project-based |
38
+
39
+ ### Building a Driver-Based Model
40
+
41
+ **Step 1: Map the value chain**
42
+ - Revenue = f(volume drivers, pricing drivers, mix drivers)
43
+ - Costs = f(variable drivers, fixed components, step functions)
44
+
45
+ **Step 2: Establish driver relationships**
46
+ - Linear: Revenue = Units × Price
47
+ - Non-linear: Revenue = Base × (1 + Growth Rate)^t
48
+ - Step function: Facilities costs that jump at capacity thresholds
49
+
50
+ **Step 3: Validate driver assumptions**
51
+ - Compare driver values to historical actuals
52
+ - Benchmark against industry data
53
+ - Stress-test extreme values
54
+
55
+ **Step 4: Build sensitivity**
56
+ - Identify which drivers have the largest impact on output
57
+ - Quantify the range of reasonable values for each driver
58
+ - Create scenario combinations
59
+
60
+ ### Driver Sensitivity Matrix
61
+
62
+ Rank drivers by impact and uncertainty:
63
+
64
+ | | High Impact | Low Impact |
65
+ |---|-----------|-----------|
66
+ | **High Uncertainty** | Model these carefully, run scenarios | Monitor but don't over-model |
67
+ | **Low Uncertainty** | Get these right; high accuracy needed | Use simple assumptions |
68
+
69
+ ## 4. Scenario Planning
70
+
71
+ ### Three-Scenario Framework
72
+
73
+ | Scenario | Description | Probability |
74
+ |----------|-------------|-------------|
75
+ | **Base Case** | Most likely outcome based on current trajectory | 50-60% |
76
+ | **Bull Case** | Favorable conditions, upside realization | 15-25% |
77
+ | **Bear Case** | Adverse conditions, downside risks | 15-25% |
78
+
79
+ ### Scenario Construction
80
+
81
+ **Base Case:**
82
+ - Continuation of current trends
83
+ - Management's operational plan
84
+ - Market consensus assumptions
85
+ - Normal competitive dynamics
86
+
87
+ **Bull Case (apply selectively, not uniformly):**
88
+ - Faster customer acquisition or market adoption
89
+ - Successful product launch or expansion
90
+ - Favorable macro conditions
91
+ - Competitor weakness or exit
92
+ - Margin expansion from operating leverage
93
+
94
+ **Bear Case (be realistic, not catastrophic):**
95
+ - Slower growth or market contraction
96
+ - Increased competition or pricing pressure
97
+ - Key customer or contract loss
98
+ - Supply chain disruption
99
+ - Regulatory headwinds
100
+
101
+ ### Scenario Variables
102
+
103
+ Map each scenario to specific driver values:
104
+
105
+ | Driver | Bear | Base | Bull |
106
+ |--------|------|------|------|
107
+ | Revenue Growth | +2% | +8% | +15% |
108
+ | Gross Margin | 35% | 40% | 43% |
109
+ | Customer Churn | 8% | 5% | 3% |
110
+ | New Customers/Month | 50 | 100 | 180 |
111
+ | Price Increase | 0% | 3% | 5% |
@@ -0,0 +1,114 @@
1
+ ---
2
+ pairs-with:
3
+ - 08-driver-based-forecasting-scenarios.md
4
+ ---
5
+
6
+ # Rolling Forecasts, 13-Week Cash Flow & Accuracy Tracking
7
+
8
+ ## 2. Rolling Forecasts
9
+
10
+ ### What Is a Rolling Forecast?
11
+
12
+ A rolling forecast continuously extends the forecast horizon as each period closes. Unlike a static annual budget, a rolling forecast always looks forward the same number of periods (typically 12-18 months).
13
+
14
+ ### Rolling Forecast vs Annual Budget
15
+
16
+ | Feature | Annual Budget | Rolling Forecast |
17
+ |---------|--------------|-----------------|
18
+ | Time Horizon | Fixed (Jan-Dec) | Rolling (12-18 months) |
19
+ | Update Frequency | Once per year | Monthly or quarterly |
20
+ | Detail Level | Very detailed | Driver-level |
21
+ | Preparation Time | 3-6 months | 2-5 days per cycle |
22
+ | Relevance | Declines over time | Stays current |
23
+ | Flexibility | Rigid | Adaptive |
24
+
25
+ ### Implementation Steps
26
+
27
+ 1. **Select the horizon** - 12 months rolling is most common (some use 18 months for CapEx planning)
28
+ 2. **Define update cadence** - Monthly for volatile businesses; quarterly for stable ones
29
+ 3. **Choose the right detail** - Driver-level, not line-item detail
30
+ 4. **Automate data feeds** - Reduce manual effort per cycle
31
+ 5. **Separate actuals from forecast** - Clear delineation between reported and projected periods
32
+ 6. **Track forecast accuracy** - Measure MAPE (Mean Absolute Percentage Error) over time
33
+
34
+ ### 13-Week Cash Flow Forecast
35
+
36
+ A specialized rolling forecast for liquidity management:
37
+
38
+ **Structure:**
39
+ - Week-by-week cash inflows and outflows
40
+ - Opening and closing cash balances
41
+ - Minimum cash threshold alerts
42
+
43
+ **Key Components:**
44
+ | Inflows | Outflows |
45
+ |---------|----------|
46
+ | Customer collections (by aging) | Payroll (fixed cadence) |
47
+ | Other receivables | Rent / Lease payments |
48
+ | Asset sales | Vendor payments (by terms) |
49
+ | Financing proceeds | Debt service |
50
+ | Tax refunds | Tax payments |
51
+ | Other income | Capital expenditures |
52
+
53
+ **Collection Modeling:**
54
+ - Apply collection rates by customer segment or aging bucket
55
+ - Model DSO trends to project collection timing
56
+ - Account for seasonal patterns in payment behavior
57
+
58
+ ## 3. Accuracy Improvement
59
+
60
+ ### Measuring Forecast Accuracy
61
+
62
+ **Mean Absolute Percentage Error (MAPE):**
63
+ ```
64
+ MAPE = (1/n) × Sum of |Actual - Forecast| / |Actual| × 100%
65
+ ```
66
+
67
+ **Accuracy Benchmarks:**
68
+ | MAPE | Rating |
69
+ |------|--------|
70
+ | < 5% | Excellent |
71
+ | 5% - 10% | Good |
72
+ | 10% - 20% | Acceptable |
73
+ | > 20% | Needs improvement |
74
+
75
+ **Weighted MAPE (WMAPE):**
76
+ Use when line items vary significantly in magnitude - weights errors by actual values.
77
+
78
+ ### Techniques to Improve Accuracy
79
+
80
+ **1. Bias Detection and Correction**
81
+ - Track directional bias (consistently over or under forecasting)
82
+ - Calculate mean signed error to detect systematic bias
83
+ - Adjust driver assumptions to correct persistent bias
84
+
85
+ **2. Variance Analysis Loop**
86
+ - After each period closes, compare actual vs forecast
87
+ - Identify root causes of significant variances
88
+ - Update driver assumptions based on learnings
89
+ - Document what changed and why
90
+
91
+ **3. Ensemble Approach**
92
+ - Combine multiple forecasting methods
93
+ - Blend statistical (trend) with judgmental (management input)
94
+ - Weight methods by their historical accuracy
95
+
96
+ **4. Granularity Optimization**
97
+ - Forecast at the right level of detail - not too aggregated, not too granular
98
+ - Product/segment level usually more accurate than single top-line
99
+ - Aggregate bottom-up forecasts for total, then adjust
100
+
101
+ **5. Leading Indicators**
102
+ - Identify metrics that predict financial outcomes 1-3 months ahead
103
+ - Pipeline/bookings predict revenue
104
+ - Hiring plans predict headcount costs
105
+ - Customer churn signals predict retention revenue
106
+
107
+ ### Common Accuracy Killers
108
+
109
+ 1. **Anchoring bias** - Over-relying on last year's numbers
110
+ 2. **Optimism bias** - Systematic overestimation of growth
111
+ 3. **Lack of accountability** - No one tracks forecast vs actual
112
+ 4. **Stale assumptions** - Not updating for market changes
113
+ 5. **Missing data** - Forecasting without key driver inputs
114
+ 6. **Over-precision** - False precision in uncertain environments
@@ -0,0 +1,58 @@
1
+ ---
2
+ pairs-with:
3
+ - data-analysis/07-executive-writing.md
4
+ ---
5
+
6
+ # Reporting & Executive-Summary Craft
7
+
8
+ Analysis has no value until it is communicated to the right audience at the right altitude.
9
+
10
+ ## 5. Forecast Communication
11
+
12
+ ### Stakeholder Needs
13
+
14
+ | Audience | Needs |
15
+ |----------|-------|
16
+ | Board | High-level scenarios, key risks, strategic implications |
17
+ | CEO/CFO | Detailed drivers, variance explanations, action items |
18
+ | Department Heads | Their specific budget vs forecast, headcount plans |
19
+ | Investors | Revenue guidance, margin trajectory, capital allocation |
20
+ | Operations | Weekly/monthly targets, resource requirements |
21
+
22
+ ### Presentation Framework
23
+
24
+ 1. **Executive summary** - Key metrics, direction of travel, confidence level
25
+ 2. **Variance bridge** - Walk from budget/prior forecast to current forecast
26
+ 3. **Driver analysis** - What changed and why
27
+ 4. **Scenario comparison** - Range of outcomes
28
+ 5. **Key risks and opportunities** - What could change the forecast
29
+ 6. **Action items** - Decisions needed based on forecast
30
+
31
+ ## Presenting Scenarios
32
+
33
+ 1. **Show the range** - Management needs to see the potential outcomes
34
+ 2. **Quantify the gap** - Dollar impact of bull vs bear on key metrics
35
+ 3. **Identify triggers** - What conditions would cause each scenario
36
+ 4. **Define actions** - What levers to pull in each scenario
37
+ 5. **Assign probabilities** - Not all scenarios are equally likely
38
+
39
+ ## Report Types
40
+
41
+ - Executive summaries with key findings
42
+ - Detailed variance reports by department and category
43
+ - DCF valuation reports with sensitivity tables
44
+ - Rolling forecasts with trend analysis
45
+
46
+ ### Forecast Cadence
47
+
48
+ | Activity | Frequency | Time Required |
49
+ |----------|-----------|--------------|
50
+ | 13-week cash flow update | Weekly | 1-2 hours |
51
+ | Rolling forecast update | Monthly | 1-2 days |
52
+ | Full reforecast | Quarterly | 3-5 days |
53
+ | Annual budget/plan | Annually | 4-8 weeks |
54
+ | Board reporting | Quarterly | 2-3 days |
55
+
56
+ ## Delivery Standards & Targets
57
+
58
+ Forecast accuracy ±5% revenue, ±3% expenses; report delivery 100% on time; complete documentation for all assumptions; explanation of 100% of material variances. Always present valuations and forecasts as ranges with sensitivity, never false-precision single points.
@@ -0,0 +1,130 @@
1
+ ---
2
+ pairs-with:
3
+ - 06-comparables-precedents.md
4
+ ---
5
+
6
+ # Industry Adaptations
7
+
8
+ Sector-specific metrics, benchmarks, and considerations for financial analysis. Apply the right lens per industry.
9
+
10
+ ## SaaS / Software
11
+
12
+ **Key Metrics:**
13
+ - ARR / MRR growth rate
14
+ - Net Revenue Retention (NRR): target >110%
15
+ - CAC Payback Period: target <18 months
16
+ - Rule of 40 (growth rate + profit margin ≥ 40%)
17
+ - LTV:CAC ratio: target >3:1
18
+ - Gross margin: target >70%
19
+
20
+ **Valuation Multiples:**
21
+ - Revenue multiple: 5-15x ARR (growth-adjusted)
22
+ - High-growth (>50%): 15-25x ARR
23
+ - Moderate growth (20-50%): 8-15x ARR
24
+ - Low growth (<20%): 3-8x ARR
25
+
26
+ **Considerations:**
27
+ - Deferred revenue recognition (ASC 606)
28
+ - Stock-based compensation impact on margins
29
+ - Cohort analysis critical for retention metrics
30
+
31
+ ## Retail / E-Commerce
32
+
33
+ **Key Metrics:**
34
+ - Same-store sales growth (SSS)
35
+ - Gross margin by category
36
+ - Inventory turnover: target varies by segment (grocery: 14-20x, fashion: 4-6x)
37
+ - Revenue per square foot (physical)
38
+ - Customer acquisition cost vs. AOV
39
+ - Return rate impact on unit economics
40
+
41
+ **Valuation Multiples:**
42
+ - EV/EBITDA: 8-15x (premium brands higher)
43
+ - P/E: 15-25x
44
+
45
+ **Considerations:**
46
+ - Seasonal revenue concentration (Q4 holiday)
47
+ - Working capital intensity (inventory cycles)
48
+ - Omnichannel attribution complexity
49
+
50
+ ## Manufacturing
51
+
52
+ **Key Metrics:**
53
+ - Gross margin by product line
54
+ - Capacity utilization rate: target >80%
55
+ - Days Inventory Outstanding (DIO)
56
+ - Warranty reserve as % of revenue
57
+ - Capex as % of revenue (maintenance vs. growth)
58
+ - Order backlog / book-to-bill ratio
59
+
60
+ **Valuation Multiples:**
61
+ - EV/EBITDA: 6-12x
62
+ - P/E: 12-20x
63
+
64
+ **Considerations:**
65
+ - Raw material cost volatility
66
+ - Currency exposure in supply chain
67
+ - Depreciation schedules (straight-line vs. accelerated)
68
+ - Regulatory compliance costs (environmental, safety)
69
+
70
+ ## Financial Services
71
+
72
+ **Key Metrics:**
73
+ - Net Interest Margin (NIM)
74
+ - Return on Equity (ROE): target >12%
75
+ - Cost-to-Income Ratio: target <60%
76
+ - Non-Performing Loan (NPL) ratio
77
+ - Tier 1 Capital Ratio: regulatory minimum varies
78
+ - Assets Under Management (AUM) growth
79
+
80
+ **Valuation Multiples:**
81
+ - Price-to-Book (P/B): 1.0-2.5x
82
+ - P/E: 10-18x
83
+
84
+ **Considerations:**
85
+ - Regulatory capital requirements (Basel III/IV)
86
+ - Interest rate sensitivity analysis
87
+ - Credit risk provisioning (CECL / IFRS 9)
88
+ - Mark-to-market vs. held-to-maturity accounting
89
+
90
+ ## Healthcare
91
+
92
+ **Key Metrics:**
93
+ - Revenue per patient / per bed
94
+ - Payor mix (Medicare/Medicaid vs. commercial)
95
+ - EBITDAR margin (rent-adjusted for facilities)
96
+ - Clinical trial pipeline value (biotech/pharma)
97
+ - Patent cliff exposure
98
+ - R&D as % of revenue: benchmark 15-25% (pharma)
99
+
100
+ **Valuation Multiples:**
101
+ - EV/EBITDA: 10-18x (medtech), 12-20x (pharma)
102
+ - EV/Revenue: 3-8x (services), 5-15x (devices)
103
+
104
+ **Considerations:**
105
+ - Reimbursement rate changes (regulatory risk)
106
+ - FDA approval timelines and probability-weighted pipeline
107
+ - 340B pricing program impact
108
+ - Medical device regulation (MDR, QSR compliance)
109
+
110
+ ## Industry-Specific Forecasting Notes
111
+
112
+ ### SaaS Metrics in Forecasting
113
+ - **MRR/ARR decomposition:** New, expansion, contraction, churn
114
+ - **Cohort-based forecasting:** Forecast by customer cohort for retention accuracy
115
+ - **Rule of 40:** Revenue growth % + Profit margin % should exceed 40%
116
+ - **Net Revenue Retention:** Target > 110% for healthy SaaS
117
+ - **CAC Payback:** Should be < 18 months
118
+
119
+ ### Retail Forecasting
120
+ - **Same-store sales growth** as primary organic growth metric
121
+ - **Seasonal decomposition** for accurate monthly/weekly forecasts
122
+ - **Markdown optimization** impact on gross margin
123
+ - **Inventory turns** drive working capital forecasts
124
+
125
+ ### Manufacturing Forecasting
126
+ - **Order backlog** as a leading indicator
127
+ - **Capacity constraints** creating step-function cost increases
128
+ - **Raw material price forecasts** for COGS
129
+ - **Maintenance CapEx vs growth CapEx** distinction
130
+ - **Utilization rates** driving unit cost projections
@@ -0,0 +1,102 @@
1
+ # Toolkit: Scripts, Templates, Inputs & Dependencies
2
+
3
+ > Fidelity note: this mini carries the source SKILL.md's Tools / Templates / Input-Data / Dependencies sections as **knowledge**. The referenced scripts, assets, and templates (`scripts/*.py`, `assets/*`) are **not vendored here**: file paths below are kept as references describing the intended workflow and each tool's capabilities, not runnable files. Reproduce the calculations from the method minis (01–11) when the scripts are unavailable.
4
+
5
+ ## Tools
6
+
7
+ ### 1. Ratio Calculator (`scripts/ratio_calculator.py`)
8
+
9
+ Calculate and interpret financial ratios from financial statement data.
10
+
11
+ **Ratio Categories:**
12
+ - **Profitability:** ROE, ROA, Gross Margin, Operating Margin, Net Margin
13
+ - **Liquidity:** Current Ratio, Quick Ratio, Cash Ratio
14
+ - **Leverage:** Debt-to-Equity, Interest Coverage, DSCR
15
+ - **Efficiency:** Asset Turnover, Inventory Turnover, Receivables Turnover, DSO
16
+ - **Valuation:** P/E, P/B, P/S, EV/EBITDA, PEG Ratio
17
+
18
+ ```bash
19
+ python scripts/ratio_calculator.py assets/sample_financial_data.json
20
+ python scripts/ratio_calculator.py assets/sample_financial_data.json --format json
21
+ python scripts/ratio_calculator.py assets/sample_financial_data.json --category profitability
22
+ ```
23
+
24
+ ### 2. DCF Valuation (`scripts/dcf_valuation.py`)
25
+
26
+ Discounted Cash Flow enterprise and equity valuation with sensitivity analysis.
27
+
28
+ **Features:**
29
+ - WACC calculation via CAPM
30
+ - Revenue and free cash flow projections (5-year default)
31
+ - Terminal value via perpetuity growth and exit multiple methods
32
+ - Enterprise value and equity value derivation
33
+ - Two-way sensitivity analysis (discount rate vs growth rate)
34
+
35
+ ```bash
36
+ python scripts/dcf_valuation.py assets/sample_financial_data.json
37
+ python scripts/dcf_valuation.py assets/sample_financial_data.json --format json
38
+ python scripts/dcf_valuation.py assets/sample_financial_data.json --projection-years 7
39
+ ```
40
+
41
+ ### 3. Budget Variance Analyzer (`scripts/budget_variance_analyzer.py`)
42
+
43
+ Analyze actual vs budget vs prior year performance with materiality filtering.
44
+
45
+ **Features:**
46
+ - Dollar and percentage variance calculation
47
+ - Materiality threshold filtering (default: 10% or $50K)
48
+ - Favorable/unfavorable classification with revenue/expense logic
49
+ - Department and category breakdown
50
+ - Executive summary generation
51
+
52
+ ```bash
53
+ python scripts/budget_variance_analyzer.py assets/sample_financial_data.json
54
+ python scripts/budget_variance_analyzer.py assets/sample_financial_data.json --format json
55
+ python scripts/budget_variance_analyzer.py assets/sample_financial_data.json --threshold-pct 5 --threshold-amt 25000
56
+ ```
57
+
58
+ ### 4. Forecast Builder (`scripts/forecast_builder.py`)
59
+
60
+ Driver-based revenue forecasting with rolling cash flow projection and scenario modeling.
61
+
62
+ **Features:**
63
+ - Driver-based revenue forecast model
64
+ - 13-week rolling cash flow projection
65
+ - Scenario modeling (base/bull/bear cases)
66
+ - Trend analysis using simple linear regression (standard library)
67
+
68
+ ```bash
69
+ python scripts/forecast_builder.py assets/sample_financial_data.json
70
+ python scripts/forecast_builder.py assets/sample_financial_data.json --format json
71
+ python scripts/forecast_builder.py assets/sample_financial_data.json --scenarios base,bull,bear
72
+ ```
73
+
74
+ ## Knowledge Bases
75
+
76
+ | Reference | Purpose |
77
+ |-----------|---------|
78
+ | `references/financial-ratios-guide.md` | Ratio formulas, interpretation, industry benchmarks (see minis 01–03) |
79
+ | `references/valuation-methodology.md` | DCF methodology, WACC, terminal value, comps (see minis 04–06) |
80
+ | `references/forecasting-best-practices.md` | Driver-based forecasting, rolling forecasts, accuracy (see minis 08–10) |
81
+ | `references/industry-adaptations.md` | Sector-specific metrics and considerations: SaaS, Retail, Manufacturing, Financial Services, Healthcare (see mini 11) |
82
+
83
+ ## Templates
84
+
85
+ | Template | Purpose |
86
+ |----------|---------|
87
+ | `assets/variance_report_template.md` | Budget variance report template |
88
+ | `assets/dcf_analysis_template.md` | DCF valuation analysis template |
89
+ | `assets/forecast_report_template.md` | Revenue forecast report template |
90
+
91
+ ## Input Data Format
92
+
93
+ All scripts accept JSON input files in either of two shapes:
94
+
95
+ 1. **Flat**: the tool's expected keys at the top level (e.g., `income_statement` / `balance_sheet` for the ratio calculator, `historical` / `assumptions` for DCF, `line_items` for variance, `historical_periods` / `drivers` / `assumptions` / `cash_flow_inputs` for forecasting).
96
+ 2. **Nested (bundled)**: inputs for all four tools in one file, nested under per-tool keys: `ratio_analysis`, `dcf_valuation`, `budget_variance`, `forecast`. See `assets/sample_financial_data.json` for the complete bundled schema; every quick-start command above runs directly against it.
97
+
98
+ Each script auto-detects the shape (flat keys win if present) and exits non-zero with a clear error if neither shape yields usable data.
99
+
100
+ ## Dependencies
101
+
102
+ **None**: All scripts use Python standard library only (`math`, `statistics`, `json`, `argparse`, `datetime`). No numpy, pandas, or scipy required.