Back to list
costiash

error-recovery

by costiash

Reference implementation of an AI Agent using Claude Agent SDK. Transforms videos into knowledge graphs via MCP tools: transcription, entity extraction, graph building, natural language querying.

4🍴 0📅 Dec 30, 2025

SKILL.md


name: error-recovery description: Provides structured error handling protocol for all agent operations. Ensures users receive clear error reports, troubleshooting guidance, and actionable next steps. Use when any tool operation fails, encounters an error, or produces unexpected results.

Error Recovery

On Failure Protocol

  1. STOP IMMEDIATELY — Do not continue with other actions
  2. REPORT CLEARLY — Explain what went wrong concisely
  3. OFFER NEXT STEPS — Provide specific troubleshooting or retry options
  4. WAIT FOR RESPONSE — Do NOT proceed autonomously

Error Response Template

[Operation] Failed

[Brief explanation of what went wrong]

This can happen when:
- [Possible cause 1]
- [Possible cause 2]

**Would you like to:**
1. [Retry option]
2. [Alternative option]
3. Cancel and return to main menu

Please let me know how you'd like to proceed.

Common Error Patterns

CategoryErrorTroubleshooting
TranscriptionYouTube URL invalidCheck URL format and video availability
TranscriptionFile not foundVerify file path exists
TranscriptionFFmpeg missingInstall FFmpeg (apt install ffmpeg)
TranscriptionAPI key missingSet OPENAI_API_KEY environment variable
TranscriptionTimeoutVideo too long; suggest splitting
KGBootstrap failedTranscript may be too short or lack entities
KGExtraction failedProject may not be bootstrapped yet
KGProject not foundCheck project ID validity

NEVER Do

  • Try to work around failures without user consent
  • Make assumptions about what went wrong
  • Proceed with alternative approaches autonomously
  • Leave the user stuck without a path forward

This saves time and money by avoiding unnecessary API calls when something has already failed.

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon