Agent Skillswarpdotdev/oz-skills › analysis-artifacts

analysis-artifacts

GitHub

用于执行深度数据探索性分析,生成可复现的SQL查询、Python可视化图表及摘要表格。通过标准化目录结构、明确群体定义和分步计划,确保分析过程的可追溯性与共享性。

.agents/skills/analysis-artifacts/SKILL.md warpdotdev/oz-skills

触发场景

用户要求进行深度数据分析或探索性查询 需要生成可复现且可分享的分析结果而非简单查找

安装

npx skills add warpdotdev/oz-skills --skill analysis-artifacts -g -y
更多选项

非标准路径

npx skills add https://github.com/warpdotdev/oz-skills/tree/main/.agents/skills/analysis-artifacts -g -y

不安装直接使用

npx skills use warpdotdev/oz-skills@analysis-artifacts

指定 Agent (Claude Code)

npx skills add warpdotdev/oz-skills --skill analysis-artifacts -a claude-code -g -y

安装 repo 全部 skill

npx skills add warpdotdev/oz-skills --all -g -y

预览 repo 内 skill

npx skills add warpdotdev/oz-skills --list

SKILL.md

Frontmatter
{
    "name": "analysis-artifacts",
    "description": "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."
}

Analysis Artifacts

When to Use

  • When asked to do a "deep dive" or "analysis" on a question with a non-obvious answer
  • When the analysis requires exploratory querying in BigQuery
  • When the output should be reproducible and shareable (not just a one-off answer)

Workflow

1. Scaffold the analysis directory

At the start of every analysis:

  • Create a new directory in the analyses folder, named according to the existing pattern there
  • Create subdirectories: /assets/queries and /assets/visualizations
  • Create a README.md at the root of the new directory — this is the main readable document for the analysis

2. Plan the analysis

Always 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.

3. Set up the README

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:

    • Signup/activation time (as defined by your product — e.g., first login, first meaningful action); this relates to user tenure
    • Plan type or subscription tier (e.g., free vs. paid)
    • Controlling for observation time window length across cohorts
    • Product-specific usage propensity metrics relevant to the analysis question

    Once defined, respect these cohort definitions in all queries throughout the analysis.

4. Create artifacts as you go

For every material step in the analysis:

  • SQL query artifact: For any BigQuery query that powers a visualization, summary, or key insight, save a .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.
  • Visualization or table artifact: For each key insight, assess whether it's best conveyed through a chart or a table. Lean toward visualizations. If a visualization, write a Python script to generate it and save both the script and the output image to /assets/visualizations/ with descriptive names. If a table, save it as a .csv in /assets/visualizations/.

5. Overwriting artifacts

If you need to redo part of the analysis (due to a methodology correction or user feedback), overwrite all associated artifacts:

  • Replace the .sql query file
  • Replace the visualization script and regenerate the image
  • Replace the .csv table file

Note the change to the user when you do this.

6. Summarize the analysis

When the analysis is complete (either at the end of the plan or when the user asks), write the full README:

  • Summarize each step and sub-question in logical document sections
  • Be crisp and concise — avoid unnecessary verbosity
  • Embed saved viz images from /assets/visualizations/ where appropriate
  • Generate markdown tables from .csv files in /assets/visualizations/
  • Include a small reference hyperlink to the associated query file in each section
  • Add a TL;DR section near the top (after Problem Statement, before Cohorts Definition)
  • Add a Key Takeaways section at the end

Examples

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.csv

版本历史

  • 6c08c49 当前 2026-07-24 16:31

同 Skill 集合

.agents/skills/ci-fix/SKILL.md
.agents/skills/create-pull-request/SKILL.md
.agents/skills/dbt-model-index/SKILL.md
.agents/skills/docs-update/SKILL.md
.agents/skills/github-bug-report-triage/SKILL.md
.agents/skills/github-issue-dedupe/SKILL.md
.agents/skills/mcp-builder/SKILL.md
.agents/skills/scheduler/SKILL.md
.agents/skills/seo-aeo-audit/SKILL.md
.agents/skills/slack-qa-investigate/SKILL.md
.agents/skills/terraform-style-check/SKILL.md
.agents/skills/web-accessibility-audit/SKILL.md
.agents/skills/web-performance-audit/SKILL.md
.agents/skills/webapp-testing/SKILL.md

元信息

文件数
0
版本
6c08c49
Hash
befbf861
收录时间
2026-07-24 16:31

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 06:36
浙ICP备14020137号-1 $访客地图$