shared-patterns
Reusable patterns and templates for Claude Code skill and hook development.Triggers: validation patterns, error handling, testing templates, workflow patterns,shared patterns, reusable templates, DRY patterns, common workflowsUse when: creating new skills or hooks that need consistent patterns, implementingvalidation logic, setting up error handling, creating test scaffolding,referencing standard workflow structuresDO NOT use when: pattern is specific to one skill only.DO NOT use when: pattern is still evolving - wait for stability.DO NOT use when: pattern is context-dependent requiring variations.Reference these patterns to validate consistency across the ecosystem.
When & Why to Use This Skill
This Claude skill provides a centralized repository of reusable patterns and templates designed to streamline the development of Claude Code skills and hooks. By offering standardized validation logic, error handling frameworks, and testing scaffolds, it ensures architectural consistency and adheres to DRY (Don't Repeat Yourself) principles across the agentic ecosystem.
Use Cases
- Standardizing Skill Development: Implementing consistent validation and error-reporting formats across multiple agent skills to maintain a high-quality codebase.
- Accelerating Hook Creation: Utilizing pre-built testing templates and unit test scaffolding to rapidly develop and deploy new hooks without writing boilerplate code.
- Ecosystem Consistency: Referencing shared workflow patterns and checklist templates to ensure that new agentic tools align with established architectural standards.
- Robust Error Management: Applying proven exception hierarchies and recovery strategies to improve the reliability and resilience of complex agent workflows.
| name | shared-patterns |
|---|---|
| description | | |
| Triggers | validation patterns, error handling, testing templates, workflow patterns, |
| Use when | creating new skills or hooks that need consistent patterns, implementing |
| DO NOT use when | pattern is context-dependent requiring variations. |
| version | 1.0.0 |
| category | meta-infrastructure |
| tags | [patterns, templates, shared, validation, reusable] |
| dependencies | [] |
| estimated_tokens | 400 |
Shared Patterns
Reusable patterns and templates for skill and hook development.
Purpose
This skill provides shared patterns that are referenced by other skills in the abstract plugin. It follows DRY principles by centralizing common patterns.
Pattern Categories
Validation Patterns
See modules/validation-patterns.md for:
- Input validation templates
- Schema validation patterns
- Error reporting formats
Error Handling
See modules/error-handling.md for:
- Exception hierarchies
- Error message formatting
- Recovery strategies
Testing Templates
See modules/testing-templates.md for:
- Unit test scaffolding
- Integration test patterns
- Mock fixtures
Workflow Patterns
See modules/workflow-patterns.md for:
- Checklist templates
- Feedback loop patterns
- Progressive disclosure structures
Usage
Reference these patterns from other skills:
For validation patterns, see the `shared-patterns` skill's
[validation-patterns](../shared-patterns/modules/validation-patterns.md) module.
Verification: Run the command with --help flag to verify availability.
Troubleshooting
Common Issues
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with --verbose flag