claude-skills/engineering/hooks
Claude 4f23da444a
feat(engineering): metric-contracts plugin
One owned, versioned definition per business metric, and a cause when
two dashboards disagree. Reads dbt's semantic_manifest.json (legacy and
1.12 spec, shapes taken from dbt-core 1.12.7 artifacts) or a plain
contract JSON.

- metric_contract_lint.py: 13 rules (owner, unresolved inputs, average
  of ratios, count vs count_distinct, summed balances, duplicate and
  conflicting definitions, cycles, undeclared derived inputs)
- metric_diff.py: breaking / renamed / removed / affected / cosmetic per
  metric, version-bump gate, dbt exposures to warn; renames upstream are
  mapped through so they do not count as changes downstream
- metric_reconcile.py: two sources of one metric, names the gap pattern
  (bucketing, scale, offset, step, tail, subset, coverage)

Ships cs-metric-steward, /cs-metric-check, /cs-metric-reconcile, a
skill-router hook, 3 cited references, real dbt example artifacts, a
bundle mirror, trigger and behaviour eval cases, refreshed counters,
mirrors and listing baseline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFGHYCnaRjnRtviqeba
2026-11-26 17:03:28 +00:00
..
hooks.json feat(hooks): skill hints for the 21 skills that never auto-load 2026-11-11 02:15:40 +00:00
skill_router.py feat(hooks): skill hints for the 21 skills that never auto-load 2026-11-11 02:15:40 +00:00
skill_routes.json feat(engineering): metric-contracts plugin 2026-11-26 17:03:28 +00:00