跳到正文
cccskills
免费在 GitHub 公开

Proactive Watch — Drift Detection

Detect silent drift between what the docs claim and what the repo actually contains — drift check, health check, audit, watch, sync check, /mxm-watch. Runs 13 drift classes and reports gaps before they ship.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(5)

  • SKILL.md6.5 KB
  • schemas/watch-profile.schema.json3.5 KB
  • schemas/watch-report.schema.json2.0 KB
  • watch.ps113.4 KB
  • watch.sh13.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Proactive Watch — Drift Detection Skill

Continuous enforcement of the Executable Contracts meta-principle (ADR-002). Catches drift across 10 universal drift classes on every session start.


Skill Purpose

Detect silent drift between declared reality (docs, manifests, inventories, ADRs) and actual reality (filesystem, git state, dependencies, hooks). Report findings with severity, triage routing, and evidence — so drift is fixed while it's cheap, not months later when it's entrenched.


Activation

TriggerBehavior
SessionStart hookRuns watch --light silently; appends summary block to session banner
/mxm-watchRuns LIGHT manually; shows full report
/mxm-watch --fullReserved for v1.0.0 — FULL phase with agent triage
mxm-context.watch_run MCP toolProgrammatic invocation from other skills / agents

Dispatch Path

TASK arrives with "check drift" / "audit" / "session start"
  │
  ▼
Maxim skill .claude/skills/proactive-watch/ matches
  │
  ▼
Load config/watch-profile.yml (per project)
  │
  ▼
For each ENABLED checker:
  ├── Run checker (bash watch.sh <checker> OR pwsh watch.ps1 <checker>)
  ├── Capture JSONL report line per drift
  └── On checker error: apply fail-mode policy (hybrid)
  │
  ▼
Aggregate report → .mxm-skills/watch-report.jsonl
Emit summary block to stderr / chat (LIGHT phase)
Route critical drift to triaged office (FULL phase, v1.0.0)

Behavioral Framing

Apply Fogg + COM-B + Present-Bias principles when surfacing drift:

  1. Fogg B=MAT — run at SessionStart when developer is engaged (max M × A)
  2. COM-B — provide clear Evidence + Action path, not just "something's wrong"
  3. Present-Bias Mitigation — frame every finding in terms of "fix now vs cost later"

Output language:

  • ✗ Bad: "Drift detected"
  • ✓ Good: "Declared 90 agents, filesystem has 91 — add to documents/ledgers/AGENT_SKILL_INVENTORY.md §1 (60s fix)"

Proactive Loops

The skill is itself a proactive loop. Additionally:

  • After fixing an inventory drift, proactively scan for recurring-pattern opportunities — if 3+ inventory drifts happened in one month, recommend a stronger pre-commit gate
  • After fixing a compliance drift, auto-route to CSO for root-cause analysis
  • After fixing a contract drift, check whether the underlying ADR needs superseding

Confidence Tagging

ScenarioTag
LIGHT run with all checkers passing🟢 HIGH
LIGHT run with drift detected, remediation suggested🟢 HIGH
FULL run (v1.0.0+) with agent triage complete🟢 HIGH
Any checker errored (fail-open tier)🟡 MEDIUM — report incomplete
Compliance or contract checker errored (fail-closed)🔴 LOW — action required
super_user.enabled = true suppresses advice (not drift detection)🔵 SUPER USER

Output Format

LIGHT summary (SessionStart banner)

Maxim WATCH (light)
  Drift detected : 3
  ⚠ inventory-drift: declared 90 agents, filesystem has 91 (severity 3)
  ⚠ version-drift: README badge v1.0.0, registry v1.0.0 (severity 3)
  ⚠ stale-handoff: handoff.md 9 days old (severity 2)
  Checker errors : 0
  Report         : .mxm-skills/watch-report.jsonl

JSONL report (machine-readable)

{"ts":"2026-04-18T12:00Z","phase":"light","project":"maxim","drift_class":"inventory-drift","severity":3,"declared":90,"actual":91,"evidence":"agents/MXM/ceo/new-agent.md","triage":"coo","action":"review-queue"}

