agileflow 2.61.0 → 2.63.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 (68) 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/commands/uninstall.js +70 -0
  26. package/tools/cli/commands/update.js +21 -4
  27. package/tools/cli/installers/core/installer.js +20 -19
  28. package/tools/cli/installers/ide/_base-ide.js +18 -4
  29. package/tools/cli/installers/ide/claude-code.js +4 -15
  30. package/tools/cli/installers/ide/codex.js +9 -13
  31. package/tools/cli/lib/content-injector.js +162 -31
  32. package/tools/cli/lib/utils.js +87 -0
  33. package/src/core/skills/acceptance-criteria-generator/SKILL.md +0 -46
  34. package/src/core/skills/adr-template/SKILL.md +0 -62
  35. package/src/core/skills/agileflow-acceptance-criteria/SKILL.md +0 -156
  36. package/src/core/skills/agileflow-adr/SKILL.md +0 -147
  37. package/src/core/skills/agileflow-adr/examples/database-choice-example.md +0 -122
  38. package/src/core/skills/agileflow-adr/templates/adr-template.md +0 -69
  39. package/src/core/skills/agileflow-commit-messages/SKILL.md +0 -130
  40. package/src/core/skills/agileflow-commit-messages/reference/bad-examples.md +0 -168
  41. package/src/core/skills/agileflow-commit-messages/reference/good-examples.md +0 -120
  42. package/src/core/skills/agileflow-commit-messages/scripts/check-attribution.sh +0 -15
  43. package/src/core/skills/agileflow-epic-planner/SKILL.md +0 -184
  44. package/src/core/skills/agileflow-retro-facilitator/SKILL.md +0 -119
  45. package/src/core/skills/agileflow-retro-facilitator/cookbook/4ls.md +0 -86
  46. package/src/core/skills/agileflow-retro-facilitator/cookbook/glad-sad-mad.md +0 -79
  47. package/src/core/skills/agileflow-retro-facilitator/cookbook/start-stop-continue.md +0 -142
  48. package/src/core/skills/agileflow-retro-facilitator/prompts/action-items.md +0 -83
  49. package/src/core/skills/agileflow-sprint-planner/SKILL.md +0 -212
  50. package/src/core/skills/agileflow-story-writer/SKILL.md +0 -163
  51. package/src/core/skills/agileflow-story-writer/examples/good-story-example.md +0 -63
  52. package/src/core/skills/agileflow-story-writer/templates/story-template.md +0 -44
  53. package/src/core/skills/agileflow-tech-debt/SKILL.md +0 -215
  54. package/src/core/skills/api-documentation-generator/SKILL.md +0 -65
  55. package/src/core/skills/changelog-entry/SKILL.md +0 -55
  56. package/src/core/skills/commit-message-formatter/SKILL.md +0 -50
  57. package/src/core/skills/deployment-guide-generator/SKILL.md +0 -84
  58. package/src/core/skills/diagram-generator/SKILL.md +0 -65
  59. package/src/core/skills/error-handler-template/SKILL.md +0 -78
  60. package/src/core/skills/migration-checklist/SKILL.md +0 -82
  61. package/src/core/skills/pr-description/SKILL.md +0 -65
  62. package/src/core/skills/sql-schema-generator/SKILL.md +0 -69
  63. package/src/core/skills/story-skeleton/SKILL.md +0 -34
  64. package/src/core/skills/test-case-generator/SKILL.md +0 -63
  65. package/src/core/skills/type-definitions/SKILL.md +0 -65
  66. package/src/core/skills/validation-schema-generator/SKILL.md +0 -64
  67. package/src/core/skills/writing-skills/SKILL.md +0 -352
  68. package/src/core/skills/writing-skills/testing-skills-with-subagents.md +0 -232
@@ -1,63 +0,0 @@
1
- # [STORY-042] Add Dark Mode Toggle to Settings
2
-
3
- **Owner**: AG-UI
4
- **Status**: TODO
5
- **Epic**: [EPIC-005] User Experience Improvements
6
- **Priority**: P2
7
- **Estimate**: 5 story points
8
-
9
- ## User Story
10
-
11
- As a user who works at night,
12
- I want to toggle dark mode in the settings,
13
- So that I can reduce eye strain and improve readability in low-light conditions.
14
-
15
- ## Acceptance Criteria
16
-
17
- ### AC1: Settings Toggle Available
18
- **Given** I am on the settings page
19
- **When** I navigate to the "Appearance" section
20
- **Then** I should see a dark mode toggle switch
21
-
22
- ### AC2: Theme Switches Immediately
23
- **Given** I am viewing the app in light mode
24
- **When** I toggle dark mode on
25
- **Then** the entire UI should switch to dark theme within 200ms
26
-
27
- ### AC3: Preference Persists
28
- **Given** I have enabled dark mode
29
- **When** I close and reopen the application
30
- **Then** dark mode should still be active
31
-
32
- ### AC4: System Preference Detection
33
- **Given** I have not set a preference
34
- **When** the app loads for the first time
35
- **Then** it should default to my system's dark mode preference
36
-
37
- ## Technical Notes
38
-
39
- - Use CSS custom properties for theme colors
40
- - Store preference in localStorage: `theme: 'light' | 'dark' | 'system'`
41
- - Listen to `prefers-color-scheme` media query for system default
42
- - Ensure all components support both themes
43
- - Add transition animations for smooth mode switching
44
-
45
- ## Testing Strategy
46
-
47
- - Test theme switching in all major browsers (Chrome, Firefox, Safari)
48
- - Verify localStorage persistence across sessions
49
- - Test system preference detection on different OS
50
- - Validate WCAG contrast ratios in dark mode
51
- - Test with keyboard navigation (accessibility)
52
-
53
- ## Definition of Done
54
-
55
- - [ ] Dark mode toggle implemented in settings UI
56
- - [ ] Theme preference stored in localStorage
57
- - [ ] All components styled for dark mode
58
- - [ ] System preference detection working
59
- - [ ] Unit tests for theme switching logic
60
- - [ ] E2E tests for toggle interaction
61
- - [ ] Documentation updated with theme implementation details
62
- - [ ] Deployed to staging and tested
63
- - [ ] Accessibility audit passed (WCAG AA)
@@ -1,44 +0,0 @@
1
- # [STORY-###] {Title}
2
-
3
- **Owner**: {AG-UI | AG-API | AG-CI | AG-DEVOPS}
4
- **Status**: TODO
5
- **Epic**: {Link to epic if applicable}
6
- **Priority**: {P0 | P1 | P2 | P3}
7
- **Estimate**: {1-13 story points}
8
-
9
- ## User Story
10
-
11
- As a {user type},
12
- I want to {action/capability},
13
- So that {benefit/value}.
14
-
15
- ## Acceptance Criteria
16
-
17
- ### AC1: {Criterion Name}
18
- **Given** {initial context/state}
19
- **When** {action/trigger}
20
- **Then** {expected outcome}
21
-
22
- ### AC2: {Another Criterion}
23
- **Given** {context}
24
- **When** {action}
25
- **Then** {outcome}
26
-
27
- ## Technical Notes
28
-
29
- - {Implementation details}
30
- - {Dependencies}
31
- - {Risks/Considerations}
32
-
33
- ## Testing Strategy
34
-
35
- - {How to test this story}
36
- - {Edge cases to verify}
37
-
38
- ## Definition of Done
39
-
40
- - [ ] Code implemented and reviewed
41
- - [ ] Tests written and passing
42
- - [ ] Documentation updated
43
- - [ ] Deployed to staging
44
- - [ ] Acceptance criteria validated
@@ -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
- ```