source-inventory
Use this skill when the analyst needs to map available data sources before analysis: tables, files, dashboards, notebooks, reports, APIs, owners, freshness, grain, access, and source-of-truth status. Trigger on phrases like source inventory, data source map, what data do we have, find the relevant tables, catalog these sources, dashboard inventory, or analysis evidence inventory.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- source-inventory
- description
- Use this skill when the analyst needs to map available data sources before analysis: tables, files, dashboards, notebooks, reports, APIs, owners, freshness, grain, access, and source-of-truth status. Trigger on phrases like source inventory, data source map, what data do we have, find the relevant tables, catalog these sources, dashboard inventory, or analysis evidence inventory.
- disable-model-invocation
- false
02 资源文件 1
- 其他routing-eval.jsonl323 B
03 SKILL.md 正文
Source Inventory
Contract
You are the evidence cartographer. Your job is to map what data and analytical artifacts exist, what each can safely answer, and which source should be trusted.
This skill inventories sources; it is read-only and does not decide the business
answer or verify data quality in depth. If trust is uncertain, hand off to
data-quality-audit. If source meanings conflict, hand off to metric-contract
or metric-lineage. This inventory is typically the first step before
analysis-planning.
Read references/analysis-standards.md for the analytical spine.
Workflow
Phase 1: Define the Question Boundary
Identify the decision or analysis area the inventory must support. An unbounded "catalog everything" inventory is low-value; scope it to what the analysis needs.
Phase 2: Search Likely Locations (Evidence)
Inspect workspace/, data/, analysis/, notebooks/, reports/,
dashboards/, sql/, queries/, dbt/, schema docs, README files, and plugin
shared schemas when present. Enumerate concrete artifacts, not vague categories.
Phase 3: Profile Each Source's Metadata
For each source capture owner, grain, row/entity meaning, freshness, date coverage, key fields, access status, and known caveats. For CSV/TSV extracts you can inspect, get grain and coverage facts directly from the profiler rather than guessing:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/profile_table.py" path/to/source.csv
For warehouse tables and dashboards you cannot open, record what is knowable and mark the rest as unverified.
Phase 4: Classify Trust and Map Relationships
- Mark each source: source of truth / derived / exploratory / stale / unknown / deprecated.
- Show how sources feed each other: raw table → model → dashboard → report. The same number often appears in several places with different transformations.
Phase 5: Decision Gate — Source of Truth Under Conflict
The core hazard is anointing the most convenient source as the source of truth.
Hard STOP rule: if two sources disagree on the same metric and you cannot
determine which is authoritative from metadata alone, do not pick one — record
both as conflicting, and route to metric-lineage (to trace them) or
metric-contract (to reconcile). When the analyst must proceed with one, ask with
AskUserQuestion:
- Source of truth — <source A> / <source B> / defer until lineage resolves it.
- Scope — inventory only, or also flag the conflict for reconciliation now.
Phase 6: Identify Gaps and Recommend the Next Route
Name missing sources, access blockers, undocumented fields, and source-of-truth conflicts. Say whether to proceed to planning, metric contract, data-quality audit, or analysis.
Output Format
# Source Inventory: <topic>
**Decision / scope:** ...
**Recommended source of truth:** <source or "conflicting — unresolved">
**Confidence:** High / Medium / Low
## Source Catalog
| Source | Grain | Owner | Freshness | Trust | Use For | Caveats |
|--------|-------|-------|-----------|-------|---------|---------|
## Lineage Sketch
## Gaps And Blockers
## Recommended Next Step
Save a durable inventory to workspace/analysis/lead-analyst/source-maps/ if
workspace/ exists, otherwise analysis/lead-analyst/source-maps/, using:
YYYYMMDD-HHMMSS-source-inventory-<slug>.md
Close with a completion status block:
STATUS: DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT
Artifact: <path or "none — returned inline">
Recommended source of truth: <source or "conflicting">
Next skill: /lead-analyst:analysis-planning | metric-contract | data-quality-audit
Open concerns: <none or list — e.g. access blockers, conflicting sources>
Use DONE_WITH_CONCERNS when the map is usable but a source-of-truth conflict or
access gap remains; BLOCKED when no relevant sources can be located or accessed;
NEEDS_CONTEXT when the decision the inventory serves is undefined.
Anti-Patterns
- Listing files without saying what each can answer.
- Treating the most convenient source as the source of truth.
- Picking a winner between conflicting sources without lineage evidence.
- Ignoring grain: account, user, session, event, order, and row are not the same.
- Failing to separate raw sources from transformed dashboards.
- Hiding access gaps until execution time.
04 同仓库更多 Skills
metric-reconciliation
Use when two reports disagree, a KPI needs reconciliation across sources, or actuals need to be compared with a plan, forecast vintage, or prior methodology. Align population, coverage, calendar, attribution, and observation windows before computing gaps. Identify missing slices and preserve unresolved residuals.
analysis-handoff
Use to make a recurring SQL analysis reproducible, hand it to another analyst, or check whether an analysis bundle changed. Capture the exact query, metric definitions, inputs, source vintages, checks, and rerun steps in a portable folder without requiring a copy of row-level results.
conversation-ingestion
File a conversation transcript or notes from an interview, research discussion, or support exchange. Preserve the raw material, capture decisions and actions, and update participant and company timelines. Trigger on 'process this conversation', 'ingest this conversation', 'file this transcript', or 'conversation notes to KB'. For standalone media use media-ingest. For source routing use ingest.
minimal-skill
Minimal shared skill fixture for marketplace renderer and validator examples.
roadmap
Use this skill when the user wants a product roadmap, initiative sequencing, Now/Next/Later plan, quarterly roadmap, release theme map, product strategy-to-roadmap translation, or executive roadmap narrative. Trigger on phrases like "build a roadmap", "roadmap these initiatives", "what should be now next later", "sequence this backlog", "quarterly product roadmap", "theme-based roadmap", or "plan the next two quarters". Do NOT trigger for drafting or reviewing a single PRD (use prd-writer or prd-review), converting a PRD into an agentic PLAN.md (use prd-to-plan), or scoring/ranking a set of options without a time horizon (use prioritization).
prioritization
Use this skill when the user wants to rank, score, triage, or compare product opportunities, features, PRD requirements, backlog items, roadmap candidates, or initiatives using RICE, impact-effort, confidence, reach, value, effort, risk, or tradeoff analysis. Trigger on phrases like "prioritize these features", "rank this backlog", "RICE score", "impact effort matrix", "what should we build first", "compare these initiatives", or "stack rank product bets". Do NOT trigger for a time-based roadmap (use roadmap), writing or reviewing one PRD (use prd-writer or prd-review), turning a PRD into an agentic plan (use prd-to-plan), or analyzing experiment results (use ab-testing or experimentation skills).