@wipal/agent-team 1.0.3 → 1.1.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 (124) hide show
  1. package/.claude/commands/skills/discover.md +127 -0
  2. package/.claude/commands/skills/install.md +225 -0
  3. package/.claude/commands/skills/review.md +234 -0
  4. package/.claude/commands/utils/learn.md +142 -0
  5. package/.claude/commands/utils/retrospect.md +62 -0
  6. package/.claude/commands/utils/switch.md +113 -0
  7. package/.claude/commands/utils/sync.md +183 -0
  8. package/.claude/rules/common/general-rules.md +6 -0
  9. package/.claude/rules/role-rules/dev-be-rules.md +241 -0
  10. package/.claude/rules/role-rules/dev-fe-rules.md +76 -0
  11. package/.claude/skills/SKILL-INDEX.md +24 -5
  12. package/.claude/skills/core/knowledge-graph/SKILL.md +214 -0
  13. package/.claude/skills/core/sequential-thinking/SKILL.md +112 -0
  14. package/.claude/skills/core/sequential-thinking/references/advanced.md +122 -0
  15. package/.claude/skills/core/sequential-thinking/references/examples.md +274 -0
  16. package/.claude/skills/domain/architecture/c4-architecture/SKILL.md +314 -0
  17. package/.claude/skills/domain/architecture/c4-architecture/references/advanced-patterns.md +552 -0
  18. package/.claude/skills/domain/architecture/c4-architecture/references/c4-syntax.md +492 -0
  19. package/.claude/skills/domain/architecture/c4-architecture/references/common-mistakes.md +437 -0
  20. package/.claude/skills/domain/architecture/mermaid-diagrams/SKILL.md +238 -0
  21. package/.claude/skills/domain/architecture/mermaid-diagrams/references/advanced-features.md +556 -0
  22. package/.claude/skills/domain/architecture/mermaid-diagrams/references/architecture-diagrams.md +192 -0
  23. package/.claude/skills/domain/architecture/mermaid-diagrams/references/c4-diagrams.md +410 -0
  24. package/.claude/skills/domain/architecture/mermaid-diagrams/references/class-diagrams.md +361 -0
  25. package/.claude/skills/domain/architecture/mermaid-diagrams/references/erd-diagrams.md +510 -0
  26. package/.claude/skills/domain/architecture/mermaid-diagrams/references/flowcharts.md +450 -0
  27. package/.claude/skills/domain/architecture/mermaid-diagrams/references/sequence-diagrams.md +394 -0
  28. package/.claude/skills/domain/backend/testing-be/SKILL.md +121 -17
  29. package/.claude/skills/domain/design/design-system/SKILL.md +169 -0
  30. package/.claude/skills/domain/design/html-css-output/SKILL.md +253 -0
  31. package/.claude/skills/domain/design/mockup-creation/SKILL.md +230 -0
  32. package/.claude/skills/domain/design/responsive-design/SKILL.md +207 -0
  33. package/.claude/skills/domain/design/ui-design/SKILL.md +124 -0
  34. package/.claude/skills/domain/frontend/testing-fe/SKILL.md +143 -38
  35. package/.claude/skills/domain/frontend/ui-ux-pro-max/README.md +45 -0
  36. package/.claude/skills/domain/frontend/ui-ux-pro-max/SKILL.md +404 -0
  37. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/charts.csv +26 -0
  38. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/colors.csv +97 -0
  39. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/icons.csv +101 -0
  40. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/landing.csv +31 -0
  41. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/products.csv +97 -0
  42. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/react-performance.csv +45 -0
  43. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  44. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  45. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  46. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  47. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  48. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  49. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  50. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  51. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/react.csv +54 -0
  52. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  53. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  54. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  55. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  56. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/styles.csv +68 -0
  57. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/typography.csv +58 -0
  58. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  59. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  60. package/.claude/skills/domain/frontend/ui-ux-pro-max/data/web-interface.csv +31 -0
  61. package/.claude/skills/domain/frontend/ui-ux-pro-max/scripts/core.py +253 -0
  62. package/.claude/skills/domain/frontend/ui-ux-pro-max/scripts/design_system.py +1067 -0
  63. package/.claude/skills/domain/frontend/ui-ux-pro-max/scripts/search.py +114 -0
  64. package/.claude/skills/domain/product/requirements-clarity/SKILL.md +340 -0
  65. package/.claude/skills/skills-registry.yaml +103 -8
  66. package/README.md +107 -33
  67. package/README.npm.md +252 -0
  68. package/TUTORIAL.md +256 -0
  69. package/bin/agent-team.js +26 -7
  70. package/config/roles.yaml +107 -0
  71. package/docs/01-architecture.md +699 -0
  72. package/docs/02-setup-guide.md +634 -0
  73. package/docs/03-skills-guide.md +628 -0
  74. package/docs/04-workflows.md +792 -0
  75. package/docs/05-model-strategy.md +550 -0
  76. package/docs/06-extend-guide.md +1226 -0
  77. package/docs/07-quick-reference.md +578 -0
  78. package/docs/08-skills-discovery.md +342 -0
  79. package/docs/README.md +134 -0
  80. package/docs/rqm.md +560 -0
  81. package/package.json +10 -4
  82. package/scripts/postinstall.js +46 -0
  83. package/src/commands/add.js +131 -67
  84. package/src/commands/init.js +419 -9
  85. package/src/commands/list.js +20 -16
  86. package/src/commands/projects.js +127 -0
  87. package/src/commands/setup-hooks.js +261 -0
  88. package/src/index.js +0 -1
  89. package/src/utils/file-utils.js +147 -50
  90. package/src/utils/global-registry.js +224 -0
  91. package/templates/CLAUDE.md.tmpl +128 -20
  92. package/templates/MEMORY.md.tmpl +119 -0
  93. package/templates/agent.md.tmpl +205 -0
  94. package/templates/code/nestjs-controller.ts.tmpl +49 -0
  95. package/templates/code/nestjs-dto.ts.tmpl +63 -0
  96. package/templates/code/nestjs-service.ts.tmpl +45 -0
  97. package/templates/code/react-component.tsx.tmpl +24 -0
  98. package/templates/code/react-hook.ts.tmpl +54 -0
  99. package/templates/code/test.spec.ts.tmpl +50 -0
  100. package/templates/code/vue-component.vue.tmpl +49 -0
  101. package/templates/code/vue-composable.ts.tmpl +54 -0
  102. package/templates/knowledge.md.tmpl +152 -17
  103. package/templates/meeting-notes.md.tmpl +110 -0
  104. package/templates/memory/hooks.memory.json +50 -0
  105. package/templates/memory/settings.memory.json +16 -0
  106. package/templates/reports/bug-report.md.tmpl +164 -0
  107. package/templates/reports/code-review.md.tmpl +201 -0
  108. package/templates/reports/sprint-report.md.tmpl +218 -0
  109. package/templates/roles/ba.md +53 -0
  110. package/templates/roles/designer.md +82 -0
  111. package/templates/roles/dev-be.md +49 -0
  112. package/templates/roles/dev-fe.md +49 -0
  113. package/templates/roles/devops.md +53 -0
  114. package/templates/roles/pm.md +49 -0
  115. package/templates/roles/qa.md +53 -0
  116. package/templates/roles/sa.md +49 -0
  117. package/templates/roles/tech-lead.md +132 -0
  118. package/templates/skills/memory/memory-status.md +78 -0
  119. package/templates/skills/memory/recall.md +160 -0
  120. package/templates/skills/memory/reflect.md +168 -0
  121. package/templates/skills/memory/remember.md +105 -0
  122. package/templates/tasks/lessons.md.tmpl +77 -0
  123. package/templates/tasks/todo.md.tmpl +53 -0
  124. package/src/commands/switch.js +0 -53
