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. -
Read state — load
.claude/coherence/state.jsonif it exists. Extract:last_review_ts(ISO-8601 UTC, or "never")last_review_item_countconsecutive_failure_countplugin_disabled(bool)
-
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-caps.jsonif it exists. Extractfrontmatter_preserves_unknown_keysandgit_available. -
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>
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>
─────────────────────────────────────────────────────────
-
If
plugin_disabled == true, append a warning:⚠ Coherence is disabled. 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-review
暂无简介
coherence-repair
暂无简介
coherence-recover
暂无简介