agileflow 2.61.0 → 2.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +9 -9
  2. package/package.json +1 -1
  3. package/scripts/lib/counter.js +103 -0
  4. package/src/core/commands/auto.md +1 -0
  5. package/src/core/commands/babysit.md +170 -29
  6. package/src/core/commands/board.md +1 -0
  7. package/src/core/commands/ci.md +1 -0
  8. package/src/core/commands/compress.md +1 -0
  9. package/src/core/commands/deploy.md +1 -0
  10. package/src/core/commands/help.md +1 -0
  11. package/src/core/commands/research.md +1 -0
  12. package/src/core/commands/skill/create.md +566 -0
  13. package/src/core/commands/skill/delete.md +189 -0
  14. package/src/core/commands/skill/edit.md +245 -0
  15. package/src/core/commands/skill/list.md +155 -0
  16. package/src/core/commands/skill/test.md +249 -0
  17. package/src/core/commands/template.md +1 -0
  18. package/src/core/commands/tests.md +1 -0
  19. package/src/core/commands/update.md +1 -0
  20. package/src/core/commands/velocity.md +1 -0
  21. package/src/core/experts/refactor/expertise.yaml +17 -12
  22. package/src/core/templates/claude-settings.advanced.example.json +1 -1
  23. package/src/core/templates/claude-settings.example.json +1 -1
  24. package/tools/cli/commands/list.js +8 -13
  25. package/tools/cli/installers/core/installer.js +20 -19
  26. package/tools/cli/installers/ide/_base-ide.js +18 -4
  27. package/tools/cli/installers/ide/claude-code.js +4 -15
  28. package/tools/cli/installers/ide/codex.js +9 -13
  29. package/tools/cli/lib/content-injector.js +162 -31
  30. package/tools/cli/lib/utils.js +87 -0
  31. package/src/core/skills/acceptance-criteria-generator/SKILL.md +0 -46
  32. package/src/core/skills/adr-template/SKILL.md +0 -62
  33. package/src/core/skills/agileflow-acceptance-criteria/SKILL.md +0 -156
  34. package/src/core/skills/agileflow-adr/SKILL.md +0 -147
  35. package/src/core/skills/agileflow-adr/examples/database-choice-example.md +0 -122
  36. package/src/core/skills/agileflow-adr/templates/adr-template.md +0 -69
  37. package/src/core/skills/agileflow-commit-messages/SKILL.md +0 -130
  38. package/src/core/skills/agileflow-commit-messages/reference/bad-examples.md +0 -168
  39. package/src/core/skills/agileflow-commit-messages/reference/good-examples.md +0 -120
  40. package/src/core/skills/agileflow-commit-messages/scripts/check-attribution.sh +0 -15
  41. package/src/core/skills/agileflow-epic-planner/SKILL.md +0 -184
  42. package/src/core/skills/agileflow-retro-facilitator/SKILL.md +0 -119
  43. package/src/core/skills/agileflow-retro-facilitator/cookbook/4ls.md +0 -86
  44. package/src/core/skills/agileflow-retro-facilitator/cookbook/glad-sad-mad.md +0 -79
  45. package/src/core/skills/agileflow-retro-facilitator/cookbook/start-stop-continue.md +0 -142
  46. package/src/core/skills/agileflow-retro-facilitator/prompts/action-items.md +0 -83
  47. package/src/core/skills/agileflow-sprint-planner/SKILL.md +0 -212
  48. package/src/core/skills/agileflow-story-writer/SKILL.md +0 -163
  49. package/src/core/skills/agileflow-story-writer/examples/good-story-example.md +0 -63
  50. package/src/core/skills/agileflow-story-writer/templates/story-template.md +0 -44
  51. package/src/core/skills/agileflow-tech-debt/SKILL.md +0 -215
  52. package/src/core/skills/api-documentation-generator/SKILL.md +0 -65
  53. package/src/core/skills/changelog-entry/SKILL.md +0 -55
  54. package/src/core/skills/commit-message-formatter/SKILL.md +0 -50
  55. package/src/core/skills/deployment-guide-generator/SKILL.md +0 -84
  56. package/src/core/skills/diagram-generator/SKILL.md +0 -65
  57. package/src/core/skills/error-handler-template/SKILL.md +0 -78
  58. package/src/core/skills/migration-checklist/SKILL.md +0 -82
  59. package/src/core/skills/pr-description/SKILL.md +0 -65
  60. package/src/core/skills/sql-schema-generator/SKILL.md +0 -69
  61. package/src/core/skills/story-skeleton/SKILL.md +0 -34
  62. package/src/core/skills/test-case-generator/SKILL.md +0 -63
  63. package/src/core/skills/type-definitions/SKILL.md +0 -65
  64. package/src/core/skills/validation-schema-generator/SKILL.md +0 -64
  65. package/src/core/skills/writing-skills/SKILL.md +0 -352
  66. package/src/core/skills/writing-skills/testing-skills-with-subagents.md +0 -232