@@ -0,0 +1,241 @@
1
+ # dev-be Rules - Rules riêng cho Backend Developers
2
+
3
+ ---
4
+
5
+ ## BE-Specific Rules
6
+
7
+ ### 1. API Documentation First
8
+ - Luôn document API trước khi implement (OpenAPI/Swagger)
9
+ - Define request/response schemas rõ ràng
10
+ - Include error responses trong docs
11
+ - Version APIs properly (`/api/v1/...`)
12
+
13
+ ### 2. Database Best Practices
14
+ - Luôn dùng parameterized queries (tránh SQL injection)
15
+ - Add proper indexes cho frequently queried columns
16
+ - Use transactions cho operations liên quan đến nhiều tables
17
+ - Implement soft delete cho important data
18
+ - Never store plaintext passwords
19
+
20
+ ### 3. Error Handling
21
+ - Never expose internal errors to clients
22
+ - Use consistent error response format
23
+ - Log errors với đủ context
24
+ - Implement proper HTTP status codes
25
+ - Include request ID for debugging
26
+
27
+ ### 4. Security Hardening
28
+ - Validate ALL user input
29
+ - Implement rate limiting
30
+ - Use HTTPS everywhere
31
+ - Sanitize data before logging
32
+ - Implement proper authentication/authorization
33
+
34
+ ### 5. Performance
35
+ - Avoid N+1 queries (use joins, batch loading)
36
+ - Implement caching where appropriate
37
+ - Use connection pooling
38
+ - Monitor query performance
39
+ - Paginate list endpoints
40
+
41
+ ### 6. Testing Requirements
42
+ - Unit tests cho business logic
43
+ - Integration tests cho API endpoints
44
+ - Test edge cases và error paths
45
+ - Mock external dependencies
46
+ - Aim for >80% coverage cho critical paths
47
+
48
+ ---
49
+
50
+ ## Tool Access Control (Capability-Based)
51
+
52
+ > Pattern từ OpenFang: Fine-grained permissions thay vì all-or-nothing
53
+
54
+ ### File Operations
55
+
56
+ | Action | Allowed Paths | Denied Paths |
57
+ |--------|---------------|--------------|
58
+ | READ | `src/**`, `prisma/**`, `*.config.*`, `package.json`, `docker-compose.*` | `.env*`, `secrets/**`, `credentials/**` |
59
+ | WRITE | `src/**`, `prisma/**`, `tests/**` | `.env*`, `secrets/**`, `*.lock`, `dist/**` |
60
+ | DELETE | `src/**/*.test.ts` (with confirmation) | Production files, migrations (applied) |
61
+
62
+ ### Shell Commands
63
+
64
+ | Category | ALLOW | DENY |
65
+ |----------|-------|------|
66
+ | Package | `npm run *`, `npm install`, `yarn *` | `npm publish`, `yarn publish` |
67
+ | Database | `npx prisma *`, `npm run db:*` | Direct DB mutations on prod |
68
+ | Git | `git status`, `git diff`, `git log`, `git branch` | `git push --force`, `git reset --hard` |
69
+ | Docker | `docker compose up`, `docker compose down` | `docker system prune` |
70
+ | System | `node *` | `sudo *`, `rm -rf`, `chmod 777` |
71
+
72
+ ### Network Access
73
+
74
+ | ALLOW | DENY |
75
+ |-------|------|
76
+ | `localhost:*` | Production databases (without approval) |
77
+ | `*.internal.company.com` | External services with secrets |
78
+ | `api.staging.*` | Production APIs (without approval) |
79
+ | Database: dev/staging instances | Database: production instances |
80
+
81
+ ### Memory Scope
82
+
83
+ | Scope | Access |
84
+ |-------|--------|
85
+ | `self.*` | Full read/write |
86
+ | `shared.backend.*` | Full read/write |
87
+ | `shared.project.*` | Read only |
88
+ | `shared.frontend.*` | Read only (for API contracts) |
89
+
90
+ ---
91
+
92
+ ## Operational Phases
93
+
94
+ > Multi-phase methodology từ OpenFang
95
+
96
+ ### Phase 1: ANALYZE
97
+
98
+ - Read existing code and understand architecture
99
+ - Review database schema and relationships
100
+ - Understand API contracts and dependencies
101
+ - Check for existing solutions/patterns
102
+
103
+ ### Phase 2: PLAN
104
+
105
+ - Design API endpoints và data models
106
+ - Consider scalability và performance implications
107
+ - Identify security considerations
108
+ - Get approval for non-trivial changes
109
+ - Plan database migrations if needed
110
+
111
+ ### Phase 3: IMPLEMENT
112
+
113
+ - Write clean, maintainable code
114
+ - Follow existing conventions và patterns
115
+ - Implement proper error handling
116
+ - Add input validation
117
+ - Write self-documenting code
118
+
119
+ ### Phase 4: VERIFY
120
+
121
+ - Run unit tests và integration tests
122
+ - Test error scenarios
123
+ - Verify API documentation is updated
124
+ - Check performance với realistic data
125
+ - Security review cho sensitive endpoints
126
+
127
+ ### Phase 5: DOCUMENT
128
+
129
+ - Update API documentation
130
+ - Document new environment variables
131
+ - Update README nếu cần
132
+ - Add migration notes nếu có
133
+ - Share knowledge với team
134
+
135
+ ---
136
+
137
+ ## API Response Standards
138
+
139
+ ### Success Response
140
+
141
+ ```json
142
+ {
143
+ "success": true,
144
+ "data": { ... },
145
+ "meta": {
146
+ "page": 1,
147
+ "total": 100
148
+ }
149
+ }
150
+ ```
151
+
152
+ ### Error Response
153
+
154
+ ```json
155
+ {
156
+ "success": false,
157
+ "error": {
158
+ "code": "VALIDATION_ERROR",
159
+ "message": "Invalid input",
160
+ "details": [...]
161
+ },
162
+ "requestId": "req_abc123"
163
+ }
164
+ ```
165
+
166
+ ---
167
+
168
+ ## Code Quality Checklist
169
+
170
+ Before submitting:
171
+
172
+ - [ ] Input validation implemented
173
+ - [ ] Error handling complete
174
+ - [ ] Tests written (unit + integration)
175
+ - [ ] API documentation updated
176
+ - [ ] No hardcoded values
177
+ - [ ] Proper logging added
178
+ - [ ] SQL queries use parameters
179
+ - [ ] Sensitive data not logged
180
+
181
+ ---
182
+
183
+ ## Anti-Patterns to Avoid
184
+
185
+ ### Database
186
+
187
+ - ❌ N+1 queries (use joins/batching)
188
+ - ❌ Missing indexes on foreign keys
189
+ - ❌ Storing JSON blobs when normalized tables work
190
+ - ❌ Hardcoding connection strings
191
+
192
+ ### Security
193
+
194
+ - ❌ Trusting user input
195
+ - ❌ Exposing internal errors
196
+ - ❌ Storing passwords in plaintext
197
+ - ❌ Missing authentication checks
198
+ - ❌ SQL string concatenation
199
+
200
+ ### Performance
201
+
202
+ - ❌ Fetching unnecessary columns
203
+ - ❌ No pagination on list endpoints
204
+ - ❌ Missing cache headers
205
+ - ❌ Synchronous operations cho long tasks
206
+
207
+ ### Code Quality
208
+
209
+ - [ ] Files > 500 lines (split into modules)
210
+ - [ ] Functions > 50 lines (extract helpers)
211
+ - [ ] Missing error handling
212
+ - [ ] Magic numbers/strings
213
+
214
+ ---
215
+
216
+ ## Environment Variables Template
217
+
218
+ ```bash
219
+ # Database
220
+ DATABASE_URL="postgresql://..."
221
+ DIRECT_URL="postgresql://..."
222
+
223
+ # Auth
224
+ JWT_SECRET=""
225
+ JWT_EXPIRES_IN="7d"
226
+
227
+ # External Services
228
+ REDIS_URL=""
229
+ S3_BUCKET=""
230
+
231
+ # Logging
232
+ LOG_LEVEL="info"
233
+ ```
234
+
235
+ ---
236
+
237
+ ## Related Documentation
238
+
239
+ - [General Rules](../common/general-rules.md)
240
+ - [SA Rules](./sa-rules.md)
241
+ - [API Design Skill](../../skills/domain/backend/api-design/SKILL.md)
@@ -41,6 +41,82 @@
41
41
 
