call-diagnostics
Skill396 starsChanged 6 months agoMITView on GitHub
Analyze phone call observability data, detect problems, track them across calls, and recommend systematic repairs. ALWAYS follow this workflow. Never skip steps. When run with --all, analyzes patterns across all calls and recommends: - prompt fixes — changes to Gemini system instructions or tool descriptions - code fixes — changes to tool implementations (retry logic, return values) - architecture fixes — structural changes needed - unsolvable — inherent to the platform (e.g. STT timestamp lag) Each recommendation includes evidence (frequency,…
In this repository73 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-activitySkill
- agent-registrySkill
- agent-room-opsSkill
- answer-formatSkill
- audio-transcribeSkill
- bee-actionsSkill
- bot2bot-postSkill
- claude-codexSkill
- claude-geminiSkill
- claude-piSkill
- claude-routerSkill
- collaboration-intelligenceSkill
- connect-appsSkill
- context-dropSkill
- context-reconstructSkill
- db-browserSkill
- deal-finderSkill
- doc-ingestSkill
- electron-overlay-dimmingSkill
- email-findSkill
- engine-conflict-resolveSkill
- gemini-ttsSkill
- image-generationSkill
- import-claude-contextSkill
- local-workspace-serverSkill
- macos-toolsSkill
- macos-useSkill
- make-viral-videoSkill
- marketplaceSkill
- media-transcriptSkill
- meeting-prepSkill
- meeting-schedulerSkill
- mention-gateSkill
- model-switchSkill
- morning-briefingSkill
- ms365-connectSkill
- observeSkill
- obsidian-vaultSkill
- openai-ttsSkill
- open-sutando-refSkill
- overlay-appsSkill
- phone-conversationSkill
- proactive-loopSkill
- pr-shepherd-contractSkill
- quota-trackerSkill
- regression-searchSkill
- relaySkill
- releaseSkill
- report-feedbackSkill
- review-preflightSkill
- room-collabSkill
- schedule-cronsSkill
- screen-companionSkill
- screen-recordSkill
- self-diagnoseSkill
- self-upgradeSkill
- session-recapSkill
- skill-usage-reportSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
After every phone call: run on latest call to detect issues
- Very specific: line 18
Before making fixes: run --all to see persistent patterns and repair recommendations
- Distinctive: line 36
ALWAYS follow this workflow.
- Very specific: line 38
Diagnose: run --all --tracker to see the full picture across all calls
- Distinctive: line 39
Identify persistent problems: only fix issues that appear across multiple calls.
- Distinctive: line 40
Find root cause: ask "why does this happen?" not "how do I patch this instance?"
- Distinctive: line 41
Make ONE minimal fix: prefer prompt over code, prefer removing code over adding.
- Distinctive: line 43
Verify or revert: if the issue count doesn't drop after 2-3 calls, revert and try a different approach
- Distinctive: line 44
Never modify source code for call tasks: when a user asks to change something during a call (subtitle color, video edit), use runtime tools …
- Very specific: line 48
When run with --all, analyzes patterns across all calls and recommends:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Call Diagnostics & Repair
Analyze phone call observability data, detect problems, track them across calls, and recommend systematic repairs.
Usage
python3 $CLAUDE_CONFIG_DIR/skills/call-diagnostics/scripts/diagnose.py # last call
python3 $CLAUDE_CONFIG_DIR/skills/call-diagnostics/scripts/diagnose.py --all # all calls + repair recommendations
python3 $CLAUDE_CONFIG_DIR/skills/call-diagnostics/scripts/diagnose.py -t # show timeline
python3 $CLAUDE_CONFIG_DIR/skills/call-diagnostics/scripts/diagnose.py -v # verbose (show detail)
python3 $CLAUDE_CONFIG_DIR/skills/call-diagnostics/scripts/diagnose.py --all --tracker # generate HTML tracker + openWhen to use
- After every phone call: run on latest call to detect issues
- Before making fixes: run
--allto see persistent patterns and repair recommendations - Never apply ad-hoc patches — check the repair recommendations first to understand if the problem is persistent and what the systematic fix should be
Detections
- Tool returned too fast (<10ms) — likely error/not-found
- Hallucination — Gemini claimed action state without tool verification
- Inline task via work — recording/screenshot/play delegated instead of inline
- Long delay — >30s between user request and tool execution
- Repeated failures — same tool failing 3+ times
- Timestamp lag — caller speech logged after tool that it triggered
- Wrong tool — Gemini used the wrong tool for the request
- User correction — user explicitly corrected Sutando's behavior
- Unmet expectation — user repeated a request (not understood)
- Auto-invocation — tool called without matching user request
Repair workflow
ALWAYS follow this workflow. Never skip steps.
- Diagnose: run
--all --trackerto see the full picture across all calls - Identify persistent problems: only fix issues that appear across multiple calls. Ignore one-offs.
- Find root cause: ask "why does this happen?" not "how do I patch this instance?"
- Make ONE minimal fix: prefer prompt over code, prefer removing code over adding. If >20 LOC, reconsider.
- Deploy and track: restart servers, then monitor the next 3+ calls in the tracker
- Verify or revert: if the issue count doesn't drop after 2-3 calls, revert and try a different approach
- Never modify source code for call tasks: when a user asks to change something during a call (subtitle color, video edit), use runtime tools (ffmpeg, scripts), not code changes
Repair types
When run with --all, analyzes patterns across all calls and recommends:
- prompt fixes — changes to Gemini system instructions or tool descriptions
- code fixes — changes to tool implementations (retry logic, return values)
- architecture fixes — structural changes needed
- unsolvable — inherent to the platform (e.g. STT timestamp lag)
Each recommendation includes evidence (frequency, trend), priority, and specific fix instructions.
HTML Tracker
--tracker generates /tmp/call-diagnostics-tracker.html with:
- Latest call timeline (color-coded)
- Issue tracker table (last 5 calls, rows = specific tool issues)
- Line chart (errors/warnings over time)
- Repair recommendations (prioritized with evidence)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

