@axiom-lattice/examples-deep_research 1.0.26 → 1.0.28
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.
- package/.env +6 -0
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +22 -0
- package/DATABASE_CONFIG_SETUP.md +290 -0
- package/dist/index.js +146 -22
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/agents/data_agent/skills/business-analytics/README.md +121 -0
- package/src/agents/data_agent/skills/business-analytics/SKILL.md +230 -0
- package/src/agents/data_agent/skills/business-analytics/examples.md +295 -0
- package/src/agents/data_agent/skills/business-analytics/reference.md +240 -0
- package/src/agents/data_agent/skills/business-analytics/resources/data/sample.json +66 -0
- package/src/agents/data_agent/skills/business-analytics/resources/prompts/analyze.txt +128 -0
- package/src/agents/data_agent/skills/business-analytics/resources/templates/report-template.md +260 -0
- package/src/agents/data_agent/skills/chart-markdown/SKILL.md +91 -0
- package/src/agents/data_agent/skills/chart-markdown/resources/best-practices/README.md +16 -0
- package/src/agents/data_agent/skills/chart-markdown/resources/best-practices/data-patterns.md +14 -0
- package/src/agents/data_agent/skills/chart-markdown/resources/best-practices/finance.md +7 -0
- package/src/agents/data_agent/skills/chart-markdown/resources/best-practices/formatting.md +14 -0
- package/src/agents/data_agent/skills/chart-markdown/resources/best-practices/hr-people.md +7 -0
- package/src/agents/data_agent/skills/chart-markdown/resources/best-practices/marketing-growth.md +7 -0
- package/src/agents/data_agent/skills/chart-markdown/resources/best-practices/operations-supply-chain.md +7 -0
- package/src/agents/data_agent/skills/chart-markdown/resources/best-practices/sales-retail.md +8 -0
- package/src/agents/data_agent/skills/chart-markdown/resources/examples.md +80 -0
- package/src/agents/data_agent/skills/financial-analysis/SKILL.md +268 -0
- package/src/agents/data_agent/skills/metrics-query/SKILL.md +296 -0
- package/src/agents/data_agent/skills/operations-analysis/SKILL.md +432 -0
- package/src/agents/data_agent/skills/sales-analysis/SKILL.md +350 -0
- package/src/agents/index.ts +1 -0
- package/src/agents/research_team/index.ts +93 -0
- package/src/index-with-auth.ts +122 -0
- package/src/index.ts +93 -3
- package/src/agents/data_agent/skills/sql-query/SKILL.md +0 -58
- package/src/agents/data_agent/skills/test/SKILL.md +0 -9
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
# Business Analytics Reference Documentation
|
|
2
|
+
|
|
3
|
+
## Detailed Methodology
|
|
4
|
+
|
|
5
|
+
### 1. Gross Margin Calculation (JournalEntry口径)
|
|
6
|
+
|
|
7
|
+
#### Data Source
|
|
8
|
+
- **Primary Table**: `MTC_VW_AI_JournalEntry`
|
|
9
|
+
- **Revenue Accounts**: All accounts starting with `4` (e.g., 401020100 for candy revenue)
|
|
10
|
+
- **COGS Accounts**: All accounts starting with `5` (e.g., 501030100 for candy COGS)
|
|
11
|
+
|
|
12
|
+
#### Formulas
|
|
13
|
+
```
|
|
14
|
+
Net Revenue = SUM(Credit - Debit) WHERE AccountCode LIKE '4%'
|
|
15
|
+
Net COGS = SUM(Credit - Debit) WHERE AccountCode LIKE '5%'
|
|
16
|
+
Gross Margin = Net Revenue + Net COGS
|
|
17
|
+
Gross Margin % = (Gross Margin / Net Revenue) × 100
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
#### Channel Splitting
|
|
21
|
+
Use `PrcName` (CC1 Business Unit) and `PrcName2` (CC2 Channel) dimensions:
|
|
22
|
+
```sql
|
|
23
|
+
SELECT
|
|
24
|
+
PrcName2 as Channel,
|
|
25
|
+
SUM(CASE WHEN AccountCode LIKE '4%' THEN Credit - Debit ELSE 0 END) as Revenue,
|
|
26
|
+
SUM(CASE WHEN AccountCode LIKE '5%' THEN Credit - Debit ELSE 0 END) as COGS
|
|
27
|
+
FROM MTC_VW_AI_JournalEntry
|
|
28
|
+
WHERE AccountCode IN ('401020100', '501030100')
|
|
29
|
+
GROUP BY PrcName2
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 2. Profit Bridge Calculation
|
|
33
|
+
|
|
34
|
+
#### Revenue Foundation
|
|
35
|
+
- **Source**: `OINV` (A/R Invoice) net amounts
|
|
36
|
+
- **Period**: Analysis period dates
|
|
37
|
+
- **Formula**: `SUM(DocTotal - VatSum)` for candy-related items
|
|
38
|
+
|
|
39
|
+
#### COGS Components
|
|
40
|
+
```
|
|
41
|
+
Historical COGS = From JournalEntry (Account 501030100)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
#### Operating Expenses
|
|
45
|
+
```
|
|
46
|
+
Trading Terms = Sum of promotional discounts from OINV line items
|
|
47
|
+
Carriage Outwards = Delivery costs from OPCH or dedicated expense accounts
|
|
48
|
+
Sales Discount = General discount from OINV
|
|
49
|
+
Expired Stock = Write-offs from inventory adjustment journal entries
|
|
50
|
+
Nestle Subsidy = Commission income from dedicated revenue accounts
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### Risk Adjustments
|
|
54
|
+
```
|
|
55
|
+
Bad Debt Provision = AR >180 days × 50% estimated loss rate
|
|
56
|
+
Inventory Carrying Cost = Average Inventory × 8% cost of capital
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 3. Cash Conversion Cycle (CCC)
|
|
60
|
+
|
|
61
|
+
#### DIO (Days Inventory Outstanding)
|
|
62
|
+
```
|
|
63
|
+
Average Inventory = (Beginning Inventory + Ending Inventory) / 2
|
|
64
|
+
DIO = (Average Inventory / COGS) × 365
|
|
65
|
+
|
|
66
|
+
Where:
|
|
67
|
+
- Inventory = From BATCHSTOCK or STOCK tables
|
|
68
|
+
- COGS = From JournalEntry (annual)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
#### DSO (Days Sales Outstanding)
|
|
72
|
+
```
|
|
73
|
+
DSO = (Accounts Receivable / Revenue) × 365
|
|
74
|
+
|
|
75
|
+
Where:
|
|
76
|
+
- AR = From CUSTBAL or OINV open items
|
|
77
|
+
- Revenue = From JournalEntry or OINV (annual)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
#### DPO (Days Payable Outstanding)
|
|
81
|
+
```
|
|
82
|
+
DPO = (Accounts Payable / COGS) × 365
|
|
83
|
+
|
|
84
|
+
Where:
|
|
85
|
+
- AP = From vendor balance or OPCH open items
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
#### CCC Formula
|
|
89
|
+
```
|
|
90
|
+
CCC = DIO + DSO - DPO
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Interpretation:**
|
|
94
|
+
- < 60 days: Excellent working capital management
|
|
95
|
+
- 60-100 days: Good/Industry average
|
|
96
|
+
- 100-150 days: Needs improvement
|
|
97
|
+
- > 150 days: Critical working capital issues
|
|
98
|
+
|
|
99
|
+
### 4. GMROI (Gross Margin Return on Inventory Investment)
|
|
100
|
+
|
|
101
|
+
#### Formula
|
|
102
|
+
```
|
|
103
|
+
GMROI = Annual Gross Margin / Average Inventory
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
#### Calculation
|
|
107
|
+
```
|
|
108
|
+
Annual Gross Margin = From JournalEntry (12-month rolling)
|
|
109
|
+
Average Inventory = (Beginning + Ending) / 2 from STOCK table
|
|
110
|
+
|
|
111
|
+
Example:
|
|
112
|
+
GMROI = ¥3,735,750 / ¥1,337,863 = 2.79x
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### Benchmarks by Industry
|
|
116
|
+
|
|
117
|
+
| Industry | GMROI Range | Interpretation |
|
|
118
|
+
|----------|-------------|----------------|
|
|
119
|
+
| FMCG/Distribution | 3.0–5.0x | Healthy inventory turns |
|
|
120
|
+
| Retail (General) | 2.0–4.0x | Acceptable range |
|
|
121
|
+
| Luxury Goods | 1.5–3.0x | Lower turns, higher margins |
|
|
122
|
+
| Grocery/Supermarket | 4.0–8.0x | High volume, thin margins |
|
|
123
|
+
|
|
124
|
+
#### Analysis
|
|
125
|
+
```
|
|
126
|
+
Current: 2.79x
|
|
127
|
+
Benchmark: 3.0–5.0x
|
|
128
|
+
Gap: -0.21x to -2.21x
|
|
129
|
+
|
|
130
|
+
Root Causes:
|
|
131
|
+
1. Slow-moving SKUs (KitKat, Kopiko overstock)
|
|
132
|
+
2. Near-expiry write-off risk
|
|
133
|
+
3. High-value inventory (Ferrero) with slow turns
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### 5. Strategic Scenario Modeling
|
|
137
|
+
|
|
138
|
+
#### Scenario Comparison Framework
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
Option A: Cut Local Option B: Expand Export
|
|
142
|
+
─────────────────── ───────────────────────
|
|
143
|
+
Revenue ¥17.0M ¥24.7M
|
|
144
|
+
Gross Margin ¥3.3M ¥5.3M
|
|
145
|
+
Operating Profit ¥1.9M ¥2.9M
|
|
146
|
+
Profit Margin 11.1% 11.7%
|
|
147
|
+
|
|
148
|
+
Key Differences:
|
|
149
|
+
- Revenue Impact: +¥7.7M (45% increase)
|
|
150
|
+
- Margin Improvement: +¥2.0M (60% increase)
|
|
151
|
+
- Operating Leverage: 1.5x
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
#### Business Model Characteristics Matrix
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
Export Distribution Local FMCG
|
|
158
|
+
─────────────────── ───────────
|
|
159
|
+
Customer Count 8–42 200–300+
|
|
160
|
+
Avg Invoice ¥51K–63K ¥2.5K–8K
|
|
161
|
+
Unit Margin 94–97%* 77–97%*
|
|
162
|
+
Abs Margin/Unit ¥115–260 ¥15–85
|
|
163
|
+
Delivery Cost Low High
|
|
164
|
+
TT Share High Medium
|
|
165
|
+
AR Period 256 days 30–60 days
|
|
166
|
+
Bad Debt Risk Extreme Minimal
|
|
167
|
+
Subsidy Dependency High Medium
|
|
168
|
+
Cash Recovery Poor Good
|
|
169
|
+
|
|
170
|
+
* Margin口径存疑 - see §1.5
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### 6. Data Quality & Methodology Alerts
|
|
174
|
+
|
|
175
|
+
#### ⚠️ Critical Data Quality Issues
|
|
176
|
+
|
|
177
|
+
**1. Inventory Unit of Measure Discrepancy**
|
|
178
|
+
```
|
|
179
|
+
Suspected Issue: Case vs Piece confusion in system
|
|
180
|
+
Evidence:
|
|
181
|
+
- KitKat 2F 17g: System shows 703,848 units
|
|
182
|
+
- At current sales velocity: 131 years to sell
|
|
183
|
+
- Likely actual: 703,848 ÷ [units per case] = realistic quantity
|
|
184
|
+
|
|
185
|
+
Action Required: Immediate physical count verification
|
|
186
|
+
Risk: Material misstatement of inventory assets
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**2. Cost/Pricing口径 Inconsistency**
|
|
190
|
+
```
|
|
191
|
+
Issue: SKU-level margin calculations using STOCK.AvgPrice vs OINV.Price
|
|
192
|
+
- May double-count or misallocate costs
|
|
193
|
+
- SKU-level 77–99% margins not reliable
|
|
194
|
+
|
|
195
|
+
Resolution: All margin analysis in this report uses JournalEntry口径 only
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**3. Accounts Receivable Aging Reliability**
|
|
199
|
+
```
|
|
200
|
+
Note: 256-day DSO may include:
|
|
201
|
+
- Disputed invoices
|
|
202
|
+
- Unapplied payments
|
|
203
|
+
- System timing differences
|
|
204
|
+
|
|
205
|
+
Recommendation: Perform detailed AR aging analysis by customer before provisioning
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### 7. Report Validation Checklist
|
|
209
|
+
|
|
210
|
+
Before finalizing any business analytics report, verify:
|
|
211
|
+
|
|
212
|
+
#### Data Quality
|
|
213
|
+
- [ ] All metrics have documented sources
|
|
214
|
+
- [ ] Calculations are transparent and reproducible
|
|
215
|
+
- [ ] Data anomalies are flagged and explained
|
|
216
|
+
- [ ] Time periods are consistently defined
|
|
217
|
+
|
|
218
|
+
#### Analysis Rigor
|
|
219
|
+
- [ ] Methodology limitations are disclosed
|
|
220
|
+
- [ ] Multiple scenarios are considered
|
|
221
|
+
- [ ] Risks are quantified where possible
|
|
222
|
+
- [ ] Benchmarks are appropriately sourced
|
|
223
|
+
|
|
224
|
+
#### Actionability
|
|
225
|
+
- [ ] Executive summary leads with conclusions
|
|
226
|
+
- [ ] Top actions are prioritized
|
|
227
|
+
- [ ] Roadmap has clear owners and timelines
|
|
228
|
+
- [ ] Next steps are specific and measurable
|
|
229
|
+
|
|
230
|
+
#### Presentation
|
|
231
|
+
- [ ] Tables are formatted consistently
|
|
232
|
+
- [ ] ASCII charts use appropriate scaling
|
|
233
|
+
- [ ] Language is professional and concise
|
|
234
|
+
- [ ] Report is proofread for errors
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
**Document Version**: 1.0
|
|
239
|
+
**Last Updated**: 2026-03-03
|
|
240
|
+
**Maintainer**: Business Analytics Skill
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"report_metadata": {
|
|
3
|
+
"title": "Candy Business Analysis",
|
|
4
|
+
"data_source": "ZZZZ_KAIMAYMTC_TEST",
|
|
5
|
+
"analysis_period": "2025-01-01 to 2025-12-31",
|
|
6
|
+
"report_date": "2026-03-03",
|
|
7
|
+
"version": "v2.1"
|
|
8
|
+
},
|
|
9
|
+
"financial_summary": {
|
|
10
|
+
"revenue": 19228590,
|
|
11
|
+
"cogs": -15492840,
|
|
12
|
+
"gross_profit": 3735750,
|
|
13
|
+
"gross_margin_pct": 19.4,
|
|
14
|
+
"operating_expenses": {
|
|
15
|
+
"trading_terms": -502145,
|
|
16
|
+
"carriage_outwards": -420798,
|
|
17
|
+
"sales_discount": -192784,
|
|
18
|
+
"expired_stock": -122889,
|
|
19
|
+
"nestle_subsidy": 1829032
|
|
20
|
+
},
|
|
21
|
+
"commercial_profit": 4326166,
|
|
22
|
+
"risk_adjustments": {
|
|
23
|
+
"bad_debt_provision": -2175000,
|
|
24
|
+
"inventory_carrying_cost": -107000
|
|
25
|
+
},
|
|
26
|
+
"real_operating_profit": 2044166,
|
|
27
|
+
"operating_margin_pct": 10.6
|
|
28
|
+
},
|
|
29
|
+
"cash_conversion_cycle": {
|
|
30
|
+
"dio_days": 31,
|
|
31
|
+
"dso_days": 256,
|
|
32
|
+
"dpo_days": 27,
|
|
33
|
+
"ccc_days": 260
|
|
34
|
+
},
|
|
35
|
+
"gmroi": {
|
|
36
|
+
"annual_gross_margin": 3735750,
|
|
37
|
+
"average_inventory": 1337863,
|
|
38
|
+
"gmroi": 2.79,
|
|
39
|
+
"benchmark_range": "3.0-5.0x"
|
|
40
|
+
},
|
|
41
|
+
"ar_aging": {
|
|
42
|
+
"total_ar": 10200000,
|
|
43
|
+
"buckets": [
|
|
44
|
+
{"range": "0-30 days", "amount": 700000, "pct": 7},
|
|
45
|
+
{"range": "31-90 days", "amount": 3500000, "pct": 35},
|
|
46
|
+
{"range": "91-180 days", "amount": 1000000, "pct": 10},
|
|
47
|
+
{"range": "181-365 days", "amount": 900000, "pct": 9},
|
|
48
|
+
{"range": "1-2 years", "amount": 600000, "pct": 6},
|
|
49
|
+
{"range": ">2 years", "amount": 2900000, "pct": 28}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"scenarios": {
|
|
53
|
+
"cut_local": {
|
|
54
|
+
"revenue": 17033590,
|
|
55
|
+
"gross_profit": 3296000,
|
|
56
|
+
"operating_profit": 1890000,
|
|
57
|
+
"margin_pct": 11.1
|
|
58
|
+
},
|
|
59
|
+
"expand_export": {
|
|
60
|
+
"revenue": 24719385,
|
|
61
|
+
"gross_profit": 5257000,
|
|
62
|
+
"operating_profit": 2890000,
|
|
63
|
+
"margin_pct": 11.7
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Business Analytics Analysis Prompt
|
|
2
|
+
|
|
3
|
+
You are a senior financial analyst and CFO advisor. Your task is to analyze business metrics data and generate a comprehensive, board-level business analysis report following the structure and style demonstrated in the skill examples.
|
|
4
|
+
|
|
5
|
+
## Input Data
|
|
6
|
+
|
|
7
|
+
You will receive:
|
|
8
|
+
1. Business metrics data (JSON, CSV, or database query results)
|
|
9
|
+
2. Analysis period dates
|
|
10
|
+
3. Business context (industry, company name, data sources)
|
|
11
|
+
|
|
12
|
+
## Report Requirements
|
|
13
|
+
|
|
14
|
+
Generate a complete business analysis report with the following sections:
|
|
15
|
+
|
|
16
|
+
### 1. Executive Summary (1 Page)
|
|
17
|
+
- 3-5 core conclusions with specific metrics
|
|
18
|
+
- Top 3 immediate actions with timelines and expected impact
|
|
19
|
+
|
|
20
|
+
### 2. Model 1: Gross Margin & Channel Analysis
|
|
21
|
+
- Methodology explanation with data sources
|
|
22
|
+
- Summary financial tables
|
|
23
|
+
- Channel/customer segment breakdowns
|
|
24
|
+
|
|
25
|
+
### 3. Model 2: Profit Bridge
|
|
26
|
+
- Complete profit flow from revenue to operating profit
|
|
27
|
+
- ASCII table format showing all line items
|
|
28
|
+
- Risk adjustment calculations
|
|
29
|
+
- Key insight callouts with visual bar charts
|
|
30
|
+
|
|
31
|
+
### 4. Model 3: Cash Conversion Cycle + GMROI
|
|
32
|
+
- DIO, DSO, DPO calculations with formulas
|
|
33
|
+
- DSO aging breakdown with ASCII bar charts
|
|
34
|
+
- GMROI calculation vs industry benchmarks
|
|
35
|
+
- CCC optimization recommendations
|
|
36
|
+
|
|
37
|
+
### 5. Model 4: Strategic Scenarios
|
|
38
|
+
- 2-3 scenario comparisons with P&L impact
|
|
39
|
+
- Business model characteristics matrix
|
|
40
|
+
- Strategic trade-off analysis
|
|
41
|
+
|
|
42
|
+
### 6. Model 5: Executive Q&A
|
|
43
|
+
- 5 CFO questions with data-driven answers
|
|
44
|
+
- 5 CEO questions with strategic analysis
|
|
45
|
+
|
|
46
|
+
### 7. Action Roadmap
|
|
47
|
+
- Priority matrix (Impact vs Urgency)
|
|
48
|
+
- Immediate/Short-term/Medium-term action tables
|
|
49
|
+
- Owner and deadline assignments
|
|
50
|
+
|
|
51
|
+
### 8. Appendix
|
|
52
|
+
- Key financial metrics quick reference table
|
|
53
|
+
- Data sources and methodology notes
|
|
54
|
+
|
|
55
|
+
## Writing Style Guidelines
|
|
56
|
+
|
|
57
|
+
### Tone & Language
|
|
58
|
+
- Professional, board-level language
|
|
59
|
+
- Direct and concise
|
|
60
|
+
- Data-driven with clear sourcing
|
|
61
|
+
- Action-oriented
|
|
62
|
+
|
|
63
|
+
### Formatting Standards
|
|
64
|
+
- Use ASCII tables for all data presentation
|
|
65
|
+
- Include currency symbols (¥, $, €, SGD) consistently
|
|
66
|
+
- Show percentages with 1 decimal place
|
|
67
|
+
- Use █ characters for visual bar charts
|
|
68
|
+
- Separate sections with `---` horizontal rules
|
|
69
|
+
|
|
70
|
+
### Data Presentation
|
|
71
|
+
- Always cite data sources
|
|
72
|
+
- Include analysis period dates
|
|
73
|
+
- Show calculations transparently
|
|
74
|
+
- Flag methodology limitations with ⚠️ alerts
|
|
75
|
+
|
|
76
|
+
### Key Metrics to Always Include
|
|
77
|
+
- Revenue and growth rates
|
|
78
|
+
- Gross margin and gross profit
|
|
79
|
+
- Operating profit and margin
|
|
80
|
+
- Cash conversion cycle (DIO, DSO, DPO)
|
|
81
|
+
- GMROI with industry benchmark
|
|
82
|
+
- Key risk metrics (bad debt, inventory aging)
|
|
83
|
+
|
|
84
|
+
## Output Format
|
|
85
|
+
|
|
86
|
+
Generate the complete report in markdown format following this exact structure:
|
|
87
|
+
|
|
88
|
+
```markdown
|
|
89
|
+
# [Business Unit] [Product/Service] Analysis Report
|
|
90
|
+
## [Subtitle/Context]
|
|
91
|
+
|
|
92
|
+
**Data Source**: [Source]
|
|
93
|
+
**Analysis Period**: [Dates]
|
|
94
|
+
**Report Date**: [Date]
|
|
95
|
+
**Version**: [Version]
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Executive Summary
|
|
100
|
+
...
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Model 1: [Dimension]
|
|
105
|
+
...
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
[Continue with all sections...]
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Appendix
|
|
114
|
+
...
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Quality Checklist
|
|
118
|
+
|
|
119
|
+
Before finalizing, verify:
|
|
120
|
+
- [ ] All sections are complete with data
|
|
121
|
+
- [ ] Calculations are mathematically correct
|
|
122
|
+
- [ ] Tables are properly formatted
|
|
123
|
+
- [ ] No placeholder text remains
|
|
124
|
+
- [ ] Executive summary accurately reflects detailed findings
|
|
125
|
+
- [ ] Action items are specific and assignable
|
|
126
|
+
- [ ] All metrics have proper units and context
|
|
127
|
+
|
|
128
|
+
Now analyze the provided data and generate the complete business analysis report following these guidelines.
|
package/src/agents/data_agent/skills/business-analytics/resources/templates/report-template.md
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# Business Analysis Report Template
|
|
2
|
+
|
|
3
|
+
## Metadata
|
|
4
|
+
- **Report Title**: [Business Unit] [Product/Service] Analysis Report
|
|
5
|
+
- **Data Source**: [Database/Table Names]
|
|
6
|
+
- **Analysis Period**: [Start Date] to [End Date]
|
|
7
|
+
- **Report Date**: [Generation Date]
|
|
8
|
+
- **Version**: [Version Number]
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Executive Summary (1 Page)
|
|
13
|
+
|
|
14
|
+
### Core Conclusions
|
|
15
|
+
|
|
16
|
+
1. **[Key Finding 1]** — [Metric and impact]
|
|
17
|
+
2. **[Key Finding 2]** — [Metric and impact]
|
|
18
|
+
3. **[Key Finding 3]** — [Metric and impact]
|
|
19
|
+
|
|
20
|
+
### Top 3 Immediate Actions
|
|
21
|
+
|
|
22
|
+
1. **[Action 1]** — [Timeline and expected impact]
|
|
23
|
+
2. **[Action 2]** — [Timeline and expected impact]
|
|
24
|
+
3. **[Action 3]** — [Timeline and expected impact]
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Model 1: [Analysis Dimension 1]
|
|
29
|
+
|
|
30
|
+
### 1.1 Methodology
|
|
31
|
+
|
|
32
|
+
[Explain data sources, calculations, and any limitations]
|
|
33
|
+
|
|
34
|
+
### 1.2 Summary Data
|
|
35
|
+
|
|
36
|
+
| Metric | Value | Unit |
|
|
37
|
+
|--------|-------|------|
|
|
38
|
+
| [Metric 1] | [Value] | [Unit] |
|
|
39
|
+
| [Metric 2] | [Value] | [Unit] |
|
|
40
|
+
| [Metric 3] | [Value] | [Unit] |
|
|
41
|
+
|
|
42
|
+
### 1.3 Breakdown by [Dimension]
|
|
43
|
+
|
|
44
|
+
| [Dimension] | [Metric 1] | [Metric 2] | [Metric 3] |
|
|
45
|
+
|-------------|------------|------------|------------|
|
|
46
|
+
| [Category 1] | [Value] | [Value] | [Value] |
|
|
47
|
+
| [Category 2] | [Value] | [Value] | [Value] |
|
|
48
|
+
| [Category 3] | [Value] | [Value] | [Value] |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Model 2: Profit Bridge Analysis
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
[Currency] % of Revenue
|
|
56
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
57
|
+
Revenue [Amount] 100.0%
|
|
58
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
59
|
+
Less: Cost of Goods Sold [Amount] [Pct]%
|
|
60
|
+
───────── ─────────
|
|
61
|
+
Gross Profit [Amount] [Pct]%
|
|
62
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
63
|
+
Less: [Operating Expense 1] [Amount] [Pct]%
|
|
64
|
+
Less: [Operating Expense 2] [Amount] [Pct]%
|
|
65
|
+
Plus: [Other Income 1] [Amount] [Pct]%
|
|
66
|
+
───────── ─────────
|
|
67
|
+
Commercial Profit [Amount] [Pct]%
|
|
68
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
69
|
+
Less: [Risk Adjustment 1] [Amount] [Pct]%
|
|
70
|
+
Less: [Risk Adjustment 2] [Amount] [Pct]%
|
|
71
|
+
───────── ─────────
|
|
72
|
+
Real Operating Profit [Amount] [Pct]%
|
|
73
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Key Insights
|
|
77
|
+
|
|
78
|
+
- **[Insight 1]**: [Description and impact]
|
|
79
|
+
- **[Insight 2]**: [Description and impact]
|
|
80
|
+
- **[Insight 3]**: [Description and impact]
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Model 3: Cash Conversion Cycle + GMROI
|
|
85
|
+
|
|
86
|
+
### 3.1 CCC Components
|
|
87
|
+
|
|
88
|
+
| Metric | Days | Formula | Calculation |
|
|
89
|
+
|--------|------|---------|-------------|
|
|
90
|
+
| DIO (Days Inventory Outstanding) | [Days] | (Avg Inventory / COGS) × 365 | [Show work] |
|
|
91
|
+
| DSO (Days Sales Outstanding) | [Days] | (AR / Revenue) × 365 | [Show work] |
|
|
92
|
+
| DPO (Days Payable Outstanding) | [Days] | (AP / COGS) × 365 | [Show work] |
|
|
93
|
+
| **Cash Conversion Cycle** | **[Days]** | **DIO + DSO - DPO** | **[Result]** |
|
|
94
|
+
|
|
95
|
+
### 3.2 DSO Structure Breakdown
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
Accounts Receivable Distribution:
|
|
99
|
+
[Bucket 1]: [Amount] [Pct]% [Visual Bar]
|
|
100
|
+
[Bucket 2]: [Amount] [Pct]% [Visual Bar]
|
|
101
|
+
[Bucket 3]: [Amount] [Pct]% [Visual Bar]
|
|
102
|
+
...
|
|
103
|
+
[Bucket N]: [Amount] [Pct]% [Visual Bar] ← Main Problem
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### 3.3 GMROI Analysis
|
|
107
|
+
|
|
108
|
+
| Metric | Value | Benchmark |
|
|
109
|
+
|--------|-------|-----------|
|
|
110
|
+
| Annual Gross Margin | [Amount] | — |
|
|
111
|
+
| Average Inventory | [Amount] | — |
|
|
112
|
+
| **GMROI** | **[Ratio]x** | [Benchmark Range] |
|
|
113
|
+
|
|
114
|
+
**Interpretation**: [Analysis of GMROI vs benchmark]
|
|
115
|
+
|
|
116
|
+
### 3.4 CCC Optimization Opportunities
|
|
117
|
+
|
|
118
|
+
| Initiative | Impact on CCC | Priority | Implementation |
|
|
119
|
+
|------------|---------------|----------|----------------|
|
|
120
|
+
| [Initiative 1] | [Days] | [Priority] | [Action] |
|
|
121
|
+
| [Initiative 2] | [Days] | [Priority] | [Action] |
|
|
122
|
+
| [Initiative 3] | [Days] | [Priority] | [Action] |
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Model 4: Strategic Scenario Analysis
|
|
127
|
+
|
|
128
|
+
### 4.1 Scenario Comparison
|
|
129
|
+
|
|
130
|
+
| Metric | [Scenario A] | [Scenario B] | [Scenario C] | Delta (B-A) |
|
|
131
|
+
|--------|--------------|--------------|--------------|-------------|
|
|
132
|
+
| Revenue | [Amount] | [Amount] | [Amount] | +[Amount] |
|
|
133
|
+
| Gross Margin | [Amount] | [Amount] | [Amount] | +[Amount] |
|
|
134
|
+
| Operating Profit | [Amount] | [Amount] | [Amount] | +[Amount] |
|
|
135
|
+
| Profit Margin | [Pct]% | [Pct]% | [Pct]% | +[Pct]% |
|
|
136
|
+
|
|
137
|
+
### 4.2 Business Model Characteristics
|
|
138
|
+
|
|
139
|
+
| Characteristic | [Model A] | [Model B] |
|
|
140
|
+
|----------------|-----------|-----------|
|
|
141
|
+
| [Attribute 1] | [Value] | [Value] |
|
|
142
|
+
| [Attribute 2] | [Value] | [Value] |
|
|
143
|
+
| [Attribute 3] | [Value] | [Value] |
|
|
144
|
+
| [Attribute 4] | [Value] | [Value] |
|
|
145
|
+
| [Attribute 5] | [Value] | [Value] |
|
|
146
|
+
|
|
147
|
+
**Core Trade-off**: [Description of strategic choice]
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Model 5: Executive Q&A
|
|
152
|
+
|
|
153
|
+
### CFO Questions
|
|
154
|
+
|
|
155
|
+
**Q1: [Financial question]?**
|
|
156
|
+
|
|
157
|
+
[Data-driven answer with supporting analysis]
|
|
158
|
+
|
|
159
|
+
**Q2: [Risk question]?**
|
|
160
|
+
|
|
161
|
+
[Data-driven answer with supporting analysis]
|
|
162
|
+
|
|
163
|
+
**Q3: [Liquidity question]?**
|
|
164
|
+
|
|
165
|
+
[Data-driven answer with supporting analysis]
|
|
166
|
+
|
|
167
|
+
**Q4: [Operational question]?**
|
|
168
|
+
|
|
169
|
+
[Data-driven answer with supporting analysis]
|
|
170
|
+
|
|
171
|
+
**Q5: [Strategic financial question]?**
|
|
172
|
+
|
|
173
|
+
[Data-driven answer with supporting analysis]
|
|
174
|
+
|
|
175
|
+
### CEO Questions
|
|
176
|
+
|
|
177
|
+
**Q1: [Strategic direction question]?**
|
|
178
|
+
|
|
179
|
+
[Strategic analysis and recommendation]
|
|
180
|
+
|
|
181
|
+
**Q2: [Talent/Organization question]?**
|
|
182
|
+
|
|
183
|
+
[Strategic analysis and recommendation]
|
|
184
|
+
|
|
185
|
+
**Q3: [Market/Product question]?**
|
|
186
|
+
|
|
187
|
+
[Strategic analysis and recommendation]
|
|
188
|
+
|
|
189
|
+
**Q4: [Growth question]?**
|
|
190
|
+
|
|
191
|
+
[Strategic analysis and recommendation]
|
|
192
|
+
|
|
193
|
+
**Q5: [Long-term sustainability question]?**
|
|
194
|
+
|
|
195
|
+
[Strategic analysis and recommendation]
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## Action Roadmap
|
|
200
|
+
|
|
201
|
+
### Priority Matrix
|
|
202
|
+
|
|
203
|
+
```
|
|
204
|
+
Impact
|
|
205
|
+
High │ [Action 2] [Action 1]
|
|
206
|
+
│ (Urgent/High) (High/Plannable)
|
|
207
|
+
│
|
|
208
|
+
│ [Action 3] [Action 4]
|
|
209
|
+
Mid │ (Urgent/Mid) (Plannable/Mid)
|
|
210
|
+
│
|
|
211
|
+
│ [Action 5] [Action 6]
|
|
212
|
+
Low │ (Urgent/Low) (Plannable/Low)
|
|
213
|
+
└────────────────────────────────────────
|
|
214
|
+
Urgent Plannable
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Immediate Actions (This Week)
|
|
218
|
+
|
|
219
|
+
| Action | Owner | Deadline | Expected Impact |
|
|
220
|
+
|--------|-------|----------|-----------------|
|
|
221
|
+
| [Action 1] | [Owner] | [Date] | [Impact] |
|
|
222
|
+
| [Action 2] | [Owner] | [Date] | [Impact] |
|
|
223
|
+
|
|
224
|
+
### Short-term Actions (This Month)
|
|
225
|
+
|
|
226
|
+
| Action | Owner | Deadline | Expected Impact |
|
|
227
|
+
|--------|-------|----------|-----------------|
|
|
228
|
+
| [Action 1] | [Owner] | [Date] | [Impact] |
|
|
229
|
+
| [Action 2] | [Owner] | [Date] | [Impact] |
|
|
230
|
+
|
|
231
|
+
### Medium-term Actions (This Quarter)
|
|
232
|
+
|
|
233
|
+
| Action | Owner | Deadline | Expected Impact |
|
|
234
|
+
|--------|-------|----------|-----------------|
|
|
235
|
+
| [Action 1] | [Owner] | [Date] | [Impact] |
|
|
236
|
+
| [Action 2] | [Owner] | [Date] | [Impact] |
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Appendix: Key Financial Metrics Quick Reference
|
|
241
|
+
|
|
242
|
+
| Metric | Formula | Industry Benchmark | Current Value |
|
|
243
|
+
|--------|---------|-------------------|---------------|
|
|
244
|
+
| Gross Margin % | (Revenue - COGS) / Revenue | 15-25% | [Value] |
|
|
245
|
+
| Operating Margin % | Operating Profit / Revenue | 8-15% | [Value] |
|
|
246
|
+
| Net Margin % | Net Profit / Revenue | 5-10% | [Value] |
|
|
247
|
+
| DSO (Days Sales Outstanding) | (AR / Revenue) × 365 | 30-60 days | [Value] |
|
|
248
|
+
| DIO (Days Inventory Outstanding) | (Inventory / COGS) × 365 | 20-40 days | [Value] |
|
|
249
|
+
| DPO (Days Payable Outstanding) | (AP / COGS) × 365 | 30-60 days | [Value] |
|
|
250
|
+
| CCC (Cash Conversion Cycle) | DIO + DSO - DPO | 60-100 days | [Value] |
|
|
251
|
+
| GMROI | Gross Margin / Average Inventory | 3.0-5.0x | [Value] |
|
|
252
|
+
| Inventory Turnover | COGS / Average Inventory | 6-12x | [Value] |
|
|
253
|
+
| Current Ratio | Current Assets / Current Liabilities | 1.2-2.0x | [Value] |
|
|
254
|
+
| Quick Ratio | (Current Assets - Inventory) / Current Liabilities | 0.8-1.5x | [Value] |
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
**Document Version**: 1.0
|
|
259
|
+
**Last Updated**: 2026-03-03
|
|
260
|
+
**Maintainer**: Business Analytics Skill
|