42
42
  ---
43
43
 
44
+ ## Tool Access Control (Capability-Based)
45
+
46
+ > Pattern từ OpenFang: Fine-grained permissions thay vì all-or-nothing
47
+
48
+ ### File Operations
49
+
50
+ | Action | Allowed Paths | Denied Paths |
51
+ |--------|---------------|--------------|
52
+ | READ | `src/**`, `public/**`, `*.config.*`, `package.json` | `.env*`, `secrets/**`, `credentials/**` |
53
+ | WRITE | `src/**`, `public/**` | `.env*`, `secrets/**`, `*.lock`, `dist/**` |
54
+ | DELETE | `src/**/*.test.ts` (with confirmation) | Production files, config files |
55
+
56
+ ### Shell Commands
57
+
58
+ | Category | ALLOW | DENY |
59
+ |----------|-------|------|
60
+ | Package | `npm run *`, `npm install`, `yarn *` | `npm publish`, `yarn publish` |
61
+ | Git | `git status`, `git diff`, `git log`, `git branch` | `git push --force`, `git reset --hard` |
62
+ | Build | `npm run build`, `npm run dev` | `sudo *` |
63
+ | System | `node *` | `rm -rf`, `chmod 777`, `curl * | bash` |
64
+
65
+ ### Network Access
66
+
67
+ | ALLOW | DENY |
68
+ |-------|------|
69
+ | `localhost:*` | Production databases |
70
+ | `*.internal.company.com` | External secrets managers |
71
+ | `api.staging.*` | Production APIs (without explicit approval) |
72
+
73
+ ### Memory Scope
74
+
75
+ | Scope | Access |
76
+ |-------|--------|
77
+ | `self.*` | Full read/write |
78
+ | `shared.frontend.*` | Full read/write |
79
+ | `shared.project.*` | Read only |
80
+ | `shared.backend.*` | No access |
81
+
82
+ ---
83
+
84
+ ## Operational Phases
85
+
86
+ > Multi-phase methodology từ OpenFang
87
+
88
+ ### Phase 1: ANALYZE
89
+ - Read existing code and context
90
+ - Identify relevant patterns and conventions
91
+ - Understand requirements fully
92
+ - Check Context7 for latest API docs
93
+
94
+ ### Phase 2: PLAN
95
+ - Design approach for non-trivial changes
96
+ - Consider alternatives and trade-offs
97
+ - Get approval before implementation
98
+ - Break down into subtasks if complex
99
+
100
+ ### Phase 3: IMPLEMENT
101
+ - Write clean, production-quality code
102
+ - Follow existing conventions
103
+ - Handle errors explicitly
104
+ - Add appropriate logging
105
+
106
+ ### Phase 4: VERIFY
107
+ - Run tests and check coverage
108
+ - Validate output meets requirements
109
+ - Self-review changes
110
+ - Check for console errors/warnings
111
+
112
+ ### Phase 5: DOCUMENT
113
+ - Update relevant documentation
114
+ - Capture lessons learned
115
+ - Update MEMORY.md if significant
116
+ - Share knowledge with team
117
+
118
+ ---
119
+
44
120
  ## Component Checklist
