跳到正文
Skillpedia
分析与电子表格48k · #6140

warehouse

它能做什么

帮助规划和审查数据仓库分析工作,确保一切操作安全、表述清晰。它会明确要使用哪些数据、如何分析,以及如何可靠地展示结果。

适用场景

  • ✓当你想利用数据仓库中的数据回答一个业务问题时。
  • ✓当你写好了 SQL 查询,想确认它是否正确、安全时。
  • ✓当你需要清楚记录所用数据、数据采集时间以及所做的假设时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/warehouse/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/warehouse/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我想知道上个季度我们的销售数量,但只统计巴西的活跃客户。规划这项分析最好的方法是什么?”

每周 5 个新技能,1 分钟读完。

工作原理

首先,它会帮你明确问题、所需数据(比如客户和销售记录)以及时间范围。然后检查数据是否可靠,并在不暴露个人信息的前提下规划安全的查询。最后,它会帮你展示结果,并附上所有重要细节。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Warehouse Analysis

Overview

Use this skill to turn a business question into a careful, reproducible warehouse-analysis plan. It is vendor-neutral and assumes no particular schema, semantic layer, connector, or command-line tool.

The skill defaults to read-only work. It helps identify the data needed, review a proposed query, and communicate results without overstating what the evidence supports.

When to Use

  • The user wants to answer a business question using an authorized data warehouse.
  • A proposed SQL query needs a review for grain, joins, filters, privacy, or interpretation risks.
  • An analysis needs a clear record of scope, freshness, assumptions, and source tables.

Do not use this skill for warehouse administration, pipeline repair, access escalation, schema mutation, or production data changes.

Required Inputs

Before proposing a query, establish:

  1. The decision or question the analysis should inform.
  2. The population, metric, dimensions, and time window.
  3. The authorized warehouse or query interface available to the user.
  4. The relevant schema documentation or table metadata.
  5. Any privacy, retention, regional, or minimum-group-size constraints.

If a required input is missing, ask a focused question. Never invent table names, column names, business definitions, credentials, or query results.

Workflow

1. Define the analytical contract

Restate the request as:

  • Question: what is being measured or compared.
  • Population: which entities are included and excluded.
  • Metric: numerator, denominator, aggregation, and unit.
  • Window: dates, timezone, and whether the period is complete.
  • Decision: how the result will be used.

Call out ambiguous terms such as “active,” “customer,” “revenue,” or “last month.” Resolve ambiguity before querying.

2. Find governed sources

Prefer documented metrics, curated models, and governed tables over raw event streams. Use only schema information supplied by the user or available through an authorized interface.

For each proposed source, record:

  • table or model name;
  • expected grain and primary key;
  • freshness or maximum available date;
  • owner or documentation reference;
  • known exclusions and quality warnings.

If the source cannot be verified, label the plan as provisional and stop before presenting numerical conclusions.

3. Draft a read-only query

Create a query only when the real schema is known. The query should:

  • select only the columns needed for the stated question;
  • filter the requested time window explicitly;
  • use qualified column names and deterministic joins;
  • guard division by zero and null-sensitive calculations;
  • avoid row-level personal data when an aggregate answers the question;
  • include a conservative row limit for exploratory output when appropriate.

Do not emit guessed SQL with fictional identifiers. If no authorized execution tool is available, provide the reviewed query for the user to run rather than claiming it was executed.

4. Review before execution

Check the proposed query against this list:

  • Does every join preserve the intended grain?
  • Can a one-to-many join duplicate the numerator or denominator?
  • Are test, deleted, internal, or incomplete records handled deliberately?
  • Are timezone boundaries and partial periods explicit?
  • Does the query expose identifiers or small groups unnecessarily?
  • Would a simpler aggregate answer reduce data access?
  • Are metric definitions consistent with the documented source?

Revise any failed check before execution. For sensitive or high-impact decisions, ask for review by the data owner or another qualified analyst.

5. Execute only with authorization

Run a query only through a user-authorized, read-only interface. Do not request credentials in chat, bypass access controls, broaden permissions, or turn a read-only task into a write operation.

Stop if the interface is unavailable, the scope exceeds the user's authorization, or the result would reveal restricted personal or confidential data.

6. Validate the result

Before interpreting output:

  • compare row counts and totals with a trusted reference when one exists;
  • inspect null rates, duplicates, and unexpected categories;
  • test whether conclusions change under reasonable window or filter choices;
  • separate observed values from hypotheses about their causes.

Do not infer causality from a descriptive query. Do not hide contradictory or incomplete evidence.

…

常见问题

什么是数据仓库?

它是一个庞大的存储库,企业会在这里存放大量有组织的数据,用于分析。

什么是查询?

查询是向数据库发出的请求,用于检索或分析特定信息,通常使用 SQL 等语言编写。

为什么要在运行查询之前先检查它?

这样可以确保查询能给出正确的答案,不会泄露敏感数据,不会重复统计信息,并且考虑到所有重要细节,比如日期和筛选条件。

详情

作者的原始描述

Plan and review read-only data warehouse analysis with explicit scope, privacy, provenance, and validation checks.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6140
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能