oneie 3.6.25 → 3.6.27

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 (55) hide show
  1. package/.claude/agents/TROUBLESHOOTING.md +530 -0
  2. package/.claude/agents/agent-builder.md +226 -198
  3. package/.claude/agents/agent-claude.md +645 -0
  4. package/.claude/agents/agent-designer.md +166 -11
  5. package/.claude/agents/agent-director.md +109 -41
  6. package/.claude/agents/agent-frontend.md +314 -27
  7. package/.claude/agents/agent-quality.md +377 -0
  8. package/.claude/commands/chat.md +504 -0
  9. package/.claude/commands/create.md +134 -18
  10. package/.claude/commands/fast.md +531 -0
  11. package/.claude/commands/one.md +12 -85
  12. package/.claude/commands/optimize.md +74 -0
  13. package/.claude/commands/plan.md +420 -373
  14. package/.claude/commands/review.md +99 -0
  15. package/.claude/commands/test.md +197 -0
  16. package/.claude/commands/validate.md +140 -0
  17. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  18. package/.claude/hooks/auto-format.sh +106 -0
  19. package/.claude/hooks/formatting.py +187 -0
  20. package/.claude/hooks/ontology-validation.py +255 -0
  21. package/.claude/hooks/validate-imports.py +182 -0
  22. package/.claude/hooks/validate-ontology.py +140 -0
  23. package/CLAUDE.md +105 -0
  24. package/dist/commands/agent.d.ts +18 -0
  25. package/dist/commands/agent.d.ts.map +1 -0
  26. package/dist/commands/agent.js +271 -0
  27. package/dist/commands/agent.js.map +1 -0
  28. package/dist/commands/init.js +1 -1
  29. package/dist/commands/init.js.map +1 -1
  30. package/dist/index.js +20 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/lib/agent-detection.d.ts +19 -0
  33. package/dist/lib/agent-detection.d.ts.map +1 -0
  34. package/dist/lib/agent-detection.js +87 -0
  35. package/dist/lib/agent-detection.js.map +1 -0
  36. package/dist/lib/detect.d.ts +45 -0
  37. package/dist/lib/detect.d.ts.map +1 -0
  38. package/dist/lib/detect.js +221 -0
  39. package/dist/lib/detect.js.map +1 -0
  40. package/llms.txt +257 -0
  41. package/one/knowledge/cascading-context-specification.md +1617 -0
  42. package/one/knowledge/claude-code-integration.md +1293 -0
  43. package/one/knowledge/development-commands.md +251 -0
  44. package/one/knowledge/games-english.md +691 -0
  45. package/one/knowledge/games.md +1082 -0
  46. package/one/knowledge/guidelines.md +314 -0
  47. package/one/knowledge/parallel-agents.md +932 -0
  48. package/one/knowledge/performance.md +459 -0
  49. package/one/knowledge/troubleshooting.md +434 -0
  50. package/one/things/plans/dsl-claude-code.md +1011 -0
  51. package/one/things/plans/npx-agent-safety.md +785 -0
  52. package/one/things/plans/npx-agent.md +1089 -0
  53. package/one/things/plans/remove-backend-development-from-agents.md +1331 -0
  54. package/package.json +3 -2
  55. package/.claude/agents/AUDIT-agent-ops-alignment.md +0 -379
@@ -0,0 +1,74 @@
1
+ # /optimize - Performance analysis with 6-dimension ontology compliance
2
+
3
+ Analyze `$ARGUMENTS` for performance and 6-dimension ontology compliance.
4
+
5
+ ## Analysis Checklist
6
+
7
+ ### 1. Query Optimization
8
+ - **Database Indexes**: Check if queries use proper indexes (by_type, by_groupId, etc.)
9
+ - **N+1 Prevention**: Identify potential N+1 query patterns
10
+ - **Batch Operations**: Recommend batching when fetching multiple entities
11
+ - **Query Complexity**: Measure query depth and suggest optimizations
12
+
13
+ ### 2. Entity Mapping Validation
14
+ - **Dimension Assignment**: Verify all entities map to correct dimensions:
15
+ - Groups: Multi-tenant containers
16
+ - People: Authorization via role metadata
17
+ - Things: Entity types from 66+ defined types
18
+ - Connections: Relationships from 25+ defined types
19
+ - Events: Actions from 67+ defined event types
20
+ - Knowledge: Embeddings and labels
21
+ - **Schema Compliance**: Ensure properties follow schema patterns
22
+
23
+ ### 3. Event Logging Coverage
24
+ - **Critical Actions**: Every mutation should log events
25
+ - **Audit Trail**: Verify actor, target, timestamp, metadata
26
+ - **Event Types**: Use correct event types from ontology
27
+ - **Performance**: Batch event logging when possible
28
+
29
+ ### 4. Multi-tenant Scoping
30
+ - **GroupId Filtering**: All queries MUST filter by groupId
31
+ - **Data Isolation**: Verify no cross-group data leakage
32
+ - **Hierarchical Access**: Check parent group access patterns
33
+ - **Index Usage**: Ensure groupId indexes are used
34
+
35
+ ### 5. Frontend Performance
36
+ - **Loading States**: Check for proper loading/error states
37
+ - **Client Hydration**: Verify `client:load` directives
38
+ - **Bundle Size**: Analyze component imports
39
+ - **Caching Strategy**: Review query caching patterns
40
+
41
+ ## Output Format
42
+
43
+ Provide recommendations in this format:
44
+
45
+ ```
46
+ PERFORMANCE ANALYSIS: [file/component name]
47
+
48
+ Critical Issues (must fix):
49
+ - [Issue with specific line numbers and impact]
50
+
51
+ Warnings (should fix):
52
+ - [Issue with explanation]
53
+
54
+ Optimizations (nice to have):
55
+ - [Suggestion with expected benefit]
56
+
57
+ Ontology Compliance:
58
+ ✓ Groups: [status]
59
+ ✓ People: [status]
60
+ ✓ Things: [status]
61
+ ✓ Connections: [status]
62
+ ✓ Events: [status]
63
+ ✓ Knowledge: [status]
64
+
65
+ Estimated Performance Gain: [percentage or metric]
66
+ ```
67
+
68
+ ## Example Usage
69
+
70
+ ```bash
71
+ /optimize backend/convex/queries/entities.ts
72
+ /optimize web/src/components/features/EntityList.tsx
73
+ /optimize backend/convex/mutations/
74
+ ```