From analytics-skills
Use this skill after data discovery and before any headline query is written. Required whenever you're about to compute a number that will inform a decision — segmentation choices, time windows, comparison structure, validation queries, and confounds must be named in writing first. Trigger on phrases like "let's compute", "the analysis is", "I'll segment by", or any move from question to query. The plan exists because most analytical bugs are choice-bugs (wrong segmentation, wrong window, wrong baseline) rather than syntax bugs, and choices made silently are choices that can't be audited.
How this skill is triggered — by the user, by Claude, or both
Slash command
/analytics-skills:analytical-planningThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The plan is the bridge between the question and the query. Choices made in the plan are choices that can be audited, challenged, and revisited. Choices made silently inside SQL cannot.
The plan is the bridge between the question and the query. Choices made in the plan are choices that can be audited, challenged, and revisited. Choices made silently inside SQL cannot.
confound-audit. Better to write down "could be confounded by concurrent campaign X" before you query than to discover it after.Once the plan is written, deviations from it get logged in multiverse-analysis as path decisions. Pre-specified choices are protected from confirmation drift; post-hoc choices get tagged and disclosed in the writeup.
Save the plan to .analytics/plans/YYYY-MM-DD-<slug>.md.
Log this skill's activation:
python3 .analytics/db.py log-skill \
--skill analytical-planning \
--question-slug <slug> \
--completed
For each major pre-specified choice in the plan (segmentation, window, baseline, outlier rule, missing-data treatment), log a path decision flagged as pre-specified:
python3 .analytics/db.py log-path \
--question-slug <slug> \
--decision-type "<segmentation | window | baseline | outlier-rule | missing-data>" \
--chosen "<the chosen value>" \
--alternatives "<alt 1>" "<alt 2>" \
--rationale "<one sentence>" \
--pre-specified
The --pre-specified flag matters: choices made before data are protected; choices made after are subject to multiverse scrutiny.
"I'll figure out the segmentation after I see the data." That's allowed, but those segments are post-hoc and must be logged that way. They cannot be presented in the writeup as if they were planned.
"The plan feels like overhead for a small analysis." Match plan depth to stakes. Low-stakes: a paragraph. Medium: the eight items above, briefly. High: the eight items above, with each rationale defended.
"What if the plan turns out to be wrong?" That's the point. A wrong plan is recoverable — you log the deviation, explain why, and the audit trail stays intact. A silent deviation is not recoverable; you can't tell, weeks later, whether the choice was principled or convenient.
Plan saved at .analytics/plans/YYYY-MM-DD-<slug>.md. Hand off to predict-then-query/SKILL.md.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
npx claudepluginhub samwedll/analytics-skills --plugin analytics-skills