oneie 3.6.7 → 3.6.12

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 (168) hide show
  1. package/.claude/agents/agent-backend.md +83 -0
  2. package/.claude/agents/agent-designer.md +97 -0
  3. package/.claude/agents/agent-director.md +118 -7
  4. package/.claude/agents/agent-documenter.md +93 -0
  5. package/.claude/agents/agent-frontend.md +96 -0
  6. package/.claude/agents/agent-ops.md +264 -32
  7. package/.claude/agents/agent-problem-solver.md +166 -0
  8. package/.claude/agents/agent-quality.md +127 -0
  9. package/.claude/commands/build.md +293 -0
  10. package/.claude/commands/cascade.md +231 -127
  11. package/.claude/commands/deploy.md +56 -17
  12. package/.claude/commands/mcp-toggle.md +93 -0
  13. package/.claude/commands/one.md +78 -127
  14. package/.claude/commands/plan.md +394 -80
  15. package/.claude/commands/push.md +75 -14
  16. package/.claude/commands/release.md +89 -25
  17. package/.claude/commands/server.md +2 -0
  18. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  19. package/.claude/hooks/root-cleanup.py +75 -0
  20. package/.claude/skills/INDEX.md +523 -0
  21. package/.claude/skills/REGISTRY.md +529 -0
  22. package/.claude/skills/agent-backend-create-mutation.md +319 -0
  23. package/.claude/skills/agent-designer-create-wireframe.md +341 -0
  24. package/.claude/skills/agent-frontend-create-page.md +413 -0
  25. package/.claude/skills/agents/README.md +238 -0
  26. package/dist/clone-web.js +1 -1
  27. package/dist/clone-web.js.map +1 -1
  28. package/folders.yaml +1 -1
  29. package/one/.obsidian/workspace.json +38 -38
  30. package/one/connections/api/queries-reference.md +842 -0
  31. package/one/connections/api-reference.md +1011 -0
  32. package/one/connections/integration-examples.md +875 -0
  33. package/one/connections/integration-guide.md +869 -0
  34. package/one/connections/integration-phase2.md +736 -0
  35. package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
  36. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
  37. package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
  38. package/one/events/CONNECTIONS_DEMO.md +501 -0
  39. package/one/events/DELIVERABLES.md +432 -0
  40. package/one/events/DEMO-GROUPS-PAGE.md +392 -0
  41. package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
  42. package/one/events/DEMO_COMPONENTS.md +487 -0
  43. package/one/events/DEMO_HOOKS_INDEX.md +334 -0
  44. package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
  45. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
  46. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
  47. package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
  48. package/one/events/DEMO_SETUP.md +476 -0
  49. package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
  50. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
  51. package/one/events/HOOKS-DEMO.md +441 -0
  52. package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
  53. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
  54. package/one/events/QA-CHECKLIST.md +674 -0
  55. package/one/events/QUICK-START-ONTOLOGY.md +408 -0
  56. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
  57. package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
  58. package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
  59. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
  60. package/one/events/TEST-PLAN-INDEX.md +346 -0
  61. package/one/events/TEST-PLAN.md +1417 -0
  62. package/one/events/TESTING-DELIVERY.txt +372 -0
  63. package/one/events/TRANSITIONS-QUICK-START.md +141 -0
  64. package/one/events/TYPESCRIPT_FIXES.md +152 -0
  65. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
  66. package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
  67. package/one/events/VIEW-TRANSITIONS.md +428 -0
  68. package/one/events/backend-integration-tests.md +606 -0
  69. package/one/events/backend-structure-diagram.txt +393 -0
  70. package/one/events/backend-structure-summary.txt +269 -0
  71. package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
  72. package/one/events/convex-analysis-index.md +304 -0
  73. package/one/events/convex-structure-analysis.md +700 -0
  74. package/one/events/design-spec-complete.md +208 -0
  75. package/one/events/ontology-test-examples.md +562 -0
  76. package/one/events/phase1-backend-implementation-complete.md +518 -0
  77. package/one/events/test-dashboard.md +345 -0
  78. package/one/events/test-index.md +361 -0
  79. package/one/events/test-report-ontology.md +582 -0
  80. package/one/events/testing-summary.md +344 -0
  81. package/one/groups/features.md +2878 -0
  82. package/one/groups/strategy copy.md +869 -0
  83. package/one/knowledge/backend-api-reference.md +710 -0
  84. package/one/knowledge/documentation-summary.md +285 -0
  85. package/one/knowledge/lessons-learned.md +294 -4
  86. package/one/knowledge/ontology-visual-guide.md +360 -0
  87. package/one/knowledge/ontology.md +9 -17
  88. package/one/things/demo-accessibility-animations.md +999 -0
  89. package/one/things/demo-components.md +1304 -0
  90. package/one/things/demo-design-summary.md +629 -0
  91. package/one/things/demo-design-system.md +919 -0
  92. package/one/things/demo-page-layouts.md +989 -0
  93. package/one/things/designs/accessibility-audit.md +790 -0
  94. package/one/things/designs/component-specifications.md +757 -0
  95. package/one/things/designs/design-overview.md +318 -0
  96. package/one/things/designs/design-tokens.md +414 -0
  97. package/one/things/designs/wireframes-dashboard.md +653 -0
  98. package/one/things/docs/api-requests.md +923 -0
  99. package/one/things/features/0 All Features.md +2 -0
  100. package/one/things/implementation/backend-guide.md +412 -0
  101. package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
  102. package/one/things/plans/2-sites.md +895 -0
  103. package/one/things/plans/ai-elements.md +1259 -0
  104. package/one/things/plans/ai-integration.md +947 -0
  105. package/one/things/plans/ai-sdk.md +761 -0
  106. package/one/things/plans/app.md +1 -1
  107. package/one/things/plans/architecture-summary.md +283 -0
  108. package/one/things/plans/async-ai-agents.md +215 -0
  109. package/one/things/plans/backend-agnostic-frontend.md +11 -6
  110. package/one/things/plans/backend-cleanup-quickstart.md +346 -0
  111. package/one/things/plans/backend-ontology-conformance.md +416 -0
  112. package/one/things/plans/backend-status.md +541 -0
  113. package/one/things/plans/backend-structure.md +799 -0
  114. package/one/things/plans/backend-target-structure.md +438 -0
  115. package/one/things/plans/backend.md +1133 -0
  116. package/one/things/plans/better-auth-any-backend.md +11 -11
  117. package/one/things/plans/cli-updates-required.md +280 -0
  118. package/one/things/plans/complete-step-by-step.md +1302 -0
  119. package/one/things/plans/convex-agents.md +1005 -0
  120. package/one/things/plans/deployment-architecture.md +426 -0
  121. package/one/things/plans/development-plan.md +1220 -0
  122. package/one/things/plans/effect.md +808 -48
  123. package/one/things/plans/integrate-frontend-and-backend.md +579 -0
  124. package/one/things/plans/mcp-clear-context-prompt.md +60 -0
  125. package/one/things/plans/mcp-simple.md +228 -0
  126. package/one/things/plans/one.md +8 -7
  127. package/one/things/plans/ontology-6-dimensions.md +20 -14
  128. package/one/things/plans/quick-wins.md +1273 -0
  129. package/one/things/plans/readme-backend-cleanup.md +361 -0
  130. package/one/things/plans/separate-demo.md +830 -0
  131. package/one/things/plans/separate.md +3 -3
  132. package/one/things/plans/sequence.md +1897 -0
  133. package/one/things/plans/sync-checklist.md +321 -0
  134. package/one/things/plans/unified-implementation-plan.md +3 -3
  135. package/one/things/plans/update-demos.md +513 -0
  136. package/package.json +1 -1
  137. package/.claude/agents/backend-specialist.md +0 -169
  138. package/.claude/agents/designer.md +0 -216
  139. package/.claude/agents/frontend-specialist.md +0 -236
  140. package/.claude/commands/done.md +0 -35
  141. package/.claude/commands/infer.md +0 -138
  142. package/.claude/commands/next.md +0 -53
  143. package/.claude/commands/one copy.md +0 -565
  144. package/.claude/commands/one-template.md +0 -106
  145. package/.claude/commands/one-v1.md +0 -609
  146. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  147. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  148. package/one/groups/nine-padel-customers.md +0 -138
  149. package/one/groups/nine-padel-data-structure.md +0 -167
  150. package/one/groups/nine-padel-ontology-specification.md +0 -359
  151. package/one/groups/nine-padel-ontology.md +0 -143
  152. package/one/groups/nine-padel-strategy.md +0 -234
  153. package/one/groups/nine-padel.md +0 -211
  154. package/one/groups/nine-padle-contents.baked.md +0 -1252
  155. package/one/groups/nine-padle-contents.md +0 -6
  156. package/one/things/features/1-1-agent-prompts/design.md +0 -470
  157. package/one/things/features/1-1-agent-prompts/tests.md +0 -264
  158. package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
  159. package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
  160. package/one/things/features/1-3-event-coordination/design.md +0 -544
  161. package/one/things/features/1-3-event-coordination/tests.md +0 -223
  162. package/one/things/features/1-4-knowledge-management/design.md +0 -609
  163. package/one/things/features/1-4-knowledge-management/tests.md +0 -195
  164. package/one/things/features/1-5-quality-loops/design.md +0 -797
  165. package/one/things/features/1-5-quality-loops/tests.md +0 -212
  166. package/one/things/features/1-6-numbering-structure/design.md +0 -610
  167. package/one/things/features/1-6-numbering-structure/tests.md +0 -213
  168. package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