45
121
 
46
122
  Before submitting component:
@@ -13,6 +13,9 @@
13
13
  | [code-review](core/code-review/SKILL.md) | Systematic code review with technical rigor | - |
14
14
  | [git-automation](core/git-automation/SKILL.md) | Git workflow automation and commit standards | - |
15
15
  | [retrospect-work](core/retrospect-work/SKILL.md) | Self-learning retrospects for continuous improvement | - |
16
+ | [agent-creation](core/agent-creation/SKILL.md) | Guide for creating agents with skills.sh integration | - |
17
+ | [sequential-thinking](core/sequential-thinking/SKILL.md) | Systematic step-by-step reasoning for complex problems | - |
18
+ | [knowledge-graph](core/knowledge-graph/SKILL.md) | Entity-relation storage for cross-agent knowledge | - |
16
19
 
17
20
  ### Domain Skills
18
21
 
@@ -25,6 +28,7 @@
25
28
  | [state-management](domain/frontend/state-management/SKILL.md) | Zustand, TanStack Query patterns | frontend-design |
26
29
  | [testing-fe](domain/frontend/testing-fe/SKILL.md) | Vitest + Testing Library | code-review |
27
30
  | [performance-fe](domain/frontend/performance-fe/SKILL.md) | React optimization, Core Web Vitals | frontend-design |