@@ -1,215 +0,0 @@
1
- ---
2
- name: agileflow-tech-debt
3
- description: Identifies and tracks technical debt items with impact/effort matrix and prioritization. Loads when discussing code quality, refactoring, or long-term maintenance.
4
- ---
5
-
6
- # AgileFlow Tech Debt
7
-
8
- Identifies, documents, prioritizes, and tracks technical debt using impact/effort matrix and priority scoring to manage debt systematically.
9
-
10
- ## When to Use
11
-
12
- This skill activates when:
13
- - Discussing code quality, refactoring, maintenance issues
14
- - Keywords: "tech debt", "needs cleanup", "messy code", "technical debt"
15
- - Team pain points from retrospectives
16
- - Developer complaints about specific code areas
17
- - During code reviews when debt is identified
18
-
19
- ## What This Does
20
-
21
- 1. Identifies technical debt from user descriptions
22
- 2. Classifies type (Code Quality, Performance, Security, Maintainability, Testing)
23
- 3. Assesses impact/urgency/effort (1-5 scale)
24
- 4. Calculates priority score: (Impact × Urgency) / Effort
25
- 5. Documents in docs/08-quality/tech-debt.md
26
- 6. Suggests actions (create story for high-priority items)
27
-
28
- ## Instructions
29
-
30
- 1. **Identify tech debt** from user description or code analysis:
31
- - What specific code/system is problematic?
32
- - Why is this debt (not just "messy" but concrete issues)?
33
- - What pain does it cause?
34
-
35
- 2. **Classify type**:
36
- - Code Quality | Performance | Security | Maintainability | Testing
37
-
38
- 3. **Assess dimensions** (1-5 scale):
39
- - **Impact**: How much does this hurt us?
40
- - **Urgency**: How soon must we fix?
41
- - **Effort**: How hard to fix?
42
-
43
- 4. **Calculate priority score**: (Impact × Urgency) / Effort
44
- - Score >10: High Priority (DO NOW)
45
- - Score 3-10: Medium Priority (PLAN)
46
- - Score <3: Low Priority (LATER)
47
-
48
- 5. **Document item** in docs/08-quality/tech-debt.md:
49
- - ID: TD-### (next sequential number)
50
- - Include: Problem, Impact, Proposed Solution, Effort, Priority Score, Status
51
-
52
- 6. **Suggest actions**:
53
- - **High priority (>10)**: Create story via `/agileflow:story`
54
- - **Major refactoring**: Document via `/agileflow:adr-new`
55
- - **Blocking features**: Update status.json with blocked stories
56
-
57
- ## Tech Debt Item Template
58
-
59
- ```markdown
60
- ### [TD-###] Descriptive Title
61
-
62
- **Impact**: 1-5 (Low/Medium/High)
63
- **Urgency**: 1-5 (Low/Medium/High)
64
- **Effort**: 1-5 (Low <1 sprint / Medium 1-2 sprints / High >2 sprints)
65
- **Priority Score**: (Impact × Urgency) / Effort = X.X
66
- **Type**: Code Quality | Performance | Security | Maintainability | Testing
67
- **Status**: Identified | Planned | In Progress | Resolved
68
-
69
- **Problem**:
70
- [What's wrong? Be specific, not vague.]
71
-
72
- **Impact**:
73
- - [How does this hurt us? Specific pain points]
74
- - [What can't we do because of this?]
75
-
76
- **Proposed Solution**:
77
- - [What should we do to address this?]
78
- - [What tools/patterns to use?]
79
-
80
- **Estimated Effort**: X story points
81
- ```
82
-
83
- ## Priority Score Formula
84
-
85
- ```
86
- Priority = (Impact × Urgency) / Effort
87
-
88
- Impact: 1 (Low), 3 (Medium), 5 (High)
89
- Urgency: 1 (Low), 3 (Medium), 5 (High)
90
- Effort: 1 (Low <1 sprint), 3 (Medium 1-2 sprints), 5 (High >2 sprints)
91
- ```
92
-
93
- **Examples**:
94
- - TD-042: (3 × 3) / 1 = 9 (High Priority - duplicate code, easy fix)
95
- - TD-067: (5 × 5) / 1 = 25 (Critical Priority - slow query, add index)
96
- - TD-089: (1 × 1) / 5 = 0.2 (Low Priority - minor cleanup, major refactor)
97
-
98
- ## Impact/Effort Matrix
99
-
100
- ```
101
- High Impact, │ DO NOW │ DO NOW │ │
102
- Low Effort │ │ │ │
103
- ├────────┼────────┼────────┤
104
- High Impact, │ PLAN │ PLAN │ │
105
- Med Effort │ │ │ │
106
- ├────────┼────────┼────────┤
107
- Low Impact, │ LATER │ LATER │ NEVER │
108
- Any Effort │ │ │ │
109
- └────────┴────────┴────────┘
110
- Low Medium High
111
- EFFORT
112
- ```
113
-
114
- ## Types of Tech Debt
115
-
116
- **Code Quality**: Duplicate code, complex logic, poor naming, missing docs
117
- - Example: User validation copy-pasted in 8 files
118
-
119
- **Performance**: Slow queries, N+1 problems, inefficient algorithms, missing caching
120
- - Example: Login query takes 500ms due to missing index
121
-
122
- **Security**: Outdated dependencies, vulnerable packages, missing auth, insufficient validation
123
- - Example: Package X has known CVE, needs update
124
-
125
- **Maintainability**: Tightly coupled code, missing tests, unclear architecture
126
- - Example: Module X has 0 tests, 300 LOC
127
-
128
- **Testing**: Low coverage, flaky tests, slow suite, missing integration tests
129
- - Example: Test coverage at 45%, target is 80%
130
-
131
- ## When to Address Tech Debt
132
-
133
- **Continuous** (Every Sprint):
134
- - Allocate 10-20% of sprint capacity for debt reduction
135
- - Boy Scout Rule: Leave code cleaner than you found it
136
-
137
- **Scheduled** (Quarterly):
138
- - Tech debt sprint (full sprint dedicated to quality)
139
- - Major refactoring initiatives
140
-
141
- **Opportunistic**:
142
- - While working on nearby code
143
- - When adding related features
144
- - During bug fixes in affected areas
145
-
146
- **Strategic**:
147
- - Before major new features (clean foundation)
148
- - When debt blocks progress (unblock development)
149
- - When quality metrics decline
150
-
151
- ## Tech Debt Metrics
152
-
153
- Track in docs/08-quality/tech-debt.md:
154
-
155
- ```markdown
156
- ## Tech Debt Health (Q4 2025)
157
-
158
- **Total Items**: 24 (🔴 6 High, 🟡 11 Medium, 🟢 7 Low)
159
- **Total Estimated Effort**: 156 story points
160
- **Resolved This Quarter**: 8 items (42 story points)
161
- **New This Quarter**: 5 items (18 story points)
162
- **Net Change**: -3 items (-24 points) ✅ Improving
163
- ```
164
-
165
- ## Quality Checklist
166
-
167
- Before creating tech debt item:
168
- - [ ] Problem clearly described (specific code/system, not vague)
169
- - [ ] Impact explained with concrete pain points
170
- - [ ] Proposed solution is specific and actionable
171
- - [ ] Effort estimated realistically
172
- - [ ] Priority score calculated: (Impact × Urgency) / Effort
173
- - [ ] Type assigned correctly
174
- - [ ] Owner or responsible team identified
175
- - [ ] Status set appropriately
176
- - [ ] TD-### ID is next sequential number
177
-
178
- ## Priority Tiers
179
-
180
- - **🔴 High Priority (score >10)**: DO NOW - High impact, low-medium effort
181
- - **🟡 Medium Priority (score 3-10)**: PLAN - Mixed impact/effort
182
- - **🟢 Low Priority (score <3)**: LATER - Low impact or high effort
183
-
184
- ## Integration
185
-
186
- - **agileflow-story**: Convert high-priority debt (>10) to stories
187
- - **agileflow-adr**: Document major refactoring decisions
188
- - **agileflow-retro**: Retrospectives surface new tech debt
189
- - **agileflow-sprint**: Allocate 10-20% sprint capacity for debt reduction
190
-
191
- ## Preventing Tech Debt
192
-
193
- **Best Practices**:
194
- - Code reviews catch issues early
195
- - Automated testing prevents regressions (80%+ coverage)
196
- - Regular refactoring (Boy Scout Rule)
197
- - Document intentional decisions (ADRs)
198
- - Allocate time for quality work
199
-
200
- **Warning Signs**:
201
- - Slowing velocity (stories taking longer)
202
- - Increasing bug rate
203
- - Developers avoiding certain code
204
- - Long PR review times
205
- - New developer onboarding difficulty
206
-
207
- ## Notes
208
-
209
- - Track tech debt, don't let it hide (visibility is key)
210
- - Make it visible (metrics, reviews)
211
- - Allocate consistent capacity (10-20% per sprint)
212
- - Celebrate debt reduction
213
- - Prevent new debt through code review
214
- - Balance new features with quality
215
- - Not all "ugly code" is debt - document intentional trade-offs as ADRs
@@ -1,65 +0,0 @@
1
- ---
2
- name: api-documentation-generator
3
- description: Generate OpenAPI/Swagger documentation with request/response schemas
4
- ---
5
-
6
- # api-documentation-generator
7
-
8
- Generate OpenAPI/Swagger snippets with proper schemas.
9
-
10
- ## Activation Keywords
11
- - "API doc", "OpenAPI", "Swagger", "endpoint docs", "endpoint documentation"
12
-
13
- ## When to Use
14
- - Documenting REST API endpoints
15
- - Creating OpenAPI/Swagger specifications
16
- - Need endpoint documentation with request/response examples
17
-
18
- ## What This Does
19
- Generates OpenAPI 3.0 specification snippets including:
20
- - **Endpoint path and method** (GET, POST, etc.)
21
- - **Summary and description**
22
- - **Request body** with schema and examples
23
- - **Response schemas** (success and error cases)
24
- - **Parameters** (query, path, header)
25
- - **Authentication** requirements
26
- - **Status codes** and descriptions
27
-
28
- Coordinates with documentation agent for full API docs.
29
-
30
- ## Output
31
- OpenAPI YAML/JSON snippet ready for integration into spec
32
-
33
- ## Example Activation
34
- User: "Document POST /api/auth/login endpoint"
35
- Skill: Generates:
36
- ```yaml
37
- /api/auth/login:
38
- post:
39
- summary: User login with email and password
40
- tags: [Authentication]
41
- requestBody:
42
- required: true
43
- content:
44
- application/json:
45
- schema:
46
- type: object
47
- properties:
48
- email:
49
- type: string
50
- format: email
51
- password:
52
- type: string
53
- responses:
54
- '200':
55
- description: Login successful
56
- content:
57
- application/json:
58
- schema:
59
- type: object
60
- properties:
61
- token:
62
- type: string
63
- '401':
64
- description: Invalid credentials
65
- ```
@@ -1,55 +0,0 @@
1
- ---
2
- name: changelog-entry
3
- description: Generate Keep a Changelog format entries for version releases
4
- ---
5
-
6
- # changelog-entry
7
-
8
- Generate Keep a Changelog format entries.
9
-
10
- ## Activation Keywords
11
- - "changelog", "release notes", "version notes", "changelog entry"
12
-
13
- ## When to Use
14
- - Creating release notes for new version
15
- - Documenting changes for changelog
16
- - Preparing version announcement
17
-
18
- ## What This Does
19
- Generates changelog entries in Keep a Changelog format:
20
- - **Version header** with date (YYYY-MM-DD)
21
- - **Categories**: Added, Changed, Fixed, Improved, Deprecated, Removed, Security
22
- - **Detailed descriptions** of each change
23
- - **Breaking changes** clearly marked
24
- - **Links to related issues/PRs**
25
- - **Migration guides** for breaking changes
26
-
27
- Can auto-extract changes from commit messages if provided.
28
-
29
- ## Output
30
- Ready-to-add section for CHANGELOG.md
31
-
32
- ## Example Activation
33
- User: "Version 2.18.0 - Added 8 new agents"
34
- Skill: Generates:
35
- ```markdown
36
- ## [2.18.0] - 2025-10-28
37
-
38
- ### Added
39
- - **Documentation Agent** - Technical docs, API documentation, user guides
40
- - **Monitoring Agent** - Observability, logging, metrics, alerting
41
- - **Compliance Agent** - GDPR, HIPAA, SOC2 compliance
42
- - **Design Agent** - Design systems, component specs
43
- - **Accessibility Agent** - WCAG compliance, a11y testing
44
- - **Analytics Agent** - Event tracking, product analytics
45
- - **Data Migration Agent** - Zero-downtime migrations
46
- - **QA Agent** - Test strategy, release gates
47
-
48
- ### Changed
49
- - Expanded agent ecosystem from 17 to 25 agents
50
- - Improved agent coverage for enterprise features
51
-
52
- ### Improved
53
- - Added comprehensive monitoring and compliance support
54
- - Enhanced quality assurance gates
55
- ```
@@ -1,50 +0,0 @@
1
- ---
2
- name: commit-message-formatter
3
- description: Generate conventional commit messages following Conventional Commits standard
4
- ---
5
-
6
- # commit-message-formatter
7
-
8
- Generate conventional commit messages with detailed descriptions.
9
-
10
- ## Activation Keywords
11
- - "commit", "git commit", "conventional commit", "commit message"
12
-
13
- ## When to Use
14
- - User is about to commit code changes
15
- - Need to format commit in conventional commits style
16
- - Writing clear, searchable commit messages
17
-
18
- ## What This Does
19
- Generates properly-formatted commit messages following Conventional Commits standard:
20
- - Type: feat, fix, chore, docs, style, refactor, perf, test
21
- - Scope: module or component affected
22
- - Subject: concise description (imperative mood, <50 chars)
23
- - Body: detailed explanation of change (wrapped at 72 chars)
24
- - Footer: references to issues, breaking changes, co-authorship
25
-
26
- Automatically includes:
27
- - Claude Code co-authorship footer
28
- - Link to related story/issue if mentioned
29
- - Breaking change notation if applicable
30
-
31
- ## Output
32
- Ready-to-use commit message for `git commit -m`
33
-
34
- ## Example Activation
35
- User: "I implemented user login endpoint with JWT auth and rate limiting"
36
- Skill: Generates:
37
- ```
38
- feat(auth): implement JWT-based user login endpoint
39
-
40
- Implemented POST /api/auth/login endpoint with:
41
- - Email/password validation
42
- - JWT token generation (24h expiration)
43
- - Rate limiting (5 attempts per 15 minutes)
44
- - Proper error handling and logging
45
-
46
- Matches acceptance criteria from US-0001.
47
-
48
- 🤖 Generated with Claude Code
49
- Co-Authored-By: Claude <noreply@anthropic.com>
50
- ```
@@ -1,84 +0,0 @@
1
- ---
2
- name: deployment-guide-generator
3
- description: Generate deployment guides with rollback procedures and verification steps
4
- ---
5
-
6
- # deployment-guide-generator
7
-
8
- Generate deployment guides with rollback procedures.
9
-
10
- ## Activation Keywords
11
- - "deployment", "release guide", "deploy steps", "deployment procedure"
12
-
13
- ## When to Use
14
- - Preparing to deploy a feature
15
- - Creating release runbook
16
- - Documenting deployment steps
17
-
18
- ## What This Does
19
- Generates deployment guide including:
20
- - **Pre-deployment checklist** (tests passing, staging verified)
21
- - **Deployment steps** (database migrations, code deployment)
22
- - **Verification steps** (health checks, smoke tests)
23
- - **Rollback procedure** (how to revert if issues)
24
- - **Post-deployment monitoring** (watch metrics/logs)
25
- - **Communication plan** (who to notify)
26
- - **Estimated timeline**
27
-
28
- References monitoring for setup and rollback procedures.
29
-
30
- ## Output
31
- Ready-to-follow deployment guide
32
-
33
- ## Example Activation
34
- User: "Create deployment guide for user login feature"
35
- Skill: Generates:
36
- ```markdown
37
- ## Deployment Guide: User Login Feature (v2.18.0)
38
-
39
- ### Pre-Deployment Checklist
40
- - [ ] All tests passing (npm test)
41
- - [ ] Staging environment verified
42
- - [ ] Database backup taken
43
- - [ ] Monitoring alerts configured
44
- - [ ] Team notified
45
-
46
- ### Deployment Steps
47
- 1. Run database migrations
48
- \`\`\`bash
49
- npm run migrate:up
50
- \`\`\`
51
-
52
- 2. Deploy new code
53
- \`\`\`bash
54
- git push production main
55
- \`\`\`
56
-
57
- 3. Verify deployment
58
- - Check /health endpoint returns 200
59
- - Verify JWT tokens working
60
- - Check rate limiting active
61
-
62
- ### Monitoring (Watch these metrics)
63
- - Login success rate (target: >95%)
64
- - Login latency (target: <200ms p95)
65
- - Error rate (alert if >1%)
66
- - Rate limiting hits (expected: <5%)
67
-
68
- ### Rollback Procedure (if issues)
69
- 1. Revert database migrations:
70
- \`\`\`bash
71
- npm run migrate:down
72
- \`\`\`
73
-
74
- 2. Revert code:
75
- \`\`\`bash
76
- git revert <commit-hash>
77
- git push production main
78
- \`\`\`
79
-
80
- 3. Verify rollback successful
81
-
82
- **Estimated Timeline**: 15 minutes (10 min deploy + 5 min verify)
83
- **Rollback Time**: 10 minutes
84
- ```
@@ -1,65 +0,0 @@
1
- ---
2
- name: diagram-generator
3
- description: Generate Mermaid/ASCII diagrams for workflows, architecture, and sequence diagrams
4
- ---
5
-
6
- # diagram-generator
7
-
8
- Generate Mermaid/ASCII diagrams from descriptions.
9
-
10
- ## Activation Keywords
11
- - "diagram", "ASCII", "Mermaid", "flowchart", "architecture", "sequence diagram"
12
-
13
- ## When to Use
14
- - Creating architecture diagrams
15
- - Visualizing user workflows
16
- - Drawing sequence diagrams
17
- - System design documentation
18
-
19
- ## What This Does
20
- Generates diagrams in Mermaid format (renders in GitHub/Markdown):
21
- - **Flowcharts** (user flows, decision trees)
22
- - **Sequence diagrams** (API interactions, service calls)
23
- - **Architecture diagrams** (system components, data flow)
24
- - **ER diagrams** (database relationships)
25
- - **Gantt charts** (timeline/roadmap)
26
- - **State diagrams** (state machines)
27
-
28
- Also supports ASCII art for simple diagrams.
29
-
30
- ## Output
31
- Mermaid code blocks ready for markdown files
32
-
33
- ## Example Activation
34
- User: "Draw user login flow"
35
- Skill: Generates:
36
- ```mermaid
37
- flowchart TD
38
- A[User opens login page] --> B[Enter email & password]
39
- B --> C[Click submit]
40
- C --> D{Valid credentials?}
41
- D -->|No| E[Show error message]
42
- E --> B
43
- D -->|Yes| F[Generate JWT token]
44
- F --> G[Redirect to dashboard]
45
- G --> H[User logged in]
46
-
47
- style D fill:#ff9999
48
- style H fill:#99ff99
49
- ```
50
-
51
- Architecture diagram example:
52
- ```mermaid
53
- graph LR
54
- Client[Frontend Client]
55
- API[API Server]
56
- DB[(Database)]
57
- Cache[Redis Cache]
58
- Auth[Auth Service]
59
-
60
- Client -->|HTTP Request| API
61
- API -->|Query| DB
62
- API -->|Lookup| Cache
63
- API -->|Verify Token| Auth
64
- Auth -->|Check User| DB
65
- ```
@@ -1,78 +0,0 @@
1
- ---
2
- name: error-handler-template
3
- description: Generate error handling boilerplate with custom error classes and try/catch patterns
4
- ---
5
-
6
- # error-handler-template
7
-
8
- Generate error handling boilerplate for different languages.
9
-
10
- ## Activation Keywords
11
- - "error handling", "try catch", "error handler", "exception handling"
12
-
13
- ## When to Use
14
- - Implementing error handling for new features
15
- - Standardizing error responses across API
16
- - Creating error logging patterns
17
-
18
- ## What This Does
19
- Generates language-specific error handling code including:
20
- - **Error classes** with custom fields
21
- - **Try/catch patterns** for common scenarios
22
- - **Error middleware** for API servers
23
- - **Logging integration** for errors
24
- - **User-friendly error messages**
25
- - **HTTP status code mapping**
26
- - **Stack trace and context capture**
27
-
28
- Supports: JavaScript/TypeScript, Python, Java, Go, Rust
29
-
30
- ## Output
31
- Error handling code ready to integrate
32
-
33
- ## Example Activation
34
- User: "Create error handling for login endpoint"
35
- Skill: Generates (TypeScript):
36
- ```typescript
37
- // Custom error class
38
- class AuthError extends Error {
39
- constructor(
40
- public code: string,
41
- public statusCode: number,
42
- message: string,
43
- public context?: Record<string, any>
44
- ) {
45
- super(message);
46
- }
47
- }
48
-
49
- // Try/catch pattern
50
- async function login(email: string, password: string) {
51
- try {
52
- const user = await findUserByEmail(email);
53
- if (!user) {
54
- throw new AuthError('USER_NOT_FOUND', 404, 'User not found', { email });
55
- }
56
-
57
- const isValid = await verifyPassword(password, user.passwordHash);
58
- if (!isValid) {
59
- logger.warn('Invalid password attempt', { email });
60
- throw new AuthError(
61
- 'INVALID_CREDENTIALS',
62
- 401,
63
- 'Invalid email or password'
64
- );
65
- }
66
-
67
- return generateToken(user);
68
- } catch (error) {
69
- if (error instanceof AuthError) {
70
- logger.error(error.message, { code: error.code, context: error.context });
71
- throw error;
72
- }
73
- // Handle unexpected errors
74
- logger.error('Unexpected error in login', { error });
75
- throw new AuthError('INTERNAL_ERROR', 500, 'Internal server error');
76
- }
77
- }
78
- ```
@@ -1,82 +0,0 @@
1
- ---
2
- name: migration-checklist
3
- description: Generate data migration checklist with validation, rollback, and zero-downtime procedures
4
- ---
5
-
6
- # migration-checklist
7
-
8
- Generate data migration checklist.
9
-
10
- ## Activation Keywords
11
- - "migration", "zero-downtime", "data migration", "migration checklist"
12
-
13
- ## When to Use
14
- - Planning data migrations (schema changes, zero-downtime)
15
- - Moving data between systems
16
- - Large-scale data transformations
17
-
18
- ## What This Does
19
- Generates comprehensive migration checklist including:
20
- - **Pre-migration validation** (backup, verify counts)
21
- - **Migration phases** (dual-write, backfill, switch)
22
- - **Rollback procedures** (tested and documented)
23
- - **Data validation rules** (checksums, counts, integrity)
24
- - **Monitoring during migration** (watch for anomalies)
25
- - **Post-migration verification** (smoke tests, queries)
26
- - **Cleanup procedures** (remove old schema/data)
27
- - **Communication timeline**
28
-
29
- Coordinates with datamigration agent for detailed migration planning.
30
-
31
- ## Output
32
- Ready-to-execute migration checklist
33
-
34
- ## Example Activation
35
- User: "Plan zero-downtime migration from sessions to JWT"
36
- Skill: Generates:
37
- ```markdown
38
- ## Migration Checklist: Session → JWT Migration
39
-
40
- ### Phase 1: Preparation (pre-migration)
41
- - [ ] Create full database backup (test restore)
42
- - [ ] Verify staging matches production (data volume, schema)
43
- - [ ] Prepare rollback procedure (documented and tested)
44
- - [ ] Brief team on timeline and communication
45
- - [ ] Schedule 2-hour maintenance window
46
- - [ ] Set up monitoring dashboards
47
-
48
- ### Phase 2: Dual-Write (no downtime)
49
- - [ ] Deploy code that writes to BOTH sessions + JWT
50
- - [ ] Monitor for errors (should be zero)
51
- - [ ] Backfill JWT for existing sessions (background job)
52
- - [ ] Track conversion progress (% of sessions migrated)
53
- - [ ] Once 100% converted: Wait 24h for safety
54
-
55
- ### Phase 3: Verify
56
- - [ ] Check record counts match:
57
- - SELECT COUNT(*) FROM sessions
58
- - SELECT COUNT(*) FROM jwt_tokens
59
- - Should be equal
60
- - [ ] Validate JWT expiration timestamps
61
- - [ ] Check no orphaned sessions
62
- - [ ] Spot-check 100 random sessions
63
-
64
- ### Phase 4: Switch Reads
65
- - [ ] Deploy code to read from JWT instead of sessions
66
- - [ ] Monitor error rate (should be zero)
67
- - [ ] Keep writing to BOTH for 24h (safety)
68
- - [ ] Verify user experience
69
-
70
- ### Phase 5: Cleanup
71
- - [ ] Stop writing to sessions table
72
- - [ ] Archive sessions (backup)
73
- - [ ] Drop sessions table
74
- - [ ] Update documentation
75
-
76
- ### Rollback Point
77
- If issues during Phase 1-2: Revert to code writing sessions only (backward compatible)
78
- If issues during Phase 3-4: Switch reads back to sessions (keep JWT as backup)
79
-
80
- **Estimated Timeline**: 3-4 hours total
81
- **Expected Downtime**: 0 (zero-downtime migration)
82
- ```