@@ -0,0 +1,529 @@
1
+ # Agent Skills Registry
2
+
3
+ **Last Updated:** 2025-10-27
4
+ **Status:** Foundation Phase
5
+ **Version:** 1.0.0
6
+
7
+ Complete registry of all available agent skills for the ONE Platform.
8
+
9
+ ---
10
+
11
+ ## Overview
12
+
13
+ Agent skills are modular capabilities that extend Claude's functionality during agent execution. This registry documents all available skills organized by agent.
14
+
15
+ ### How Skills Work
16
+
17
+ 1. **Discovery**: Skills are discovered from `.claude/skills/agent-*.md` files
18
+ 2. **Metadata Loading**: Skill name and description load immediately (~50 tokens)
19
+ 3. **On-Demand Loading**: Detailed instructions load when skill is triggered (~500-2000 tokens)
20
+ 4. **Auto-Invocation**: Claude uses skills automatically when relevant to the task
21
+
22
+ ### Skill File Format
23
+
24
+ ```yaml
25
+ ---
26
+ name: agent-name:skill-name
27
+ description: Brief description (max 1024 characters)
28
+ ---
29
+
30
+ # Skill Title
31
+
32
+ ## Purpose
33
+ What problem does this solve?
34
+
35
+ ## Instructions
36
+ Step-by-step guidance.
37
+
38
+ ## Examples
39
+ Concrete code examples.
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Agent Skills by Category
45
+
46
+ ### Backend Agent Skills
47
+
48
+ **Agent:** `agent-backend`
49
+ **Purpose:** Implement Convex backend infrastructure for 6-dimension ontology
50
+ **Tools:** Read, Write, Edit, Bash, Grep, Glob
51
+ **Context Budget:** 3000 tokens
52
+
53
+ #### 1. `agent-backend:create-mutation`
54
+ - **Description:** Generate Convex mutations with 6-dimension validation, event logging, and org scoping
55
+ - **File:** `.claude/skills/agent-backend-create-mutation.md`
56
+ - **Use Cases:**
57
+ - Implementing write operations
58
+ - Creating CRUD mutations
59
+ - Building state-change operations
60
+ - Adding event logging
61
+ - **Key Features:**
62
+ - Authentication validation
63
+ - Organization quota checking
64
+ - Event logging for audit trail
65
+ - Dimension 3, 4, 5 operations (things, connections, events)
66
+ - Multi-tenant isolation
67
+ - **Token Cost:** ~500 tokens (instructions) + ~2000 tokens (examples)
68
+
69
+ #### 2. `agent-backend:create-query`
70
+ - **Description:** Generate Convex queries with filtering, pagination, and org scoping
71
+ - **File:** (referenced, needs creation)
72
+ - **Use Cases:**
73
+ - Implementing read operations
74
+ - Building list queries
75
+ - Filtering and pagination
76
+ - Organization-scoped queries
77
+ - **Key Features:**
78
+ - Index optimization
79
+ - Organization filtering
80
+ - Pagination support
81
+ - Type-safe arguments
82
+ - Efficient queries
83
+
84
+ #### 3. `agent-backend:design-schema`
85
+ - **Description:** Design Convex schema implementing the 6-dimension ontology
86
+ - **File:** (referenced, needs creation)
87
+ - **Use Cases:**
88
+ - Creating new tables
89
+ - Designing entity types
90
+ - Planning indexes
91
+ - Multi-tenant scoping
92
+ - **Key Features:**
93
+ - 6-dimension mapping
94
+ - Index strategy
95
+ - Quota tracking
96
+ - Event logging
97
+ - Organization isolation
98
+
99
+ ---
100
+
101
+ ### Frontend Agent Skills
102
+
103
+ **Agent:** `agent-frontend`
104
+ **Purpose:** Build Astro 5 + React 19 UIs that render 6-dimension ontology
105
+ **Tools:** Read, Write, Edit, Bash, Grep, Glob
106
+ **Context Budget:** 3000 tokens
107
+
108
+ #### 1. `agent-frontend:create-page`
109
+ - **Description:** Generate Astro pages with SSR, React islands, Convex queries, and role-based rendering
110
+ - **File:** `.claude/skills/agent-frontend-create-page.md`
111
+ - **Use Cases:**
112
+ - Creating new public pages
113
+ - Building list pages
114
+ - Implementing detail pages
115
+ - Organization-scoped pages
116
+ - Role-based access control
117
+ - **Key Features:**
118
+ - Server-side rendering (SSR)
119
+ - Strategic React islands
120
+ - Convex data fetching at build time
121
+ - Organization scoping
122
+ - Role-based rendering
123
+ - Image optimization
124
+ - 90+ Lighthouse score optimization
125
+ - **Token Cost:** ~500 tokens (instructions) + ~2000 tokens (examples)
126
+
127
+ #### 2. `agent-frontend:create-component`
128
+ - **Description:** Generate React components with Convex hooks, shadcn/ui, and proper state management
129
+ - **File:** (referenced, needs creation)
130
+ - **Use Cases:**
131
+ - Building interactive components
132
+ - Creating forms with validation
133
+ - Building real-time features
134
+ - Entity display components
135
+ - **Key Features:**
136
+ - Convex useQuery/useMutation hooks
137
+ - shadcn/ui component composition
138
+ - React Hook Form integration
139
+ - Zod validation
140
+ - Loading/error states
141
+ - Accessibility compliance
142
+
143
+ #### 3. `agent-frontend:optimize-performance`
144
+ - **Description:** Optimize Lighthouse scores with code splitting, image optimization, and lazy loading
145
+ - **File:** (referenced, needs creation)
146
+ - **Use Cases:**
147
+ - Improving Core Web Vitals
148
+ - Reducing JavaScript bundle
149
+ - Optimizing images
150
+ - Implementing lazy loading
151
+ - **Key Features:**
152
+ - Core Web Vitals targets
153
+ - Code splitting strategies
154
+ - Image optimization
155
+ - CSS critical path
156
+ - Performance budgeting
157
+
158
+ ---
159
+
160
+ ### Designer Agent Skills
161
+
162
+ **Agent:** `agent-designer`
163
+ **Purpose:** Create test-driven wireframes, components specs, and design tokens
164
+ **Tools:** Read, Write, Edit, Bash, Grep, Glob
165
+ **Context Budget:** 2000 tokens
166
+
167
+ #### 1. `agent-designer:create-wireframe`
168
+ - **Description:** Generate wireframes from feature specs and tests that enable acceptance criteria to pass
169
+ - **File:** `.claude/skills/agent-designer-create-wireframe.md`
170
+ - **Use Cases:**
171
+ - Converting tests to visual designs
172
+ - Planning feature interfaces
173
+ - Specifying component structure
174
+ - Creating layout specifications
175
+ - Designing for accessibility
176
+ - **Key Features:**
177
+ - Test-driven design approach
178
+ - Acceptance criteria mapping
179
+ - All states specified (default, loading, error, success)
180
+ - Responsive breakpoints (320px, 768px, 1024px, 1440px)
181
+ - WCAG 2.1 AA validation
182
+ - Component hierarchy
183
+ - No design ambiguity
184
+ - **Token Cost:** ~500 tokens (instructions) + ~1500 tokens (examples)
185
+
186
+ #### 2. `agent-designer:define-components`
187
+ - **Description:** Define React component specifications with props, state, and implementation guidance
188
+ - **File:** (referenced, needs creation)
189
+ - **Use Cases:**
190
+ - Creating component APIs
191
+ - Specifying props and types
192
+ - Planning state management
193
+ - Writing implementation guides
194
+ - **Key Features:**
195
+ - TypeScript props interfaces
196
+ - State management patterns
197
+ - shadcn/ui component usage
198
+ - Loading/error states
199
+ - Example implementations
200
+
201
+ #### 3. `agent-designer:set-design-tokens`
202
+ - **Description:** Generate design tokens from organization brand guidelines with WCAG validation
203
+ - **File:** (referenced, needs creation)
204
+ - **Use Cases:**
205
+ - Creating design token systems
206
+ - Implementing brand guidelines
207
+ - Generating Tailwind v4 themes
208
+ - Validating color contrast
209
+ - **Key Features:**
210
+ - Brand color extraction
211
+ - WCAG AA contrast validation
212
+ - Tailwind v4 @theme format
213
+ - Dark mode support
214
+ - Spacing/typography scales
215
+
216
+ ---
217
+
218
+ ### Quality Agent Skills
219
+
220
+ **Agent:** `agent-quality`
221
+ **Purpose:** Define tests, validate implementations, ensure ontology alignment
222
+ **Tools:** Read, Write, Edit, Bash, Grep, Glob
223
+ **Skills:** (to be defined)
224
+
225
+ ---
226
+
227
+ ### Director Agent Skills
228
+
229
+ **Agent:** `agent-director`
230
+ **Purpose:** Orchestrate workflow, coordinate agents, manage execution
231
+ **Tools:** Read, Write, Edit, Bash, Grep, Glob
232
+ **Skills:** (to be defined)
233
+
234
+ ---
235
+
236
+ ### Documentation Agent Skills
237
+
238
+ **Agent:** `agent-documenter`
239
+ **Purpose:** Write documentation and capture lessons learned
240
+ **Tools:** Read, Write, Edit, Bash, Grep, Glob
241
+ **Skills:** (to be defined)
242
+
243
+ ---
244
+
245
+ ### Operations Agent Skills
246
+
247
+ **Agent:** `agent-ops`
248
+ **Purpose:** DevOps, CI/CD, infrastructure, deployments
249
+ **Tools:** Read, Write, Edit, Bash, Grep, Glob, SlashCommand, WebFetch
250
+ **Skills:** (to be defined)
251
+
252
+ ---
253
+
254
+ ### Problem-Solver Agent Skills
255
+
256
+ **Agent:** `agent-problem-solver`
257
+ **Purpose:** Analyze failures, identify root causes, propose solutions
258
+ **Tools:** Read, Write, Edit, Bash, Grep, Glob
259
+ **Skills:** (to be defined)
260
+
261
+ ---
262
+
263
+ ### Other Agent Skills
264
+
265
+ Additional agents with skills to be defined:
266
+ - `agent-builder` - Feature implementation coordination
267
+ - `agent-clean` - Code quality and refactoring
268
+ - `agent-clone` - Data migration and AI clones
269
+ - `agent-integrator` - Protocol integrations
270
+ - `agent-lawyer` - Legal and compliance
271
+ - `agent-onboard` - Website generation
272
+ - `agent-sales` - Lead qualification and demos
273
+
274
+ ---
275
+
276
+ ## Skill Discovery and Loading
277
+
278
+ ### Progressive Token Loading
279
+
280
+ ```
281
+ Skill Metadata (Always Loaded)
282
+ ├── name: "agent-backend:create-mutation"
283
+ ├── description: "Generate Convex mutations..."
284
+ └── Cost: ~50 tokens
285
+
286
+ ↓ [Skill Triggered]
287
+
288
+ Skill Instructions (Loaded on Demand)
289
+ ├── Purpose section
290
+ ├── Instructions section
291
+ ├── Patterns section
292
+ └── Cost: ~500 tokens
293
+
294
+ ↓ [Examples Needed]
295
+
296
+ Skill Examples (Loaded if Needed)
297
+ ├── Code examples
298
+ ├── Walkthroughs
299
+ ├── Related skills
300
+ └── Cost: ~1500 tokens
301
+ ```
302
+
303
+ ### Token Budget Management
304
+
305
+ Each agent has a context budget for skills:
306
+
307
+ | Agent | Budget | Current Use | Available |
308
+ |-------|--------|-------------|-----------|
309
+ | agent-backend | 3000 | 1050 | 1950 |
310
+ | agent-frontend | 3000 | 1050 | 1950 |
311
+ | agent-designer | 2000 | 700 | 1300 |
312
+ | agent-quality | 2500 | 0 | 2500 |
313
+ | agent-director | 3500 | 0 | 3500 |
314
+ | agent-ops | 3500 | 0 | 3500 |
315
+
316
+ ### Auto-Discovery Rules
317
+
318
+ Skills are auto-discovered when:
319
+
320
+ 1. File exists: `.claude/skills/agent-{name}-{skill-name}.md`
321
+ 2. YAML frontmatter with `name` and `description`
322
+ 3. Referenced in agent's `skills:` field in frontmatter
323
+ 4. Agent is invoked via Task tool with `subagent_type`
324
+
325
+ ---
326
+
327
+ ## Creating New Skills
328
+
329
+ ### Step 1: Create Skill File
330
+
331
+ ```bash
332
+ cat > .claude/skills/agent-{name}-{skill-name}.md << 'EOF'
333
+ ---
334
+ name: agent-name:skill-name
335
+ description: What this skill does (max 1024 chars)
336
+ ---
337
+
338
+ # Skill Title
339
+
340
+ ## Purpose
341
+ What problem does this solve?
342
+
343
+ ## Instructions
344
+ Step-by-step guidance.
345
+
346
+ ## Examples
347
+ Concrete code examples.
348
+
349
+ ## Related Skills
350
+ Links to complementary skills.
351
+
352
+ ## Version History
353
+ - **1.0.0** (2025-10-27): Initial implementation
354
+ EOF
355
+ ```
356
+
357
+ ### Step 2: Add to Agent Frontmatter
358
+
359
+ ```yaml
360
+ ---
361
+ name: agent-name
362
+ description: Agent description
363
+ tools: Read, Write, Edit
364
+ skills: agent-name:skill-1, agent-name:skill-2, agent-name:skill-3
365
+ ---
366
+ ```
367
+
368
+ ### Step 3: Test Discovery
369
+
370
+ Skills will be auto-discovered when agent is invoked.
371
+
372
+ ---
373
+
374
+ ## Best Practices
375
+
376
+ ### 1. Keep Skills Focused
377
+ - One skill = one clear task
378
+ - Examples: "create-mutation", "validate-query", "optimize-index"
379
+
380
+ ### 2. Include Examples
381
+ - Concrete code samples (before/after)
382
+ - Real-world use cases
383
+ - Variations and edge cases
384
+
385
+ ### 3. Document Dependencies
386
+ - Link to related skills
387
+ - Mention prerequisites
388
+ - Note version compatibility
389
+
390
+ ### 4. Version Your Skills
391
+ - Track changes in version history
392
+ - Update when requirements change
393
+ - Maintain backwards compatibility
394
+
395
+ ### 5. Progressive Detail
396
+ - Metadata (name, description) ~100 tokens
397
+ - Instructions ~500 tokens
398
+ - Examples/resources ~2000 tokens (on-demand)
399
+
400
+ ### 6. Multi-Tenant Awareness
401
+ - Include groupId/organizationId in examples
402
+ - Show organization scoping
403
+ - Demonstrate isolation boundaries
404
+
405
+ ### 7. 6-Dimension Mapping
406
+ - Every skill should reference applicable dimensions
407
+ - Show how skill maps to ontology
408
+ - Include entity types, connection types, event types
409
+
410
+ ---
411
+
412
+ ## Integration with Agent Lifecycle
413
+
414
+ ```
415
+ User Request
416
+ ↓
417
+ Invoke Agent via Task Tool
418
+ ↓
419
+ Agent Initialized
420
+ ↓
421
+ Skills Discovered
422
+ │
423
+ ├─→ Metadata Loaded (~50 tokens)
424
+ │
425
+ └─→ [Agent works on task]
426
+ ↓
427
+ Skill Needed?
428
+ ↓
429
+ Instructions Loaded (~500 tokens)
430
+ ↓
431
+ Example Needed?
432
+ ↓
433
+ Examples Loaded (~1500 tokens)
434
+ ↓
435
+ Agent Executes Skill
436
+ ↓
437
+ [Task Complete]
438
+ ```
439
+
440
+ ---
441
+
442
+ ## Troubleshooting
443
+
444
+ ### Skill Not Found
445
+ ```
446
+ ❌ Symptom: "Skill not found"
447
+ ✅ Solution:
448
+ 1. Check directory: `.claude/skills/agent-{name}-{skill}.md`
449
+ 2. Verify YAML frontmatter with `name` field
450
+ 3. Check skill is referenced in agent's `skills:` field
451
+ ```
452
+
453
+ ### Token Overload
454
+ ```
455
+ ❌ Symptom: "Agent hitting token limits"
456
+ ✅ Solution:
457
+ 1. Reduce instruction size (keep under 500 tokens)
458
+ 2. Move examples to knowledge base
459
+ 3. Link to detailed docs instead of including inline
460
+ 4. Use summary format in instructions
461
+ ```
462
+
463
+ ### Outdated Skill
464
+ ```
465
+ ❌ Symptom: "Skill produces outdated code"
466
+ ✅ Solution:
467
+ 1. Update version in "## Version History"
468
+ 2. Test with actual agent
469
+ 3. Document breaking changes
470
+ 4. Add migration guide if needed
471
+ ```
472
+
473
+ ---
474
+
475
+ ## Performance Targets
476
+
477
+ ### Metadata Load Time
478
+ - **Target:** < 100ms
479
+ - **Budget:** ~50 tokens
480
+ - **Caching:** Session-level
481
+
482
+ ### Skill Invocation Time
483
+ - **Target:** < 500ms
484
+ - **Budget:** ~500 tokens (instructions)
485
+ - **Caching:** Session-level
486
+
487
+ ### Example Loading Time
488
+ - **Target:** < 1000ms
489
+ - **Budget:** ~1500 tokens
490
+ - **Caching:** Request-level
491
+
492
+ ---
493
+
494
+ ## Related Documentation
495
+
496
+ - [Claude Code Agent System](./agents/README.md)
497
+ - [Agent Skills Overview](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview)
498
+ - [6-Dimension Ontology](../one/knowledge/ontology.md)
499
+ - [Backend Agent](./agents/agent-backend.md)
500
+ - [Frontend Agent](./agents/agent-frontend.md)
501
+ - [Designer Agent](./agents/agent-designer.md)
502
+
503
+ ---
504
+
505
+ ## Next Steps
506
+
507
+ ### Immediate (This Phase)
508
+ - [x] Create foundational skills for backend, frontend, designer
509
+ - [x] Add skills to agent frontmatter
510
+ - [ ] Create skills for quality, director, ops agents
511
+ - [ ] Document skill examples comprehensively
512
+
513
+ ### Short-Term (Next Phase)
514
+ - [ ] Create skills for remaining agents (builder, clean, clone, etc.)
515
+ - [ ] Build skill discovery UI
516
+ - [ ] Implement skill caching optimization
517
+ - [ ] Create skill testing framework
518
+
519
+ ### Long-Term (Future)
520
+ - [ ] Skill marketplace for sharing
521
+ - [ ] Community-contributed skills
522
+ - [ ] Version management system
523
+ - [ ] AI-generated skill optimization
524
+
525
+ ---
526
+
527
+ **Status:** Foundation Phase Complete
528
+ **Maintained By:** Engineering Team
529
+ **Last Review:** 2025-10-27