dsh-plugin-t-expert 0.4.48 → 0.4.53
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/CHANGELOG.md +139 -0
- package/README.md +2 -2
- package/THIRD-PARTY-NOTICES +3 -3
- package/data/roster.json +2220 -756
- package/data/source.json +2 -2
- package/lib/client.js +29 -3
- package/lib/fetch-assets.js +37 -2
- package/lib/index.js +37 -10
- package/lib/remote.js +13 -0
- package/package.json +2 -2
- package/vendor/third-party-licenses/README.md +1 -1
- package/data/experts/engineering/data-analytics-reporter/agents/data-analytics-reporter.md +0 -174
- package/data/experts/engineering/data-analytics-reporter/skills/analytics-reporting/SKILL.md +0 -213
- package/data/experts/engineering/data-analytics-reporter/skills/data-quality-assessment/SKILL.md +0 -167
- package/data/experts/engineering/data-analytics-reporter/skills/data-visualization/SKILL.md +0 -94
- package/data/experts/engineering/data-analytics-reporter/skills/kpi-design/SKILL.md +0 -134
- package/data/experts/engineering/data-analytics-reporter/skills/metric-diagnostics/SKILL.md +0 -143
- package/data/experts/finance/vietnam-finance-tax-expert/.codebuddy-plugin/plugin.json +0 -60
- package/data/experts/finance/vietnam-finance-tax-expert/.downloaded_at +0 -1
- package/data/experts/finance/vietnam-finance-tax-expert/.imported-from-workbuddy +0 -7
- package/data/experts/finance/vietnam-finance-tax-expert/README.md +0 -84
- package/data/experts/finance/vietnam-finance-tax-expert/persona.md +0 -323
- package/data/experts/hr/fbsir-beike-yi/agents/fbsir-beike-yi.md +0 -225
- package/data/experts/hr/fbsir-beike-yi/contracts/first-value-contract.json +0 -33
- package/data/experts/hr/fbsir-beike-yi/contracts/high-value-delivery.schema.json +0 -36
- package/data/experts/hr/fbsir-beike-yi/contracts/material-scope.schema.json +0 -46
- package/data/experts/hr/fbsir-beike-yi/contracts/option-decision-contract.json +0 -34
- package/data/experts/hr/fbsir-beike-yi/contracts/reuse-capsule.schema.json +0 -28
- package/data/experts/hr/fbsir-beike-yi/contracts/teaching-quality-review-contract.json +0 -38
- package/data/experts/hr/fbsir-beike-yi/contracts/writeback-contract.json +0 -34
- package/data/experts/hr/fbsir-beike-yi/examples/acceptance-cases.json +0 -104
- package/data/experts/hr/fbsir-beike-yi/examples/local-workspace-scenarios.json +0 -43
- package/data/experts/hr/fbsir-beike-yi/examples/output-structures.md +0 -111
- package/data/experts/hr/fbsir-beike-yi/references/evidence-and-source-ledger.md +0 -56
- package/data/experts/hr/fbsir-beike-yi/references/user-visible-copy.md +0 -60
- package/data/experts/hr/fbsir-beike-yi/references/workbuddy-local-mode-boundary.md +0 -41
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/SKILL.md +0 -152
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/bounded-revision.md +0 -30
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/high-value-delivery.md +0 -33
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/local-writeback.md +0 -35
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/material-sensemaking.md +0 -43
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/option-decision.md +0 -40
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/reuse-capsule.md +0 -34
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/teaching-quality-review.md +0 -28
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/templates/high-value-delivery-card.md +0 -35
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/templates/material-understanding-card.md +0 -47
- package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/templates/teaching-option-card.md +0 -38
- package/data/experts/marketing/kdocs-ppt-creator/agents/kdocs-ppt-creator.md +0 -42
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/SKILL.md +0 -164
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/auth.md +0 -32
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/file-locating-guide.md +0 -34
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/doc_master.md +0 -83
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/doc_presentation.md +0 -85
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/doc_shape.md +0 -118
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/doc_slide.md +0 -94
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/export.md +0 -178
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/jsapi_shape.md +0 -131
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/jsapi_slide.md +0 -126
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/slide.md +0 -139
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/theme.md +0 -204
- package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp.md +0 -164
- package/data/experts/specialized/job-companion-team/agents/job-companion-interview.md +0 -74
- package/data/experts/specialized/job-companion-team/agents/job-companion-negotiation.md +0 -82
- package/data/experts/specialized/job-companion-team/agents/job-companion-reflection.md +0 -87
- package/data/experts/specialized/job-companion-team/agents/job-companion-resume.md +0 -82
- package/data/experts/specialized/job-companion-team/agents/job-companion-team-lead.md +0 -162
- package/data/experts/specialized/job-companion-team/skills/interview-prep/SKILL.md +0 -73
- package/data/experts/specialized/job-companion-team/skills/mock-interview/SKILL.md +0 -65
- package/data/experts/specialized/job-companion-team/skills/onboarding-reflection/SKILL.md +0 -142
- package/data/experts/specialized/job-companion-team/skills/resume-polish/SKILL.md +0 -82
- package/data/experts/specialized/job-companion-team/skills/salary-negotiation/SKILL.md +0 -105
- package/data/experts/specialized/job-companion-team/skills/self-inventory/SKILL.md +0 -67
- package/data/experts/specialized/job-companion-team/skills/target-positioning/SKILL.md +0 -64
package/data/experts/engineering/data-analytics-reporter/skills/analytics-reporting/SKILL.md
DELETED
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: analytics-reporting
|
|
3
|
-
description: "Build polished analytical reports, dashboards, and product/business analyses. Use when the user needs a durable report (executive or technical), an analytical dashboard with clear metrics, or a data-backed product/business analysis to inform decisions. Covers report building, dashboard construction, and decision-oriented quantitative analysis."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Analytics Reporting & Dashboard Building
|
|
7
|
-
|
|
8
|
-
Three complementary capabilities: (1) build polished analytical reports, (2) construct source-backed dashboards, and (3) perform decision-oriented product/business analysis.
|
|
9
|
-
|
|
10
|
-
## Part A: Report Building
|
|
11
|
-
|
|
12
|
-
Build polished analytical reports for executive, product, business, and technical audiences. The report owns the reader-facing narrative, audience shape, evidence placement, visual/table placement, caveats, source metadata, and handoff.
|
|
13
|
-
|
|
14
|
-
### Workflow
|
|
15
|
-
|
|
16
|
-
#### 1. Define The Reporting Job
|
|
17
|
-
|
|
18
|
-
State the user question, decision the report should support, primary audience, scope, time frame, comparison baseline, and what would make the report decision-useful.
|
|
19
|
-
|
|
20
|
-
Choose exactly one audience:
|
|
21
|
-
- **Product stakeholders**: default for product, business, leadership, strategy, diagnostics, KPI readouts.
|
|
22
|
-
- **Technical**: only when user asks for technical/methods-first report.
|
|
23
|
-
|
|
24
|
-
#### 2. Gather And Bound The Evidence
|
|
25
|
-
|
|
26
|
-
Inventory source data, metric definitions, denominators, assumptions, caveats, notebooks, SQL, and scripts needed. Resolve ambiguities before drafting claims. If a metric cannot be supported, record why.
|
|
27
|
-
|
|
28
|
-
#### 3. Distill The Report Spine
|
|
29
|
-
|
|
30
|
-
Write a compact answer-first report spine:
|
|
31
|
-
- Question
|
|
32
|
-
- Decision-useful answer
|
|
33
|
-
- Metric, cohort, denominator, time window, comparison basis
|
|
34
|
-
- Findings by segment or driver with evidence
|
|
35
|
-
- Sensitivity or validation checks
|
|
36
|
-
- Caveats that could change interpretation
|
|
37
|
-
- Recommended next step or open question
|
|
38
|
-
|
|
39
|
-
#### 4. Plan Reader-Facing Structure
|
|
40
|
-
|
|
41
|
-
Draft ordered major segments, visible titles, and intended evidence format. Use visuals by default for quantitative findings; tables for exact lookup.
|
|
42
|
-
|
|
43
|
-
Apply the report depth gate:
|
|
44
|
-
- Executive summary does not count as evidence section.
|
|
45
|
-
- Comparative reports need segment-level interpretation.
|
|
46
|
-
- Claims need at least one validation note near the finding.
|
|
47
|
-
|
|
48
|
-
#### 5. Design Visuals And Tables
|
|
49
|
-
|
|
50
|
-
Route every report visualization through the data-visualization skill for chart selection and QA. Every visual/table should support a specific claim. Plan an adjacent explanatory paragraph for every visualization.
|
|
51
|
-
|
|
52
|
-
#### 6. Build The Delivery Surface
|
|
53
|
-
|
|
54
|
-
Choose delivery mode:
|
|
55
|
-
- **HTML report**: portable static HTML with embedded chart images. Self-contained, can be opened directly in browser.
|
|
56
|
-
- **Markdown report**: structured markdown suitable for documentation or further processing.
|
|
57
|
-
|
|
58
|
-
#### 7. Validate The Finished Report
|
|
59
|
-
|
|
60
|
-
Confirm:
|
|
61
|
-
- Top of report answers the user directly
|
|
62
|
-
- Every major segment has a visible title
|
|
63
|
-
- Claims, visuals, tables, caveats appear in intended reading order
|
|
64
|
-
- Evidence and source notes are sufficient for auditability
|
|
65
|
-
|
|
66
|
-
### Report Standards
|
|
67
|
-
|
|
68
|
-
#### Narrative
|
|
69
|
-
- Open stakeholder reports with executive summary that answers the question directly (2-4 bullets with bold topic sentences).
|
|
70
|
-
- Open technical reports with main result, then definitions, methods, uncertainty, limitations.
|
|
71
|
-
- Start major segments with the takeaway, not setup prose.
|
|
72
|
-
- Keep report reading path top-to-bottom, single-column by default.
|
|
73
|
-
- Pair each important number or visual with plain-English interpretation.
|
|
74
|
-
- Include recommended next steps when evidence supports action.
|
|
75
|
-
|
|
76
|
-
#### Evidence And Sources
|
|
77
|
-
- Base every claim on saved data, code, query results, or rendered charts.
|
|
78
|
-
- Tie important numbers to readable source metadata near relevant content.
|
|
79
|
-
- Preserve source references for audit without cluttering the visible report.
|
|
80
|
-
|
|
81
|
-
#### Visuals And Tables
|
|
82
|
-
- Report visual headers should be neutral (chart name + short description). Put insights in adjacent narrative.
|
|
83
|
-
- Every visualization needs an adjacent explanatory paragraph.
|
|
84
|
-
- Report trend charts need enough data to make shape worth reading.
|
|
85
|
-
- Tables default to spacious density for narrative reports.
|
|
86
|
-
|
|
87
|
-
#### Metrics And Language
|
|
88
|
-
- Describe metrics in plain English before implementation details.
|
|
89
|
-
- Clarify definitions, cohorts, denominators before relying on a metric.
|
|
90
|
-
- Put raw numbers in context: percent of base, comparison to baseline, or historical range.
|
|
91
|
-
- Use shorthand large numbers in narrative (`899k`, `10.9k`, `1.2M`).
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## Part B: Dashboard Building
|
|
96
|
-
|
|
97
|
-
Build source-backed analytical dashboards that help teams monitor performance, explore drivers, and act on metrics.
|
|
98
|
-
|
|
99
|
-
### Workflow
|
|
100
|
-
|
|
101
|
-
#### 1. Define The Dashboard Brief
|
|
102
|
-
|
|
103
|
-
Understand who will use the dashboard, what they need to measure, which metrics matter, what surface it should live in, and constraints. Decide whether the dashboard is for status monitoring, recurring review, or analytical exploration.
|
|
104
|
-
|
|
105
|
-
#### 2. Select The Delivery Surface
|
|
106
|
-
|
|
107
|
-
- **BI tool**: default when connected BI is available (Tableau, Looker, Power BI, etc.)
|
|
108
|
-
- **HTML dashboard**: portable static dashboard for sharing
|
|
109
|
-
- **Streamlit**: when user explicitly asks or existing Streamlit app needs changes
|
|
110
|
-
- **Interactive web**: JavaScript-based with ECharts/Chart.js for custom needs
|
|
111
|
-
|
|
112
|
-
#### 3. Gather And Validate The Data
|
|
113
|
-
|
|
114
|
-
- Find the source path before rendering.
|
|
115
|
-
- Validate data trust (source, grain, freshness, reconciliation).
|
|
116
|
-
- Resolve time and context anchors.
|
|
117
|
-
- Stop if source-backed data is unavailable (no mock dashboards unless explicitly requested).
|
|
118
|
-
|
|
119
|
-
#### 4. Define The Metric Model
|
|
120
|
-
|
|
121
|
-
Select metrics and classify the measurement object:
|
|
122
|
-
- **Reach**: who/what is using the product, penetration, activation, coverage.
|
|
123
|
-
- **Volume**: events, usage, transactions, sessions, throughput, frequency.
|
|
124
|
-
- **Value**: revenue, cost, margin, savings, conversion, retention value.
|
|
125
|
-
- **Quality**: success/failure rates, reliability, latency, satisfaction.
|
|
126
|
-
- **Depth**: repeat usage, intensity, feature mix, workflow completion.
|
|
127
|
-
- **Mix**: segment, geography, channel, product/version, plan, cohort.
|
|
128
|
-
- **Movement**: trend, growth, seasonality, pre/post, benchmark, forecast.
|
|
129
|
-
- **Risk**: data coverage, freshness, known blind spots, capacity.
|
|
130
|
-
|
|
131
|
-
Map into dashboard roles: hero metrics (default view), diagnostic metrics (movement/breakdowns), guardrails, and detail metrics (lookup).
|
|
132
|
-
|
|
133
|
-
#### 5. Design The Dashboard Layout
|
|
134
|
-
|
|
135
|
-
Arrange summary to detail: key status/KPI first → movement over time → breakdowns → detail tables. Use global filters only when they materially update the view. Keep dashboards visual-heavy and neutral.
|
|
136
|
-
|
|
137
|
-
#### 6. Choose The Right Charts
|
|
138
|
-
|
|
139
|
-
Use the data-visualization skill for chart selection and encoding. Choose the simplest visual that answers the viewer's question.
|
|
140
|
-
|
|
141
|
-
#### 7. Build And Validate
|
|
142
|
-
|
|
143
|
-
Build in the selected surface. Before handoff check: opens cleanly, filters work, charts render, numbers reconcile, performance acceptable.
|
|
144
|
-
|
|
145
|
-
### Dashboard Quality Bar
|
|
146
|
-
|
|
147
|
-
- Default view answers the primary audience question before interaction.
|
|
148
|
-
- Filters are few, meaningful, and work correctly.
|
|
149
|
-
- Cards, charts, and tables reconcile.
|
|
150
|
-
- Metric set covers relevant families with primary outcomes, drivers, guardrails.
|
|
151
|
-
- Source freshness and caveats are visible where they matter.
|
|
152
|
-
|
|
153
|
-
---
|
|
154
|
-
|
|
155
|
-
## Part C: Product & Business Analysis
|
|
156
|
-
|
|
157
|
-
Answer product or business questions with data-backed evidence, context, and a recommendation.
|
|
158
|
-
|
|
159
|
-
### Workflow
|
|
160
|
-
|
|
161
|
-
#### 1. Start From The Decision
|
|
162
|
-
|
|
163
|
-
Identify the decision, audience, and action the analysis should inform:
|
|
164
|
-
- The question and decision to inform
|
|
165
|
-
- Who will use the answer and what they can act on
|
|
166
|
-
- The scope and comparison that define a useful answer
|
|
167
|
-
- The outcome or behavior that matters
|
|
168
|
-
- Any assumptions needed to proceed
|
|
169
|
-
|
|
170
|
-
#### 2. Gather Decision-Relevant Context
|
|
171
|
-
|
|
172
|
-
Before deeper analysis, clarify:
|
|
173
|
-
- **Intent**: what the work was meant to accomplish
|
|
174
|
-
- **Definitions**: how the metric/source is defined and measured
|
|
175
|
-
- **Timing**: what changed around the analysis period
|
|
176
|
-
- **Constraints**: decisions or limitations affecting realistic action
|
|
177
|
-
|
|
178
|
-
#### 3. Frame The Analysis
|
|
179
|
-
|
|
180
|
-
Turn the question into a focused analytical framework:
|
|
181
|
-
- Specific data questions that would support or change the recommendation
|
|
182
|
-
- Comparisons and dimensions to inspect
|
|
183
|
-
- Unit of analysis matching the decision
|
|
184
|
-
- Metric definitions and caveats
|
|
185
|
-
|
|
186
|
-
#### 4. Run Focused Quantitative Analysis
|
|
187
|
-
|
|
188
|
-
- Follow the framework. Run analyses that could change the recommendation first.
|
|
189
|
-
- Use the right comparison. Do not conclude a group is best just because it has the most total usage—normalize, check growth, check behavior.
|
|
190
|
-
- Size the opportunities. Estimate magnitude of impact.
|
|
191
|
-
- Keep work inspectable. Record queries and analysis.
|
|
192
|
-
- Validate before concluding.
|
|
193
|
-
|
|
194
|
-
#### 5. Translate Evidence Into Decision Implications
|
|
195
|
-
|
|
196
|
-
Interpret evidence through decision lenses (choose relevant ones):
|
|
197
|
-
- **Current scale**: large enough to matter?
|
|
198
|
-
- **Momentum**: growing, shrinking, accelerating?
|
|
199
|
-
- **Breadth**: broad-based or narrow?
|
|
200
|
-
- **Concentration**: depends on few large entities?
|
|
201
|
-
- **Intensity**: deep enough per unit?
|
|
202
|
-
- **Efficiency**: better output for input required?
|
|
203
|
-
- **Addressability**: can the team act on this?
|
|
204
|
-
- **Differentiation**: requires distinct motion?
|
|
205
|
-
- **Risk/dependency**: constraints that change recommendation?
|
|
206
|
-
|
|
207
|
-
#### 6. Hand Off The Recommendation
|
|
208
|
-
|
|
209
|
-
Make the recommendation explicit:
|
|
210
|
-
- What they should believe or do next
|
|
211
|
-
- Why the evidence supports that
|
|
212
|
-
- Which caveats or dependencies matter
|
|
213
|
-
- What follow-up would improve confidence
|
package/data/experts/engineering/data-analytics-reporter/skills/data-quality-assessment/SKILL.md
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: data-quality-assessment
|
|
3
|
-
description: "Assess whether datasets are trustworthy for analysis, modeling, dashboards, or pipelines; and validate finished analyses before sharing. Use for data quality checks (grain, freshness, nulls, duplicates, schema drift, joins, integrity, distributions) and analysis QA (methodology review, calculation verification, visualization checks, confidence assessment)."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Data Quality Assessment & Analysis Validation
|
|
7
|
-
|
|
8
|
-
Two complementary capabilities: (1) assess whether a dataset is trustworthy enough for its intended use, and (2) validate a finished analysis before it is shared with stakeholders.
|
|
9
|
-
|
|
10
|
-
## Part A: Data Quality Assessment
|
|
11
|
-
|
|
12
|
-
Assess whether a dataset is trustworthy enough for analysis, modeling, dashboards, experiments, or downstream pipelines. Start with the intended use and grain, run the highest-value checks for the data shape, and report concrete evidence, analytical risk, likely causes, and the smallest useful remediation or automated test.
|
|
13
|
-
|
|
14
|
-
### Workflow
|
|
15
|
-
|
|
16
|
-
1. **Clarify the quality question and operating context.**
|
|
17
|
-
|
|
18
|
-
Establish what the dataset represents, the intended unit of analysis, the downstream use, whether the user cares about raw ingestion quality, transformed-model quality, or both, and the comparison baseline. Identify expected grain, primary keys, important date columns, timezone assumptions, domain rules, allowed values, and business thresholds. If context is missing, infer cautiously and label assumptions.
|
|
19
|
-
|
|
20
|
-
2. **Choose an inspectable analysis path.**
|
|
21
|
-
|
|
22
|
-
When checks require SQL or Python, default to a companion notebook or script so the user can inspect the exact code behind the findings. For queryable tables, confirm schema, grain, sample rows, and query rules before heavier checks.
|
|
23
|
-
|
|
24
|
-
3. **Build a compact profile.**
|
|
25
|
-
|
|
26
|
-
Start with row count, column count, column names and types, candidate keys, duplicate rates on likely identifiers, min/max timestamps, null rates, distinct counts for categorical columns, and basic numeric summaries. Confirm grain before interpreting anomalies; many apparent quality problems are mixed-grain data, partial backfills, late-arriving data, or duplicated joins.
|
|
27
|
-
|
|
28
|
-
4. **Run core quality checks.**
|
|
29
|
-
|
|
30
|
-
Select checks that match the dataset and task across completeness, uniqueness, validity, consistency, integrity, timeliness, volume, and shape. Compare rates, not just counts, and segment by time, source, country, platform, or other key dimensions when that helps distinguish real issues from expected variation.
|
|
31
|
-
|
|
32
|
-
5. **Run shape-specific checks.**
|
|
33
|
-
|
|
34
|
-
Adapt the checks to the data shape:
|
|
35
|
-
- **Event data**: duplicate event IDs, future timestamps, coverage gaps, abrupt event-mix changes after releases.
|
|
36
|
-
- **Dimension tables**: non-unique business keys, orphan surrogate keys, status changes without timestamps, unexpected churn in reference values.
|
|
37
|
-
- **Fact tables**: mixed grain, impossible measures (negative revenue/quantity), join blowups, late-arriving partitions.
|
|
38
|
-
- **ML feature tables**: leakage from post-outcome fields, feature sparsity spikes, range shifts, class-label drift.
|
|
39
|
-
- **Experiment data**: duplicate assignments, variant imbalance, exposure without assignment, events before assignment.
|
|
40
|
-
|
|
41
|
-
6. **Run temporal and distribution checks when history exists.**
|
|
42
|
-
|
|
43
|
-
Prioritize temporal diagnostics when the user mentions "after X date", "suddenly", "recently". Check first-seen/last-seen dates, daily null-rate trends, duplicate-rate trends, row count trends, category-share shifts, distribution drift, and change points around launches, migrations, or incidents.
|
|
44
|
-
|
|
45
|
-
7. **Investigate analytical risks and likely causes.**
|
|
46
|
-
|
|
47
|
-
Tie each issue to downstream risk: broken analysis, biased decisions, broken joins, stale dashboards, incorrect experiments, leakage, or misleading segments. Identify whether the issue is isolated to a source, segment, partition, time window, or pipeline change.
|
|
48
|
-
|
|
49
|
-
8. **Recommend fixes or automated tests.**
|
|
50
|
-
|
|
51
|
-
Recommend the smallest set of fixes, monitoring, or automated tests that would materially reduce risk. Suggest automation only when the rule is stable and worth maintaining.
|
|
52
|
-
|
|
53
|
-
### Core Check Categories
|
|
54
|
-
|
|
55
|
-
- **Completeness**: null rate by column/partition/segment; unexpected empty strings or sentinel values; required-column population rate.
|
|
56
|
-
- **Uniqueness**: exact duplicate rows, duplicate primary keys, duplicate composite keys, proportion unique for semi-unique fields.
|
|
57
|
-
- **Validity**: type conformance; format checks for IDs, emails, URLs, enums, timestamps; range checks for measures and dates; allowed-values checks.
|
|
58
|
-
- **Consistency**: cross-field rule checks, units/currency consistency, status-timestamp alignment, agreement between duplicated fields.
|
|
59
|
-
- **Integrity**: parent-child key coverage, orphan records, unexpected many-to-many joins, broken SCD joins.
|
|
60
|
-
- **Timeliness**: freshness lag, missing recent partitions, unexplained historical rewrites or backfills.
|
|
61
|
-
- **Volume and shape**: row-count drift, distinct-count drift, distribution drift, share-of-total drift, new/disappeared categories.
|
|
62
|
-
|
|
63
|
-
### Severity Classification
|
|
64
|
-
|
|
65
|
-
- **Critical**: breaks trusted analysis, core joins, production dashboards, or key decisions.
|
|
66
|
-
- **High**: materially biases downstream decisions (large null spikes, category drift, leakage).
|
|
67
|
-
- **Medium**: localized or explainable issues needing documentation or monitoring.
|
|
68
|
-
- **Low**: cosmetic inconsistencies, expected sparsity, or known edge cases.
|
|
69
|
-
|
|
70
|
-
### Automated Test Guidance
|
|
71
|
-
|
|
72
|
-
Good candidates: primary key uniqueness, not-null checks on required columns, accepted values for stable enums, referential integrity, freshness thresholds, seasonality-aware row-count bounds.
|
|
73
|
-
|
|
74
|
-
Use caution with: hard-coded distribution thresholds on volatile metrics, strict uniqueness in messy entity-resolution cases, recent partitions when late-arriving data is normal.
|
|
75
|
-
|
|
76
|
-
### Output Structure
|
|
77
|
-
|
|
78
|
-
1. Dataset and grain summary
|
|
79
|
-
2. Checks performed
|
|
80
|
-
3. Findings (with evidence: counts, rates, segments, dates)
|
|
81
|
-
4. Temporal or trend anomalies
|
|
82
|
-
5. Likely causes and impacted use cases
|
|
83
|
-
6. Recommended fixes or automated tests
|
|
84
|
-
7. Assumptions and open questions
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## Part B: Analysis Validation (QA)
|
|
89
|
-
|
|
90
|
-
Validate an analysis before sharing with stakeholders. Focus on whether the question, data, methodology, calculations, visuals, claims, caveats, and recommendations are trustworthy enough for the stated audience and decision.
|
|
91
|
-
|
|
92
|
-
### Workflow
|
|
93
|
-
|
|
94
|
-
1. **Inventory the artifact and claims.**
|
|
95
|
-
|
|
96
|
-
Identify the report, notebook, spreadsheet, SQL, dashboard, or recommendation being validated. Extract the main question, audience, decision, key claims, headline numbers, data sources, time windows, populations, filters, and stated caveats.
|
|
97
|
-
|
|
98
|
-
2. **Validate question, methodology, and assumptions.**
|
|
99
|
-
|
|
100
|
-
Confirm the analysis answers the stated question (not a nearby easier one). Check population, eligibility rules, exclusions, sampling, metric definitions, formulas, units, denominators, timezones, cohorts, comparison periods, and baselines.
|
|
101
|
-
|
|
102
|
-
3. **Validate data selection and quality risks.**
|
|
103
|
-
|
|
104
|
-
Confirm that chosen tables/files are appropriate and current. Check freshness, partitions, segment coverage, completeness, null handling, deduplication, filter logic, and join coverage.
|
|
105
|
-
|
|
106
|
-
4. **Verify calculations and aggregations.**
|
|
107
|
-
|
|
108
|
-
Recompute highest-impact numbers independently. Check grain, subtotals, denominators, rate bases, period-over-period bases, weighted averages, units, and whether categories add to totals. For SQL, inspect join types, group-by grain, filters, distinct counts.
|
|
109
|
-
|
|
110
|
-
5. **Test reasonableness and common traps.**
|
|
111
|
-
|
|
112
|
-
Compare magnitudes against known baselines. Investigate trend jumps, flatlines, exact round numbers, 0%/100% rates. Check edge cases.
|
|
113
|
-
|
|
114
|
-
6. **Review visuals and presentation integrity.**
|
|
115
|
-
|
|
116
|
-
Confirm charts use appropriate types, scales, axes, titles, labels, ordering, and color. Check whether a quick reader could get a misleading interpretation.
|
|
117
|
-
|
|
118
|
-
7. **Evaluate narrative, conclusions, and recommendations.**
|
|
119
|
-
|
|
120
|
-
Confirm conclusions are supported by evidence. Separate findings from interpretation. Identify alternative explanations and unsupported causal language.
|
|
121
|
-
|
|
122
|
-
8. **Produce confidence assessment and required fixes.**
|
|
123
|
-
|
|
124
|
-
Prioritize issues by decision impact.
|
|
125
|
-
|
|
126
|
-
### Common Pitfalls
|
|
127
|
-
|
|
128
|
-
- **Join explosion**: many-to-many joins silently multiply rows.
|
|
129
|
-
- **Survivorship bias**: only includes entities that exist today.
|
|
130
|
-
- **Incomplete period comparison**: partial vs. complete period.
|
|
131
|
-
- **Denominator shifting**: eligible population changes between compared groups.
|
|
132
|
-
- **Average of averages**: pre-computed averages averaged without weighting.
|
|
133
|
-
- **Timezone mismatch**: different timestamp conventions or cutoffs.
|
|
134
|
-
- **Selection bias**: segments defined by the outcome being measured.
|
|
135
|
-
- **Simpson's paradox**: aggregate and segment-level trends conflict.
|
|
136
|
-
|
|
137
|
-
### Confidence Ratings
|
|
138
|
-
|
|
139
|
-
- **Ready to share**: Methodologically sound, key calculations verified, caveats clear.
|
|
140
|
-
- **Share with caveats**: Directionally usable but specific limitations must be communicated.
|
|
141
|
-
- **Needs revision**: Material errors, unsupported claims, or methodological issues.
|
|
142
|
-
|
|
143
|
-
### Validation Report Template
|
|
144
|
-
|
|
145
|
-
```markdown
|
|
146
|
-
## Validation Report
|
|
147
|
-
|
|
148
|
-
### Overall Assessment: [Ready to share | Share with caveats | Needs revision]
|
|
149
|
-
|
|
150
|
-
### Methodology Review
|
|
151
|
-
[Findings about question framing, data selection, population, definitions, comparisons.]
|
|
152
|
-
|
|
153
|
-
### Issues Found
|
|
154
|
-
1. [Severity: High/Medium/Low] [Issue, evidence, and impact]
|
|
155
|
-
|
|
156
|
-
### Calculation Spot-Checks
|
|
157
|
-
- [Metric]: [Verified / Discrepancy found / Not verified] - [evidence]
|
|
158
|
-
|
|
159
|
-
### Visualization Review
|
|
160
|
-
[Chart or presentation issues, if applicable.]
|
|
161
|
-
|
|
162
|
-
### Suggested Improvements
|
|
163
|
-
1. [Improvement and why it matters]
|
|
164
|
-
|
|
165
|
-
### Required Caveats for Stakeholders
|
|
166
|
-
- [Caveat that must be communicated]
|
|
167
|
-
```
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: data-visualization
|
|
3
|
-
description: "Design, specify, implement, revise, and QA quantitative visuals and chart choices. Use when an analytical answer needs visual judgment—comparing values, showing composition, reading concentration, understanding movement over time, or building chart specifications for reports and dashboards."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Data Visualization
|
|
7
|
-
|
|
8
|
-
Create quantitative visuals that are analytically sound, immediately readable, and polished enough to ship in a report, memo, slide, dashboard, notebook, or HTML artifact. Treat charts as evidence for a takeaway. Redesign charts that are visually attractive but analytically weak, and revise charts that are technically correct but hard to interpret.
|
|
9
|
-
|
|
10
|
-
## Chart Selection Guide
|
|
11
|
-
|
|
12
|
-
| Data relationship | Best chart | Use it well |
|
|
13
|
-
|---|---|---|
|
|
14
|
-
| Trend over time | `line` | Show enough points to reveal shape; use `area` only when filled magnitude helps; `sparkline` for dense KPI cards |
|
|
15
|
-
| Composition over time | `stackedArea` | Use when parts should read as one total; switch to `line` when comparing trajectories matters more |
|
|
16
|
-
| Comparison across categories | `bar` | Sort when order is not semantic; horizontal bars for long labels; avoid redundant legends |
|
|
17
|
-
| Ranking or top-N | `leaderboard` | Compact, single-measure; switch to ranked `bar` for more context |
|
|
18
|
-
| Part-to-whole composition | stacked `bar` | Keep denominator explicit; use `pie` only for rough read with few slices |
|
|
19
|
-
| Distribution or spread | `histogram` | Numeric bins that reveal shape; `boxPlot` when comparing groups is the point |
|
|
20
|
-
| Distribution across groups | `boxPlot` | Median and spread over full shape; switch to `histogram` when shape needs space |
|
|
21
|
-
| Relationship between variables | `scatter` | Numeric x and y, enough distinct points to show pattern; retain labels and one grouping candidate |
|
|
22
|
-
| Dense 2D pattern or cohort matrix | `heatmap` | Matrix shape or intensity; switch to `scatter` for point-level variation |
|
|
23
|
-
| Additive bridge start to end | `waterfall` | Only when drivers sum cleanly to end value; otherwise ranked `bar` |
|
|
24
|
-
| Ordered stage progression | `funnel` | Only for ordered single-series stages; prefer stage `bar` when geometry distorts |
|
|
25
|
-
|
|
26
|
-
## Workflow
|
|
27
|
-
|
|
28
|
-
1. **Define the analytical question and takeaway** before choosing a chart. Identify the intended comparison and context needed to make the visual honest.
|
|
29
|
-
|
|
30
|
-
2. **Choose the simplest defensible chart family** from the Chart Selection Guide. Keep the top-level families small: Tables & Scorecards, Trend, Comparison & Ranking, Composition, Distribution, Relationship, Uncertainty & Benchmark, Matrix & Cohort, Decomposition & Progression.
|
|
31
|
-
|
|
32
|
-
3. **Write a compact chart contract** before implementation:
|
|
33
|
-
- Analytical question and takeaway
|
|
34
|
-
- Chart family and concrete variant
|
|
35
|
-
- Data sufficiency for the chosen visual
|
|
36
|
-
- Palette policy and non-color distinction plan
|
|
37
|
-
- Output footprint and delivery target
|
|
38
|
-
|
|
39
|
-
4. **Select the delivery path** matching the final surface:
|
|
40
|
-
- Static HTML/PNG for reports and portable files
|
|
41
|
-
- Python (Matplotlib/Seaborn) for notebooks and static exports
|
|
42
|
-
- JavaScript (ECharts, Chart.js, D3) for interactive web dashboards
|
|
43
|
-
- BI-native widgets when a governed BI tool owns rendering
|
|
44
|
-
|
|
45
|
-
5. **Build in order**: format → structure → color → QA.
|
|
46
|
-
|
|
47
|
-
6. **Render or export** the chart in its real context. Save the image format the delivery surface expects.
|
|
48
|
-
|
|
49
|
-
7. **Inspect in final context**. Revise before delivery when the chart, labels, color, or container fails QA.
|
|
50
|
-
|
|
51
|
-
## Selection Rules
|
|
52
|
-
|
|
53
|
-
- Start from the analytical question, not a favorite chart type.
|
|
54
|
-
- Use charts for shape and comparison; tables for exact lookup.
|
|
55
|
-
- Do not choose `line` merely because "trend" appears—decide whether the reader needs status, movement, variance, mix, or distribution.
|
|
56
|
-
- Do not ship underpowered trend charts. Aim for at least 8-12 temporal points. Use KPI cards, grouped bars, or narrative for fewer points.
|
|
57
|
-
- Do not ship underpowered scatter charts. Aim for at least 12-20 meaningful points.
|
|
58
|
-
- Use horizontal bars for long labels; sorted bars when order has no semantic meaning.
|
|
59
|
-
- Prefer variant escalation within a family before inventing new chart types.
|
|
60
|
-
- Keep pie, Pareto, waterfall, Likert as variants, not defaults.
|
|
61
|
-
- Include volume/denominator/sample-size context when omission could mislead.
|
|
62
|
-
|
|
63
|
-
## Visual Design Standards
|
|
64
|
-
|
|
65
|
-
### Typography & Color
|
|
66
|
-
- Single font family across charts. Prefer white/near-white backgrounds, quiet grey grid lines, deep charcoal text, restrained palette.
|
|
67
|
-
- Do not rely on color alone. Use tone, open fill, marker fill, line style, direct labels, ordering, or faceting.
|
|
68
|
-
- Choose one palette policy before plotting:
|
|
69
|
-
- **Single-root preferred**: one non-neutral root plus shades for simple charts.
|
|
70
|
-
- **Hard two-root cap**: at most two non-neutral roots for binary, signed, or comparison charts.
|
|
71
|
-
- **Relaxed multi-category**: up to five approved roots when category identity is the point.
|
|
72
|
-
|
|
73
|
-
### Layout & Labels
|
|
74
|
-
- Chart titles: neutral and descriptive for reports/dashboards; takeaway-led for standalone charts.
|
|
75
|
-
- Put metric details (units, denominator, date range, cohort, filters) in the subtitle.
|
|
76
|
-
- Prefer direct labels when they reduce legend lookups; use compact legend when direct labels create clutter.
|
|
77
|
-
- Reserve space for horizontal bars with long labels or negative values.
|
|
78
|
-
- Do not use gradients inside marks, colored backgrounds, or inconsistent corner radii.
|
|
79
|
-
|
|
80
|
-
### Signed Values
|
|
81
|
-
- Avoid green/red by default. Use dark vs. open/light fills, direct signed labels, and clear zero-line context.
|
|
82
|
-
- Waterfall: matched neutral anchors + exactly two non-neutral delta colors.
|
|
83
|
-
|
|
84
|
-
## Quality Bar
|
|
85
|
-
|
|
86
|
-
Before delivery, confirm:
|
|
87
|
-
- Chart choice follows the analytical question, not visual preference.
|
|
88
|
-
- Form matches the comparison; scales stay honest and consistent.
|
|
89
|
-
- Data grain, filters, date range, denominator, and units match the supported claim.
|
|
90
|
-
- Every shipped chart has a visible title and subtitle with needed context.
|
|
91
|
-
- Labels, ticks, legends, annotations must not collide or clip.
|
|
92
|
-
- Multi-series marks have distinct tones/fills/styles legible in grayscale.
|
|
93
|
-
- Positive/negative states use tone + signed labels, not just color.
|
|
94
|
-
- Inspect the visual in the final layout before handoff.
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: kpi-design
|
|
3
|
-
description: "Design KPI frameworks, set targets, develop measurement plans, and estimate market/opportunity sizes (TAM/SAM/SOM). Use when success metrics, drivers, guardrails, targets, or measurement approach need to be defined or improved, or when a market or opportunity size estimate is needed."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# KPI Design & Market Sizing
|
|
7
|
-
|
|
8
|
-
Two complementary capabilities: (1) design KPI frameworks, set targets, and develop measurement plans; (2) estimate market or opportunity sizes with transparent assumptions and sensitivity analysis.
|
|
9
|
-
|
|
10
|
-
## Part A: KPI Framework Design
|
|
11
|
-
|
|
12
|
-
Design KPI frameworks, set targets, and develop measurement plans that help teams make product or business decisions.
|
|
13
|
-
|
|
14
|
-
### Workflow
|
|
15
|
-
|
|
16
|
-
#### 1. Clarify The Decision And Operating Context
|
|
17
|
-
|
|
18
|
-
Understand the decision the metrics need to support, the context in which they will be reviewed, and who will act on the result. Ask the user to clarify the goal, operating cadence, or measurement constraints when missing input would change the recommendation.
|
|
19
|
-
|
|
20
|
-
#### 2. Gather Evidence Before Recommending Metrics
|
|
21
|
-
|
|
22
|
-
When the prompt does not already provide enough context to know what success means, gather that context before recommending metrics or targets. Understand the goal, current state, audience, constraints, risks, existing definitions, prior decisions, and any baseline or target context.
|
|
23
|
-
|
|
24
|
-
#### 3. Generate A Wider Candidate Set
|
|
25
|
-
|
|
26
|
-
Create candidate outcome, driver, and guardrail metrics before narrowing. Each candidate should have a clear definition and a plausible link to the decision.
|
|
27
|
-
|
|
28
|
-
#### 4. Compare And Select Metrics
|
|
29
|
-
|
|
30
|
-
Compare candidate metrics by whether they:
|
|
31
|
-
- **Reflect the goal**: the metric represents the intended outcome. When using a proxy, explain why and where it could mislead.
|
|
32
|
-
- **Inform a real decision**: movement should change what the team does.
|
|
33
|
-
- **Show useful signal at the decision cadence**: not too slow-moving or noisy for the decision it supports.
|
|
34
|
-
- **Can be influenced by the team**: plausible levers exist, or paired with drivers.
|
|
35
|
-
- **Can be measured operationally**: instrument, calculate, and track consistently.
|
|
36
|
-
- **Are hard to game**: improving the metric should not hide harm to quality, trust, or retention.
|
|
37
|
-
|
|
38
|
-
Recommend 1-3 primary KPIs, 1-2 driver metrics for each KPI, and 1-2 guardrails when tradeoffs are likely.
|
|
39
|
-
|
|
40
|
-
For each recommended metric: what it measures, why it matters, how it is calculated, where it comes from, main pros and cons, and what caveats matter.
|
|
41
|
-
|
|
42
|
-
#### 5. Set Targets When Needed
|
|
43
|
-
|
|
44
|
-
Treat target setting as separate from metric selection.
|
|
45
|
-
|
|
46
|
-
Use the target-setting approach that fits the evidence:
|
|
47
|
-
- **Top-down**: benchmarks, historical performance, comparable products, competitor context.
|
|
48
|
-
- **Bottom-up**: what the team can realistically do—what is shipping, expected adoption, available levers.
|
|
49
|
-
|
|
50
|
-
Compare aspirational targets with realistic influence. A good target should be meaningful for the decision and plausible enough to guide action.
|
|
51
|
-
|
|
52
|
-
#### 6. Deliver The Recommendation
|
|
53
|
-
|
|
54
|
-
Compact metric-design brief:
|
|
55
|
-
1. Initiative summary
|
|
56
|
-
2. Recommended metric candidates with definition and rationale
|
|
57
|
-
3. Target recommendation with anchor, assumptions, and methodology
|
|
58
|
-
4. Evidence reviewed
|
|
59
|
-
5. Assumptions and missing context
|
|
60
|
-
6. Risks and guardrails
|
|
61
|
-
7. Open questions
|
|
62
|
-
|
|
63
|
-
### Example Metric Shapes
|
|
64
|
-
|
|
65
|
-
- **Product launch/adoption**: outcome metric for adoption + drivers for activation/engagement + guardrails for experience quality.
|
|
66
|
-
- **Growth work**: business outcome (activation/retention/monetization) + drivers + guardrails.
|
|
67
|
-
- **Funnel work**: progression/completion outcome + stage drivers + downstream quality guardrails.
|
|
68
|
-
- **Operating review**: health, pacing, action-oriented metrics.
|
|
69
|
-
- **Experiment**: one primary success metric + diagnostics + guardrails for unintended effects.
|
|
70
|
-
- **Platform/reliability**: service health, throughput, quality, cost efficiency, customer impact.
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Part B: Market Sizing
|
|
75
|
-
|
|
76
|
-
Produce defensible estimates of a market or opportunity from available context, public sources, transparent assumptions, and auditable calculations.
|
|
77
|
-
|
|
78
|
-
### Workflow
|
|
79
|
-
|
|
80
|
-
#### 1. Frame The Market Or Opportunity
|
|
81
|
-
|
|
82
|
-
Define the boundary:
|
|
83
|
-
- What is being sized (product category, workflow, problem, use case)
|
|
84
|
-
- Where and when (geography, segment, time horizon, maturity)
|
|
85
|
-
- Who counts (relevant population, unit of demand, transaction type)
|
|
86
|
-
- How measured (spend, revenue, volume, value created)
|
|
87
|
-
- What answer needed (TAM/SAM/SOM, market entry, expansion upside, spend pool)
|
|
88
|
-
|
|
89
|
-
#### 2. Choose A Sizing Approach And Inputs
|
|
90
|
-
|
|
91
|
-
Pick the simplest sound approach:
|
|
92
|
-
- **Top-down**: reliable aggregate market data exists.
|
|
93
|
-
- **Bottom-up**: market can be built from observable units and assumptions.
|
|
94
|
-
- **Value-based**: estimate from value created rather than published market total.
|
|
95
|
-
|
|
96
|
-
Use mixed approach only when cross-checking would materially improve confidence.
|
|
97
|
-
|
|
98
|
-
#### 3. Gather Sources For The Inputs
|
|
99
|
-
|
|
100
|
-
Start with user-named sources. Then use strongest available evidence for each major input. When an input depends on the outside market, use public sources for benchmarks, population estimates, comparable markets, or proxy assumptions.
|
|
101
|
-
|
|
102
|
-
If the strongest source is unavailable, continue with a transparent proxy assumption only when the estimate is still useful. Label the gap.
|
|
103
|
-
|
|
104
|
-
#### 4. Separate Facts From Assumptions
|
|
105
|
-
|
|
106
|
-
Keep sourced facts, inferred estimates, and judgment calls distinct. When exact data is unavailable, use a defensible proxy, explain why it is reasonable, and note confidence level.
|
|
107
|
-
|
|
108
|
-
#### 5. Build The Model
|
|
109
|
-
|
|
110
|
-
Make the model easy to inspect and adjust:
|
|
111
|
-
- Market definition and measurement unit
|
|
112
|
-
- Assumptions and source context
|
|
113
|
-
- Calculation chain and derived values
|
|
114
|
-
- Base case, material ranges, and sensitivity logic
|
|
115
|
-
- Validation priorities
|
|
116
|
-
|
|
117
|
-
Keep derived values traceable to formulas rather than hardcoded outputs.
|
|
118
|
-
|
|
119
|
-
#### 6. Test Sensitivity
|
|
120
|
-
|
|
121
|
-
Identify assumptions that move the estimate most. Show how the estimate changes when those assumptions vary. Prefer simple, decision-useful sensitivity over exhaustive scenario sprawl.
|
|
122
|
-
|
|
123
|
-
Use ranges when uncertainty is material. Do not hide uncertainty behind a single point estimate.
|
|
124
|
-
|
|
125
|
-
#### 7. State The Estimate And Validation Priorities
|
|
126
|
-
|
|
127
|
-
Close with:
|
|
128
|
-
- Market definition
|
|
129
|
-
- Estimate or range
|
|
130
|
-
- Method
|
|
131
|
-
- Main uncertainty drivers
|
|
132
|
-
- Sensitivity takeaways
|
|
133
|
-
- Validation priorities
|
|
134
|
-
- Practical interpretation for the user's decision
|