Checker Execution Model

The skill ships two unified drivers that implement all 11 checkers (Classes 1–10 from v1.0.0; Class 11 surface-claims-drift added v1.0.1 with companion tool bootstrap/sync-counts.{sh,ps1} for mechanical propagation):

  • watch.sh — bash (Linux/macOS/Git-Bash)
  • watch.ps1 — PowerShell 7+ (Windows primary, cross-platform)

Each driver accepts one argument: the checker name. Running watch.sh all runs every enabled checker and aggregates output.

# Run single checker
.claude/skills/proactive-watch/watch.sh inventory-drift

# Run all enabled checkers (LIGHT phase default)
.claude/skills/proactive-watch/watch.sh all

Files in this Skill

FilePurpose
SKILL.mdthis file — skill contract
watch.shunified bash driver implementing all 11 checkers
watch.ps1unified PowerShell driver implementing all 11 checkers
schemas/watch-profile.schema.jsonvalidates per-project config/watch-profile.yml
schemas/watch-report.schema.jsonvalidates JSONL output lines

Self-Adoption (maxim repo)

This repo ships its own config/watch-profile.yml in v1.0.0 — the framework's first consumer is itself. Any drift that sneaks into this repo across multi-session work should surface at the next /mxm-watch or SessionStart.


Extending

Projects may add custom checkers by:

  1. Writing a script at .claude/skills/proactive-watch/custom/<name>.sh (+ .ps1)
  2. Registering it in config/watch-profile.yml under custom_checkers:
  3. Emitting JSONL lines matching schemas/watch-report.schema.json

Custom checkers run after standard checkers.


Related

  • Framework doc: composable-skills/frameworks/proactive-watch.md
  • ADR-002: documents/ADRs/ADR-002-executable-contracts.md
  • Command: .claude/commands/mxm-watch.md
  • Hook: .claude/hooks/session-start.{sh,ps1} calls watch --light
  • MCP: mxm-context tools watch_run, watch_report, watch_configure (v1.0.0+)

Copyright (c) 2026 iSystematic Inc. Maxim product. BSL 1.1.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

AI video and image prompt engineering — video generation, image generation, product video, social media video, cinematic direction, animation, Seedance, Higgsfield, GPT-Image-2. Applies 15 Maxim-authored cinematic styles and the atomic prompt schema.

中文简介正在准备中。当前显示原文说明。

DrNabeelKhan/maxim22026年10月16日 更新

Apply a named behavioral science framework to any task — persuasion, nudge design, habit formation, conversion, influence, negotiation, cognitive bias, choice architecture, decision framing. The framework backbone every other Maxim skill loops into for psychological validation.

中文简介正在准备中。当前显示原文说明。

DrNabeelKhan/maxim22026年10月16日 更新

Founder and CEO automation — morning standup, overnight cycle, burn rate, runway, pipeline review, investor and fundraising prep, executive summary, daily digest. Operates on the .mxm-executive-summary context.

中文简介正在准备中。当前显示原文说明。

DrNabeelKhan/maxim22026年10月16日 更新

Tear down a company on request — "do a teardown of", "break down this company", "analyze this competitor's business". Fixed-template output: business model, how they make money, positioning, and where they are exposed.

中文简介正在准备中。当前显示原文说明。

DrNabeelKhan/maxim22026年10月16日 更新

Track what a competitor actually shipped — "watch this competitor", "track what they ship", "what changed at". Compares against the last snapshot and reports only real moves: launches, pricing changes, positioning shifts.

中文简介正在准备中。当前显示原文说明。

DrNabeelKhan/maxim22026年10月16日 更新

Regulatory review across 14 frameworks — compliance review, privacy impact assessment, regulatory gap analysis, data subject rights, consent mechanisms, audit trail, AI ethics review, data flow mapping. Covers GDPR, PIPEDA, HIPAA, PCI-DSS, SOC2, UAE-PDPL, EU AI Act and more.

中文简介正在准备中。当前显示原文说明。

DrNabeelKhan/maxim22026年10月16日 更新

查看 DrNabeelKhan 的全部技能

报告此技能的问题