aiskillstore/marketplace / skills/89jobrien/global-standards
global-standards
VerifiedProject-wide coding standards and conventions specialist. Use PROACTIVELY when writing code, making architectural decisions, or establishing project conventions. Covers coding style, commenting, error handling, validation, tech stack consistency, and project conventions across all languages and frameworks.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.0 KB |
| references/coding-style.md | markdown | 1.2 KB |
| references/commenting.md | markdown | 1.1 KB |
| references/conventions.md | markdown | 1.6 KB |
| references/error-handling.md | markdown | 1.4 KB |
| references/tech-stack.md | markdown | 1.2 KB |
| references/validation.md | markdown | 1.2 KB |
| skill-report.json | config | 19.8 KB |
references/error-handling.md
View on GitHub---
author: Joseph OBrien
status: unpublished
updated: '2025-12-23'
version: 1.0.1
tag: skill
type: reference
parent: global-standards
---
# Error Handling Standards
Comprehensive error handling patterns and best practices.
## Error Handling Patterns
### Try-Catch Blocks
- Wrap code that may throw errors
- Catch specific exception types when possible
- Provide meaningful error messages
- Clean up resources in finally blocks
### Custom Exceptions
- Create domain-specific exception types
- Build exception hierarchies
- Include context in error messages
### Error Propagation
- Catch errors at appropriate boundaries
- Propagate errors when they can't be handled locally
- Transform errors at layer boundaries
## Error Messages
### User-Facing Errors
- Clear, actionable messages
- Avoid technical jargon
- Suggest solutions when possible
### Developer Errors
- Include stack traces
- Provide context and state information
- Use appropriate logging levels
## Logging
- Log errors with appropriate severity
- Include context and stack traces
- Use structured logging when possible
- Don't log sensitive information
## Retry Logic
- Implement exponential backoff
- Retry only transient failures
- Set maximum retry limits
- Log retry attempts
## Circuit Breakers
- Implement for external service calls
- Prevent cascading failures
- Monitor circuit breaker state
- Provide fallback behavior
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |