activememory/ctx/ctx-doctor

Claude Code and agent skill by activememory/ctx

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Troubleshoot ctx behavior. Runs structural health checks, analyzes event log patterns, and presents findings with suggested actions.

Install

npx vskill@latest install activememory/ctx/ctx-doctor

SKILL.md

Diagnose ctx problems by combining structural health checks with event log analysis.

When to Use

  • User says "doctor", "diagnose", "troubleshoot", "health check"
  • User asks "why didn't my hook fire?"
  • User says "hooks seem broken" or "context seems stale"
  • User says "too many nudges" or "something seems off"
  • User asks "what happened last session?"

When NOT to Use

  • User wants a quick status check (use /ctx-status)
  • User wants to fix drift (use /ctx-drift)
  • User wants to change hook messages (use ctx hook message)
  • User wants to pause hooks (use /ctx-pause)

Diagnostic Playbook

Follow this triage sequence:

Phase 1: Structural Baseline

Run ctx doctor --json to get the full structural health report.

bash
ctx doctor --json

Parse the JSON output. Note any warnings or errors.

Phase 2: Event Log Analysis (if available)

If the doctor report shows event logging is enabled, query recent events:

bash
ctx hook event --json --last 100

If the user is asking about a specific hook:

bash
ctx hook event --hook <hook-name> --json --last 20

If event logging is not enabled, note: "Enable event_log: true in .ctxrc for hook-level diagnostics."

Phase 3: Targeted Investigation

Based on findings, check additional sources:

  • Hook config: read .claude/settings.local.json to verify hook registration
  • Custom messages: run ctx hook message list to check for silenced hooks
  • RC config: read .ctxrc to check configuration
  • Reminders: run ctx remind list for pending reminders
Phase 4: Present Findings

Structure your report as:

## Doctor Report
### Structural health
- Summarize ctx doctor results
### Event analysis (if available)
- Patterns, gaps, or anomalies in event data
- Specific hook behavior observations
### Suggested actions
- [ ] Actionable items based on findings
Phase 5: Suggest, Don't Fix

Present actionable next steps but do NOT auto-fix anything. The user decides what to act on.

Available Data Sources

SourceCommandWhat it reveals
Structural healthctx doctor --jsonAll mechanical checks
Event logctx hook event --json --last 100Recent hook activity
Event log (filtered)ctx hook event --hook <name> --jsonSpecific hook
Remindersctx remind listPending reminders
Hook messagesctx hook message listCustom vs default
RC configRead .ctxrcConfiguration

Graceful Degradation

If event logging is not enabled, the skill still works with reduced capability. Run ctx doctor for structural checks and note that event-level diagnostics require event_log: true in .ctxrc.

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

Popularity

Repository stars
69
Repository forks
12
7-day trend score
21

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/activememory/ctx/ctx-doctor/badge)](https://verified-skill.com/skills/activememory/ctx/ctx-doctor)

Something wrong with this skill or its page? Tell us.