/snowflake-pack:snowflake-pipeline-guardian [pipeline-evidence-bundle.json]from snowflake-pack
Diagnoses Snowflake pipeline issues (stale, skipped, suspended, lagging, duplicate rows, missing notifications) from read-only evidence. Returns evidence gaps, bounded hypotheses, and ordered recovery plans.
Ships in snowflake-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Pipeline symptoms cross object boundaries, but dependency order does not prove causality. This skill classifies a bounded evidence bundle, walks supplied dependency paths, and keeps observed facts, derived findings, hypotheses, and unknowns separate.
Use scripts/analyze_pipeline_state.py for
deterministic classification. Read
references/current-state.md before collecting
live evidence and
references/recovery-matrix.md before writing a
recovery plan.
SYSTEM$PIPE_STATUS JSON. Use the reviewed hashed projections only.SYSTEM$STREAM_HAS_DATA for diagnosis; calling it can affect a
stream's staleness behavior.The live collector has six reviewed schema-2 surface types:
pipeline: explicit half-open UTC history for task runs, dynamic-table
refreshes, and copy loads.pipeline-task-current: current role-visible task inventory.pipeline-stream-current: current role-visible stream inventory.pipeline-dynamic-table-current: current role-visible dynamic-table
inventory.pipeline-pipe-current: current role-visible pipe inventory.pipeline-pipe-status: one selector-bound, privacy-projected status receipt
for each pipe in the current pipe inventory; zero status receipts are correct
only when that inventory is empty.Each receipt must be live CLI output with exactly one same-statement
execution_context, the reviewed SQL/template/result hashes, exact datasets,
finite documented state/status domains, the exact fixed non_claims, the
declared cap, no collector error, and a valid self-hash. Invalid receipts never
reach finding classification. All receipts must
agree on organization/account, collector user, primary role and role type,
secondary roles, and UTC timezone. Their observations may span at most 15
minutes and may be at most 15 minutes old.
Receipt self-hashes are integrity checks, not trust anchors. Put the complete
receipts in one collector_receipts array, calculate the canonical bundle digest
at a separate trusted local boundary, record it separately, and then supply it to
the analyzer:
python3 "${CLAUDE_SKILL_DIR}/scripts/analyze_pipeline_state.py" \
--input ./pipeline-evidence-bundle.json --print-input-sha256
python3 "${CLAUDE_SKILL_DIR}/scripts/analyze_pipeline_state.py" \
--input ./pipeline-evidence-bundle.json \
--trusted-input-sha256 "sha256:<separately-recorded-digest>" \
--evaluated-at "<explicit-UTC-evaluation-time>"
A matching digest proves only byte identity with the operator-recorded bundle. It is not a signature, collector identity, or proof of Snowflake origin. Offline-normalized pipeline receipts are diagnostic-only and cannot support positive completeness claims.
Choose an explicit UTC history window no longer than seven days. Both bounds are required and the end is exclusive:
python3 "${CLAUDE_SKILL_DIR}/scripts/collect_snowflake_evidence.py" \
--surface pipeline --connection <approved-readonly-profile> \
--window-start <window-start-UTC> \
--window-end <exclusive-window-end-UTC> \
--output ./pipeline-history.json
Collect each current inventory surface once under the same authorization context:
python3 "${CLAUDE_SKILL_DIR}/scripts/collect_snowflake_evidence.py" \
--surface pipeline-task-current --connection <approved-readonly-profile> \
--output ./pipeline-task-current.json
Repeat with pipeline-stream-current, pipeline-dynamic-table-current, and
pipeline-pipe-current. For every hash in current_pipes, collect exactly one
status receipt using its corresponding validated three-part unquoted identifier
inside the trusted operator environment:
python3 "${CLAUDE_SKILL_DIR}/scripts/collect_snowflake_evidence.py" \
--surface pipeline-pipe-status --connection <approved-readonly-profile> \
--pipe DATABASE.SCHEMA.PIPE --output ./pipeline-pipe-status.json
The raw pipe selector is not receipt evidence. A successful receipt binds its fingerprint to the account-scoped object hash and hashes a receipt-only SQL rendering where that scoped hash replaces the selector. The analyzer recomputes both bindings. An error receipt retains only the reviewed template digest and a null selector fingerprint, so it cannot expose a dictionary-testable pipe name. Do not place the raw identifier in the bundle. History-window timestamps are safe selector values and are retained so the analyzer can recompute the rendered history-query digest.
History is capped independently at 5,000 task, refresh, and copy rows. Current
inventories are capped at 10,000 objects each; reaching a cap is incomplete.
Task completions are considered settled only through observation minus 45
minutes, completed dynamic-table refreshes through observation minus 3 hours,
and completed copy loads through observation minus 48 hours. Executing refreshes
are excluded. The receipt records each exact settled_through_utc. Evidence
after a settlement cutoff is unknown, not absent.
See references/observability-queries.md
for the exact field and nonclaim map, and
references/privilege-and-boundaries.md
before requesting access.
evaluated_at, then check evidence_trust,
collector_ingestion, evidence_coverage, evidence_gaps, and
graph_complete before reading findings. A validated six-surface bundle is
still only role-visible evidence; it does not prove account-wide inventory.dependency_order_not_proven_causality; list missing nodes and edges instead
of guessing.Key finding families include streams that may be stale, confirmed stale streams, suspended or failed tasks, dynamic-refresh failures and lag breaches, pipe notification/load gaps, partial/failed/skipped copy loads, skipped or overlapping task runs, duplicate delivery, and unproven replay idempotence. Missing settled evidence produces an unknown, never a healthy finding.
Return a compact incident receipt containing:
Do not echo receipt rows, selectors, raw identifiers, or collector error text.
If the input is malformed, untrusted, stale, incomplete, capped, or inconsistent, report the exact evidence class that failed and suppress positive claims. If no finding matches, say “no matching signal in supplied evidence,” not “pipeline healthy.” If collection fails, preserve the sanitized error code locally and report that the affected surface is unavailable; never paste free-text CLI or Snowflake errors into the incident receipt.
references/current-state.md — schema-2 bundle,
freshness, settlement, caps, and current/history nonclaims.references/observability-queries.md —
six reviewed read-only surfaces.references/recovery-matrix.md — recovery
tradeoffs and invariants.references/replay-and-overlap.md — replay,
overlap, and idempotency holds.references/privilege-and-boundaries.md
— least privilege, privacy, and mutation boundaries.references/source-notes.md — official Snowflake
sources and review date.eval-spec.yaml (opens in a new tab)references/current-state.md (opens in a new tab)references/observability-queries.md (opens in a new tab)references/privilege-and-boundaries.md (opens in a new tab)references/recovery-matrix.md (opens in a new tab)references/replay-and-overlap.md (opens in a new tab)references/source-notes.md (opens in a new tab)scripts/analyze_pipeline_state.py (opens in a new tab)scripts/collect_snowflake_evidence.py (opens in a new tab)scripts/fixtures/pipe-schema-duplicates.json (opens in a new tab)scripts/fixtures/stale-chain.json (opens in a new tab)scripts/sql/pipeline-dynamic-table-current.sql (opens in a new tab)scripts/sql/pipeline-pipe-current.sql (opens in a new tab)scripts/sql/pipeline-pipe-status.sql (opens in a new tab)scripts/sql/pipeline-stream-current.sql (opens in a new tab)scripts/sql/pipeline-task-current.sql (opens in a new tab)scripts/sql/pipeline.sql (opens in a new tab)scripts/test_analyze_pipeline_state.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/snowflake-access-guardianAudit Snowflake effective access and produce a safe least-privilege change packet.
Trace account-role inheritance, primary and secondary roles, managed-access
schemas, ownership, direct-to-user/PUBLIC grants, orphaned principals, and
existing-versus-future-grant conflicts. Use when access is unexpectedly broad or
denied, a role graph needs review, or an authorization cleanup needs evidence.
Trigger with phrases like "Snowflake access audit", "trace Snowflake grants",
"why can this user read", "Snowflake RBAC drift", or "future grants conflict".
/snowflake-cost-leak-hunterAudit and analyze Snowflake warehouse, serverless, Adaptive, storage, transfer, and AI cost evidence with a typed ledger that prevents double counting and exposes freshness, attribution, control, and invoice boundaries. Use when a Snowflake bill increased, a team needs chargeback/showback evidence, credits appear unexplained, or an operator asks which usage merits investigation. Trigger with "Snowflake bill increased", "find idle Snowflake credits", "Snowflake cost attribution", or "untagged Snowflake spend". Do not use to mutate cost controls or claim savings./snowflake-data-quality-sentinelAssess trusted Snowflake data metric function coverage and expectation evidence
without reading customer rows. Use when evaluations, definitions, schedules,
notifications, anomaly state, or monitoring coverage may be incomplete or
unhealthy. Trigger with "Snowflake data quality", "DMF expectation",
"definition drift", "missing evaluation", or "notification gap".
/snowflake-deploy-medicReview and safely diagnose Snowflake infrastructure and database deployments
across the snowflakedb/snowflake Terraform 2.x provider, grants/state/imports,
schemachange versioned and repeatable migrations, Snowflake CLI/drivers, and
behavior-change releases. Use before a production deploy, when a plan wants
to replace or revoke grants, state is unreadable, a migration checksum drifts,
or a CLI/driver upgrade changes behavior. Produces a zero-change/plan verdict,
ordered remediation, and tested rollback requirements. It never applies,
destroys, deploys, runs mutating SQL, or edits state/history automatically.
Trigger with "Snowflake Terraform plan", "grant import", "terraform state",
"schemachange checksum", "repeatable migration", "Snowflake CLI upgrade",
"driver BCR", or "rollback Snowflake deploy". Use when a production change
needs a current plan, migration-integrity, toolchain, or rollback gate.
/snowflake-failover-readiness-drillAnalyze Snowflake failover-group RPO/RTO readiness from independently trusted,
privacy-preserving live receipts without executing refresh, failover, failback,
redirect, cancellation, resume, or session changes. Use when an owner needs a
Business Critical disaster-recovery preflight, replication failure diagnosis,
dangling-reference check, or operator-executed drill proof. Trigger with "Snowflake
failover drill", "replication RPO", "failback proof", or "secondary refresh".
/snowflake-governance-coverage-auditorAudit trusted Snowflake classification, tags, masking, row access, projection,
join, aggregation, and privacy-policy evidence without reading customer data.
Use when governance enforcement may be missing or ambiguous. Trigger with
"Snowflake governance coverage", "policy precedence", "tag policy gaps",
"classification failure", or "POLICY_CONTEXT verification".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin snowflake-packOther plugins' skills for the same job