31
+ | [ui-ux-pro-max](domain/frontend/ui-ux-pro-max/SKILL.md) | UI/UX design intelligence with 67 styles, 96 palettes | frontend-design |
28
32
 
29
33
  #### Backend
30
34
 
@@ -46,6 +50,8 @@
46
50
  | [tech-selection](domain/architecture/tech-selection/SKILL.md) | Technology evaluation framework | adr-writing |
47
51
  | [performance-engineering](domain/architecture/performance-engineering/SKILL.md) | Performance optimization strategies | system-design |
48
52
  | [security-architecture](domain/architecture/security-architecture/SKILL.md) | Security architecture patterns | system-design, security |
53
+ | [c4-architecture](domain/architecture/c4-architecture/SKILL.md) | Generate C4 model architecture diagrams in Mermaid | system-design |
54
+ | [mermaid-diagrams](domain/architecture/mermaid-diagrams/SKILL.md) | Comprehensive guide for creating Mermaid diagrams | - |
49
55
 
50
56
  #### DevOps
51
57
 
@@ -66,6 +72,7 @@
66
72
  | [sprint-planning](domain/product/sprint-planning/SKILL.md) | Sprint planning and estimation | user-stories |
67
73
  | [roadmap-planning](domain/product/roadmap-planning/SKILL.md) | Product roadmap creation | sprint-planning |
