claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Provides error classification, recovery, and graceful-degradation patterns. Use when implementing error handling or debugging resilience failures in any skill.
Claude Code
$ npx -y skills add athola/claude-night-market --skill error-patterns --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill error-patterns -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill error-patterns -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill error-patterns -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill error-patterns -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill error-patterns -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill error-patterns -a windsurf -y
name: error-patterns description: Provides error classification, recovery, and graceful-degradation patterns. Use when implementing error handling or debugging resilience failures in any skill. alwaysApply: false category: infrastructure tags: - errors - error-handling - recovery - resilience - debugging dependencies: - usage-logging provides: infrastructure: - error-handling - error-classification - recovery patterns: - graceful-degradation - error-logging - debugging usage_patterns: - error-handling - resilience-patterns - debugging-workflows complexity: beginner estimated_tokens: 450 progressive_loading: true modules: - modules/classification.md - modules/recovery-strategies.md - modules/agent-damage-control.md
Standardized error handling patterns for consistent, production-grade behavior across plugins. Provides error classification, recovery strategies, and debugging workflows.
| Level | Action | Example | |-------|--------|---------| | **Critical** | Halt, alert | Auth failure, service down | | **Error** | Retry or secondary strategy | Rate limit, timeout | | **Warning** | Log, continue | Partial results, deprecation | | **Info** | Log only | Non-blocking issues |
class ErrorCategory(Enum):
TRANSIENT = "transient" # Retry likely to succeed
PERMANENT = "permanent" # Retry won't help
CONFIGURATION = "config" # User action needed
RESOURCE = "resource" # Quota/limit issue**Verification:** Run the command with `--help` flag to verify availability.
# Sketch: implement handle_error and ErrorCategory in your plugin.
# leyline ships no error_patterns module.
try:
result = service.execute(prompt)
except RateLimitError as e:
return handle_error(
e, ErrorCategory.RESOURCE, {"retry_after": e.retry_after, "service": "gemini"}
)
except AuthError as e:
return handle_error(
e, ErrorCategory.CONFIGURATION, {"action": "Run 'gemini auth login'"}
)**Verification:** Run the command with `--help` flag to verify availability.
@dataclass
class ErrorResult:
category: ErrorCategory
message: str
recoverable: bool
suggested_action: str
metadata: dict**Verification:** Run the command with `--help` flag to verify availability.
# In your skill's frontmatter dependencies: [leyline:error-patterns]
**Verification:** Run the command with `--help` flag to verify availability.
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.