juanandresgs/claude-ctrl/observatory
Claude Code and agent skill by juanandresgs/claude-ctrl
- community
Checking that the SKILL.md file is still in the repository.
Analyze system health, surface patterns, manage improvement suggestions. Self-improvement flywheel for the hook/agent/dispatch system.
Install
npx vskill@latest install juanandresgs/claude-ctrl/observatorySKILL.md
/observatory — System Health Analysis and Self-Improvement Flywheel
Analyze the hook/agent/dispatch system's operational health, surface patterns, and manage the improvement suggestion lifecycle. The observatory is the system's honest self-exam — it tells you what's actually happening, not what should be happening.
Why this exists: Hooks emit metrics into obs_metrics. Agents propose improvements into obs_suggestions. Without synthesis, those signals accumulate silently. The observatory skill runs the analysis layer, presents findings in human-readable form, and drives the accept/reject/converge lifecycle that closes the improvement loop.
Subcommands
Parse $ARGUMENTS to determine the mode:
| Argument | Mode | |
|---|---|---|
(empty) or run | Full analysis + interactive suggestion management | |
status | Quick health check — one-line per metric category | |
suggest | Review and manage pending suggestions only | |
converge | Check convergence of accepted suggestions | |
report | Full report, no interactive suggestion prompts |
Phase 1: Gather Data
CLI invocation: Prefer cc-policy if it is on PATH. If not, fall back to python3 ~/.claude/runtime/cli.py. The wrapper at ~/.claude/bin/cc-policy is committed to the repo; on first machine setup, run bash ~/.claude/bin/install.sh to register it on PATH.
Detection one-liner you can use:
For all modes except status, run the full summary:
For status mode only:
Note: obs summary takes no flags — window is fixed at 24h. Other commands use positional arguments; check $CCP obs --help if uncertain about syntax.
Parse the JSON output. If the command fails (non-zero exit), report the error and stop — do not proceed with stale or empty data.
Phase 2: Present Findings
Structure the output in these sections. Skip empty sections silently.
Health Summary
Present key metrics in a table:
Status thresholds:
- Test pass rate: OK if >= 80%, WARN if < 80%
- Guard denials: OK if 0 in window, WARN if any
- Review infra failures: OK if <= 20%, WARN if > 20%
Active Patterns
For each pattern in patterns, present as a bullet with severity:
Severity mapping from severity_score:
- HIGH: score >= 5.0
- MED: score >= 1.0 and < 5.0
- LOW: score < 1.0
Trend Analysis
For each key metric with count > 0 in trends, show:
Flag metrics with slope > 0.1 as "trending up" and slope < -0.1 as "trending down".
Suggestions
List active suggestions (proposed + accepted) in a table:
Convergence Results
If convergence is non-empty, show results:
Effective values: 1 = IMPROVED, 0 = UNCHANGED, -1 = REGRESSED
Review Gate Health
Phase 3: Interactive Suggestion Management (run and suggest modes only)
Skip this phase for report, status, and converge modes.
For each proposed suggestion, present it and prompt:
Handle responses:
a→cc-policy obs accept <id>r→cc-policy obs reject <id> --reason "<reason>"(prompt for reason)d→cc-policy obs defer <id>s→ skip to next suggestionq→ stop suggestion loop
After processing, show a summary: "Accepted N, Rejected N, Deferred N."
Phase 4: Propose Suggestions from Patterns (run mode only)
For each detected pattern that does NOT already have a corresponding proposed or accepted suggestion (match by pattern_type in category field), offer to create one:
If yes:
Phase 5: Convergence Check (converge mode)
Run:
Present results using the Convergence Results table format from Phase 2.
Interpret each result:
- IMPROVED: "Suggestion effective — metric improved >= 10% from baseline."
- UNCHANGED: "No significant change (< 10% delta). Consider escalating or closing."
- REGRESSED: "Metric worsened — the change may have had unintended effects."
Enforcement Rules
- Never fabricate data. If
cc-policy obs summaryreturns no metrics, say
so explicitly — do not invent health indicators.
- Pattern severity drives priority. HIGH patterns must be mentioned first.
Don't bury critical findings below routine stats.
- Convergence interpretations are factual. Report what the numbers show;
don't speculate about causes beyond what the evidence supports.
- Suggestions require user confirmation. Never auto-accept or auto-create
suggestions. The flywheel closes only when the user approves the cycle.
- Empty is informative. Zero patterns, zero suggestions, zero denials are
valid and meaningful states — report them, don't skip the section.
Edge Cases
| Scenario | Handling | |
|---|---|---|
cc-policy obs summary fails | Report error, stop — do not proceed | |
| No metrics in window | Report "No metrics in 24h window" in Health Summary | |
| No patterns detected | Show "No patterns detected — system healthy" | |
| No active suggestions | Show "No active suggestions" | |
| Convergence table empty | Show "No accepted suggestions ready for measurement" | |
| Review infra data absent | Show "No review gate data in window" | |
| Predictive accuracy is null | Show "Insufficient data for predictive accuracy" |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/observatory/SKILL.md
Popularity
- Repository stars
- 192
- Repository forks
- 29
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/juanandresgs/claude-ctrl/observatory)