68
74
  | [stakeholder-communication](domain/product/stakeholder-communication/SKILL.md) | Stakeholder management | - |
75
+ | [requirements-clarity](domain/product/requirements-clarity/SKILL.md) | Transform vague requirements into actionable PRDs | requirements-gathering |
69
76
 
70
77
  #### Quality
71
78
 
@@ -76,6 +83,16 @@
76
83
  | [test-automation](domain/quality/test-automation/SKILL.md) | Test automation frameworks | test-planning |
77
84
  | [regression-testing](domain/quality/regression-testing/SKILL.md) | Regression test strategies | test-automation |
78
85
 
86
+ #### Design
87
+
88
+ | Skill | Description | Dependencies |
89
+ |-------|-------------|--------------|
90
+ | [ui-design](domain/design/ui-design/SKILL.md) | UI design principles for professional, accessible interfaces | - |
91
+ | [design-system](domain/design/design-system/SKILL.md) | Design system with tokens, components, patterns | ui-design |
92
+ | [responsive-design](domain/design/responsive-design/SKILL.md) | Mobile-first responsive design with breakpoints | ui-design |
93
+ | [html-css-output](domain/design/html-css-output/SKILL.md) | Converting designs to HTML/CSS for developers | ui-design, design-system |
94
+ | [mockup-creation](domain/design/mockup-creation/SKILL.md) | Creating wireframes and mockups with DrawIO | ui-design |
95
+
79
96
  ### Leadership Skills
80
97
 
81
98
  | Skill | Description | Dependencies |
@@ -276,15 +293,17 @@ used_by: [] # Reverse reference
276
293
 
