coherence-status
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-07-20
- Stars
- ★ 1
- Forks
- 0
03 SKILL.md 正文
Skill: coherence:status
Trigger: /coherence:status
BRD: FR-COMMANDS-1 · DD-055
Purpose
Display the canonical coherence status for the current workspace: operating mode, tracked document count, buffer depth, last review time, and cost ledger summary.
Steps
-
Read config — load
.claude/coherence/config.yaml. Extract:mode(observe | graduated)trackedarray (list of tracked doc paths and their layers)schema_version
-
Read buffer — count lines in
.claude/coherence/drift-buffer.jsonl. If the file does not exist, buffer depth = 0. -
Check disabled sentinel — check whether
.claude/coherence/disabledexists. If it does,plugin_enabled = false; otherwiseplugin_enabled = true. -
Read state — load
.claude/coherence/state.jsonif it exists. Extract:last_review_ts(ISO-8601 UTC, or "never")last_review_item_countconsecutive_failure_count
-
Read cost ledger — load
.claude/coherence/cost-ledger.jsonif it exists. Extract:total_tokens_usedtotal_usd_estimatesession_count
-
Read host caps — load
.claude/coherence/host-capabilities.jsonif it exists. Extractfrontmatter_preserves_unknown_keys,git_available, andsubagent_attribution. -
Read pending/deferred counts — (FR-PERMISSION-5)
- Count lines in
.claude/coherence/pending.md(escalated items awaiting human review). If file is absent, count = 0. - Count buffer entries with
state: "deferred". If absent, count = 0.
- Count lines in
-
Read subagent metrics — (FR-OBS-5) for each agent listed in
.claude/coherence/metrics.jsonl, compute a rolling window of the last 50 invocations:patch_applied_count,no_patch_count,escalate_count,plan_disagrees_countwithin the window.- If metrics file is absent, skip this block.
-
Format output using this exact layout:
─── Coherence v0.1 Status ───────────────────────────────
Mode: <observe | graduated>
Plugin: <enabled | ⚠ DISABLED — run /coherence:recover>
Tracked docs: <N> (<skills: X agents: Y referring: Z>)
Drift buffer: <N entries pending> (<N deferred>)
Pending review: <N escalated items in pending.md>
Last review: <ISO timestamp or "never">
└─ items found: <N or n/a>
Cost (lifetime): ~$<X.XX> across <N> sessions (<N> tokens)
Host caps: frontmatter=<ok|warn> git=<ok|unavailable> subagent=<line-level|file-level-fallback|absent>
─────────────────────────────────────────────────────────
If subagent metrics data is available (FR-OBS-5), append:
─── Subagent Stats (last 50 invocations) ────────────────
coherence-planner: applied=<N> no-patch=<N> escalated=<N> disagrees=<N>
coherence-patcher: applied=<N> no-patch=<N> escalated=<N> disagrees=<N>
─────────────────────────────────────────────────────────
If session-level cost data is available (FR-OBS-6), append:
─── This Session ─────────────────────────────────────────
Stage 1 calls: <N> (~$<X.XX>)
Stage 2 calls: <N> (~$<X.XX>)
Total session: ~$<X.XX> (<N> tokens in / <N> tokens out)
─────────────────────────────────────────────────────────
If velocity data is available (FR-OBS-7), append:
─── Velocity (last 7 days) ──────────────────────────────
Patches applied: <N>
Patches deferred: <N>
Patches reverted: <N>
─────────────────────────────────────────────────────────
- If
plugin_enabled == false(sentinel file present), append a warning:
⚠ Coherence is disabled (sentinel file present). Buffer accumulation and Stop pipeline are paused. Run
/coherence:recoverto restore.
- If
consecutive_failure_count ≥ 3, append:
⚠ <N> consecutive pipeline failures. Run
/coherence:doctorto diagnose.
Constraints
- Read-only: this command MUST NOT write any files.
- If any state file is missing, display "n/a" for that field rather than failing.
- Do not invoke any LLM subagent. (DD-008 — deterministic-first)
04 同仓库更多 Skills
mcp-sentry-grader
Helper for invoking the mcp-sentry CLI and interpreting its A–F grade output. Use when the user asks about MCP security posture, OWASP MCP Top 10 scan results, or wants to fail a CI gate on a minimum grade threshold.
foo-skill
A test skill
author
暂无简介
coherence-status
暂无简介
coherence-review
暂无简介
coherence-repair
暂无简介