Generate reproducible analysis artifacts — SQL queries, Python visualizations, and summary tables — as you work through a BigQuery data analysis. Use when asked to conduct a deep dive, exploratory analysis, or investigation that goes beyond a simple data lookup.
61
72%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/analysis-artifacts/SKILL.mdAt the start of every analysis:
analyses folder, named according to the existing pattern there/assets/queries and /assets/visualizationsREADME.md at the root of the new directory — this is the main readable document for the analysisAlways create a plan before starting, whether or not the user asked for one. Steps in the plan should map to the logical sub-questions or sub-areas you've deemed important to explore. Present the plan and wait for a go-ahead before proceeding.
Once the plan is approved:
Add a title, author, and date to the top of the README
Add a Problem Statement section summarizing the analysis question and the sub-pieces you'll explore
Add a Cohorts Definition section. This must be extremely explicit about the groups being compared. If comparing two groups (e.g., free vs. paid, new vs. old, before vs. after a milestone), define cohorts in a way that controls for confounding factors. Consider:
Once defined, respect these cohort definitions in all queries throughout the analysis.
For every material step in the analysis:
.sql file in /assets/queries/ with a descriptive name and a comment block explaining the query's purpose. Only create the file after you're satisfied with the results. Skip trivial or one-off lookup queries./assets/visualizations/ with descriptive names. If a table, save it as a .csv in /assets/visualizations/.If you need to redo part of the analysis (due to a methodology correction or user feedback), overwrite all associated artifacts:
.sql query file.csv table fileNote the change to the user when you do this.
When the analysis is complete (either at the end of the plan or when the user asks), write the full README:
/assets/visualizations/ where appropriate.csv files in /assets/visualizations/analyses/
└── 2024-01-user-retention/
├── README.md
└── assets/
├── queries/
│ ├── cohort_retention_by_week.sql
│ └── retention_by_plan_type.sql
└── visualizations/
├── retention_curve.py
├── retention_curve.png
└── plan_type_summary.csv6c08c49
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.