AGENT SKILL

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.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 1
Forks
0

01 前言 Front Matter

name
analysis-handoff
description
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.
disable-model-invocation
false

02 资源文件 1

03 SKILL.md 正文

Analysis Handoff

Contract

Capture a portable record of one SQL analysis run or prepared query. The verifier checks the manifest and file bytes locally. Query execution, database permissions, snapshot availability, and analytical validity require separate evidence.

Workflow

  1. Pick the one recurring question and a completed or prepared run. Capture the exact metric, parameters, output grain, permitted parameter changes, SQL dialect, and execution environment. Use the actual executed SQL for a completed run. Record execution evidence and source snapshot IDs when known.

  2. Make a new folder under the analysis workspace for this run. Write the five required files below. If the SQL comes from a template, capture the final rendered query along with the template revision, compiler or macro versions, and typed bindings needed to reconstruct it. Avoid copying credentials, signed URLs, or row-level data into the handoff.

  3. Capture and verify the manifest. Run with Python 3.10 or newer and resolve the script path relative to this skill's installed directory.

    python3 /path/to/lead-analyst/scripts/analysis_handoff.py capture ./handoff
    python3 /path/to/lead-analyst/scripts/analysis_handoff.py verify ./handoff
    

    Use repeatable --artifact flags at capture for additional files, for example --artifact bindings.json --artifact template_manifest.json. Keep these paths relative to the folder. Create a new folder for a revised run so the earlier fingerprint remains inspectable.

  4. Record what was verified. A receiving analyst should be able to identify the required access, run the documented command, compare an expected aggregate, and change one approved parameter. If an independent rerun has happened, record the operator or role, evidence, and result in the handoff before capture. With mutable or unknown inputs, report any limits on reproducing the historical values.

Output Format

File Contents
analysis.json Question, parameters, SQL dialect, dependencies, source states, execution state, and rerun command
query.sql Exact SQL with parameter placeholders if used
definitions.json Metric versions, units, grain, numerator/denominator, eligibility, and time rules
quality.json Observed grain, coverage, freshness and reconciliation checks, unresolved issues, and checks still pending
README.md Required access, rerun procedure, expected output, ownership, and limitations
manifest.json Generated SHA-256 fingerprints and recorded execution and snapshot states

Minimal analysis.json shape

{
  "question": "How many support requests met the response target last week?",
  "execution_state": "prepared",
  "rerun_command": "Run query.sql with the date range in the approved SQL workspace",
  "sources": [
    {"name": "support request events", "snapshot_state": "mutable"}
  ]
}

Use executed when you have a traceable run ID or log reference and include execution_reference. Each source is pinned, mutable, or unknown. A pinned source requires a snapshot identifier. Include an observed watermark or cutoff when useful, even for mutable sources.

Anti-Patterns

  • Treating a successful file check as a database rerun.
  • Declaring historical reproducibility when an input is mutable or unverified.
  • Substituting a rewritten query for the SQL that produced a published result.

04 同仓库更多 Skills

weisberg
weisberg/agile_agentic_analytics

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.

★ 1
weisberg
weisberg/agile_agentic_analytics

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.

★ 1
weisberg
weisberg/agile_agentic_analytics

minimal-skill

Minimal shared skill fixture for marketplace renderer and validator examples.

★ 1
weisberg
weisberg/agile_agentic_analytics

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

★ 1
weisberg
weisberg/agile_agentic_analytics

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

★ 1
weisberg
weisberg/agile_agentic_analytics

prd-writer

Use this skill whenever the user wants to write, draft, create, or scaffold a PRD (Product Requirements Document), spec, product brief, one-pager, or "working backwards" PR/FAQ from an idea, rough notes, discovery inputs, or an existing partial draft that needs authoring. Trigger on phrases like "write a PRD", "draft a spec", "product doc for X", "one-pager", "PR/FAQ", "feature brief", or when the user describes a feature/product idea and asks for it to be turned into a written requirements document. Do NOT trigger for critique or approval-readiness review of an existing PRD (use prd-review), engineering design docs, RFCs, ADRs, prioritization, roadmaps, or technical architecture documents. The output of this skill is always a markdown file (or section thereof) that a real product team could ship from.

★ 1