shared-patternslisted
Install: claude install-skill mamiaijf/requirements-expert
# Shared Command Patterns
## Quick Reference
| Pattern | Purpose | Section |
|---------|---------|---------|
| [Recovery Flow](#standard-recovery-flow) | Handle `gh` operation failures | Interactive error recovery |
| [Idempotency Check](#idempotency-check) | Prevent duplicate issue creation | Query-before-create |
| [Batch Tracking](#batch-tracking) | Track multi-item operation results | Summary reporting |
| [Two-Layer Metadata](#two-layer-metadata-update) | Update custom fields AND labels | GitHub Projects metadata |
## Command Integration
Commands reference these patterns by name rather than reimplementing. When developing or modifying `/re:*` commands, apply the relevant patterns to ensure consistent behavior across the plugin.
**Pattern application:**
- Load this skill when implementing command error handling or batch operations
- Reference pattern names in command instructions (e.g., "Apply Standard Recovery Flow")
- Use the AskUserQuestion structures defined here for consistent user interactions
- Follow the Batch Tracking summary format for operation reporting
For full implementation details, see `references/implementation-details.md`.
## Overview
These four patterns provide consistent, reusable behavior across all `/re:*` commands:
1. **Recovery Flow** - Graceful error handling with user choice
2. **Idempotency Check** - Safe re-runs without duplicates
3. **Batch Tracking** - Clear operation summaries
4. **Two-Layer Metadata** - Complete GitHub Projects in