277
294
  | Category | Count | Status |
278
295
  |----------|-------|--------|
279
- | Core | 3 | ✅ Complete |
280
- | Frontend | 5 | ✅ Complete |
296
+ | Core | 6 | ✅ Complete |
297
+ | Frontend | 6 | ✅ Complete |
281
298
  | Backend | 5 | ✅ Complete |
282
- | Architecture | 6 | ✅ Complete |
299
+ | Architecture | 8 | ✅ Complete |
283
300
  | DevOps | 5 | ✅ Complete |
284
- | Product | 5 | ✅ Complete |
301
+ | Product | 6 | ✅ Complete |
285
302
  | Quality | 4 | ✅ Complete |
303
+ | Design | 5 | ✅ Complete |
286
304
  | Leadership | 4 | ✅ Complete |
287
- | **Total** | **37** | ✅ All Complete |
305
+ | Community | 1 | ✅ Complete |
306
+ | **Total** | **50** | ✅ All Complete |
288
307
 
289
308
  ---
290
309
 
@@ -0,0 +1,214 @@
1
+ ---
2
+ name: knowledge-graph
3
+ description: |
4
+ Maintain structured knowledge about project components and their relationships.
5
+ Use when implementing new features, making architectural decisions, refactoring
6
+ components, or when user mentions "relationships", "dependencies", "architecture
7
+ map", "component connections", "knowledge graph".
8
+ version: 1.0.0
9
+ category: core
10
+ tags:
11
+ - knowledge
12
+ - architecture
13
+ - relationships
14
+ - memory
15
+ depends_on: []
16
+ recommends:
17
+ - retrospect-work
18
+ used_by:
19
+ - system-design
20
+ - architecture-patterns
21
+ - tech-decision
22
+ ---
23
+
24
+ # Skill: Knowledge Graph
25
+
26
+ ## Core Principle
27
+
28
+ **Projects are networks of connected components.**
29
+ Understanding relationships is as important as understanding individual parts.
30
+
31
+ ## Purpose
32
+
33
+ Maintain structured knowledge about:
34
+ - Components and their types
35
+ - Relationships between components
36
+ - Decisions and their rationale
37
+ - Dependencies (internal and external)
38
+
39
+ ## Entity Types
40
+
41
+ | Type | Description | Examples |
42
+ |------|-------------|----------|
43
+ | `component` | Code modules | auth-service, login-page, user-api |
44
+ | `api` | API endpoints | POST /auth/login, GET /users |
45
+ | `database` | Data stores | users-table, sessions-table |
46
+ | `decision` | ADRs/decisions | use-jwt-auth, postgres-choice |
47
+ | `external` | Third-party services | stripe-api, sendgrid |
48
+ | `pattern` | Design patterns | repository-pattern, factory-pattern |
49
+
50
+ ## Relationship Types
51
+
52
+ | Relation | Meaning | Example |
53
+ |----------|---------|---------|
54
+ | `calls` | A invokes B | login-page → calls → auth-api |
55
+ | `depends_on` | A requires B | auth-service → depends_on → users-table |
56
+ | `implements` | A implements B | auth-service → implements → decision:use-jwt |
57
+ | `relates_to` | General connection | login-page → relates_to → register-page |
58
+ | `produces` | A outputs B | auth-api → produces → jwt-token |
59
+ | `consumes` | A uses B | dashboard → consumes → jwt-token |
60
+
61
+ ## Storage Format
62
+
63
+ ### File: `.claude/knowledge/graph.json`
64
+
65
+ ```json
66
+ {
67
+ "version": "1.0",
68
+ "updated": "2025-02-27T10:00:00Z",
69
+ "entities": [
70
+ {
71
+ "id": "auth-service",
72
+ "type": "component",
73
+ "description": "JWT authentication service",
74
+ "owner": "dev-be",
75
+ "tags": ["auth", "security"],
76
+ "created": "2025-01-15"
77
+ }
78
+ ],
79
+ "relations": [
80
+ {
81
+ "from": "login-page",
82
+ "to": "auth-service",
83
+ "type": "calls",
84
+ "via": "POST /auth/login"
85
+ }
86
+ ]
87
+ }
88
+ ```
89
+
90
+ ## When to Update
91
+
92
+ ### After Implementing New Features
93
+
94
+ ```markdown
95
+ 1. Identify new components created
96
+ 2. Map connections to existing components
97
+ 3. Add entities and relations to graph
98
+ 4. Update MEMORY.md with key relationships
99
+ ```
100
+
101
+ ### When Making Architectural Decisions
102
+
103
+ ```markdown
104
+ 1. Create decision entity
105
+ 2. Link to affected components
106
+ 3. Document rationale in entity description
107
+ 4. Cross-reference with ADR if exists
108
+ ```
109
+
110
+ ### After Refactoring
111
+
112
+ ```markdown
113
+ 1. Update component relationships
114
+ 2. Mark deprecated relations
115
+ 3. Add new relations created by refactor
116
+ 4. Update descriptions if behavior changed
117
+ ```
118
+
119
+ ## Usage Patterns
120
+
121
+ ### Query: What depends on X?
122
+
123
+ ```
124
+ Find all relations where to = X and type = depends_on
125
+ ```
126
+
127
+ ### Query: What does X affect?
128
+
129
+ ```
130
+ Find all relations where from = X
131
+ ```
132
+
133
+ ### Query: Decision trace
134
+
135
+ ```
136
+ Find all entities of type decision
137
+ Follow implements relations to components
138
+ ```
139
+
140
+ ## Integration with Memory
141
+
142
+ ### MEMORY.md Section
143
+
144
+ ```markdown
145
+ ## Component Relationships
146
+
147
+ ### Authentication Flow
148
+ - login-page → calls → auth-service
149
+ - auth-service → depends_on → users-table
150
+ - auth-service → implements → decision:use-jwt
151
+
152
+ ### Key Decisions
153
+ - decision:use-jwt → affects → auth-service, api-gateway
154
+ ```
155
+
156
+ ## Quick Commands
157
+
158
+ ### Add Entity
159
+
160
+ ```json
161
+ {
162
+ "id": "new-component",
163
+ "type": "component",
164
+ "description": "...",
165
+ "owner": "dev-fe",
166
+ "tags": ["ui", "forms"]
167
+ }
168
+ ```
169
+
170
+ ### Add Relation
171
+
172
+ ```json
173
+ {
174
+ "from": "new-component",
175
+ "to": "existing-component",
176
+ "type": "depends_on"
177
+ }
178
+ ```
179
+
180
+ ## Visualization
181
+
182
+ Generate Mermaid diagram from graph:
183
+
184
+ ```mermaid
185
+ graph TD
186
+ login-page -->|calls| auth-service
187
+ auth-service -->|depends_on| users-table
188
+ auth-service -->|implements| decision-use-jwt
189
+ ```
190
+
191
+ ## Best Practices
192
+
193
+ 1. **Update incrementally** - Don't batch updates, add as you learn
194
+ 2. **Be specific** - Use clear, unambiguous entity IDs
195
+ 3. **Include context** - Add descriptions that explain purpose
196
+ 4. **Cross-reference** - Link to ADRs and documentation
197
+ 5. **Keep current** - Remove obsolete relations during refactoring
198
+
199
+ ## Anti-Patterns
200
+
201
+ | Avoid | Instead |
202
+ |-------|---------|
203
+ | Vague IDs: "the auth thing" | Specific: "auth-service" |
204
+ | Missing relations | Map all connections |
205
+ | Stale data | Update during refactors |
206
+ | Over-documenting | Focus on important relationships |
207
+ | Isolated updates | Share with team |
208
+
209
+ ## Integration
210
+
211
+ - **After** implementing features → Update graph
212
+ - **Before** major refactors → Query affected components
213
+ - **During** architecture reviews → Visualize relationships
214
+ - **When** onboarding → Use as component map