oneie 3.6.5 → 3.6.7

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 (98) hide show
  1. package/.claude/commands/onboard.md +179 -0
  2. package/.claude/commands/one copy.md +565 -0
  3. package/.claude/commands/one.md +125 -487
  4. package/.claude/commands/server.md +333 -0
  5. package/.claude/hooks/README-knowledge-hooks.md +265 -0
  6. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  7. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  8. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  9. package/.claude/hooks/check-filenames.py +40 -0
  10. package/.claude/hooks/clean-post.py +301 -0
  11. package/.claude/hooks/clean-pre.py +308 -0
  12. package/.claude/hooks/done.py +175 -0
  13. package/.claude/hooks/format-hook.sh +75 -0
  14. package/.claude/hooks/hook-logger.sh +59 -0
  15. package/.claude/hooks/knowledge-post.py +251 -0
  16. package/.claude/hooks/knowledge-pre.py +150 -0
  17. package/.claude/hooks/notification-hook.sh +112 -0
  18. package/.claude/hooks/security-hook.sh +157 -0
  19. package/.claude/hooks/tag-all-docs.py +338 -0
  20. package/.claude/hooks/todo.py +298 -0
  21. package/.claude/hooks/validate-ontology-structure.py +455 -0
  22. package/.claude/skills/astro/add-content-collection.md +30 -0
  23. package/.claude/skills/astro/check-build.md +29 -0
  24. package/.claude/skills/astro/create-component.md +29 -0
  25. package/.claude/skills/astro/create-page.md +30 -0
  26. package/.claude/skills/astro/optimize-performance.md +21 -0
  27. package/.claude/skills/convex/check-deployment.md +46 -0
  28. package/.claude/skills/convex/create-mutation.md +405 -0
  29. package/.claude/skills/convex/create-query.md +52 -0
  30. package/.claude/skills/convex/read-schema.md +373 -0
  31. package/.claude/skills/convex/test-function.md +50 -0
  32. package/.claude/skills/deployment/check-deployment-health.md +20 -0
  33. package/.claude/skills/deployment/create-release.md +21 -0
  34. package/.claude/skills/deployment/deploy-cloudflare.md +31 -0
  35. package/.claude/skills/deployment/deploy-convex.md +30 -0
  36. package/.claude/skills/deployment/sync-repositories.md +19 -0
  37. package/.claude/skills/design/check-accessibility.md +21 -0
  38. package/.claude/skills/design/create-component-spec.md +27 -0
  39. package/.claude/skills/design/generate-design-tokens.md +24 -0
  40. package/.claude/skills/design/generate-wireframe.md +30 -0
  41. package/.claude/skills/documentation/create-migration-guide.md +20 -0
  42. package/.claude/skills/documentation/generate-api-docs.md +27 -0
  43. package/.claude/skills/documentation/generate-readme.md +22 -0
  44. package/.claude/skills/documentation/update-knowledge.md +20 -0
  45. package/.claude/skills/integration/connect-external-system.md +21 -0
  46. package/.claude/skills/integration/implement-a2a.md +20 -0
  47. package/.claude/skills/integration/implement-acp.md +20 -0
  48. package/.claude/skills/integration/verify-integration.md +20 -0
  49. package/.claude/skills/ontology/README.md +255 -0
  50. package/.claude/skills/ontology/check-dimension.md +307 -0
  51. package/.claude/skills/ontology/generate-entity-type.md +339 -0
  52. package/.claude/skills/ontology/validate-schema.md +229 -0
  53. package/.claude/skills/ontology/verify-relationships.md +310 -0
  54. package/.claude/skills/problem-solving/analyze-test-failure.md +21 -0
  55. package/.claude/skills/problem-solving/identify-root-cause.md +20 -0
  56. package/.claude/skills/problem-solving/propose-solution.md +29 -0
  57. package/.claude/skills/problem-solving/verify-fix.md +21 -0
  58. package/.claude/skills/sales/generate-demo-script.md +21 -0
  59. package/.claude/skills/sales/qualify-lead.md +30 -0
  60. package/.claude/skills/sales/track-trial.md +20 -0
  61. package/.claude/skills/sales/verify-kyc.md +20 -0
  62. package/.claude/skills/testing/analyze-coverage.md +24 -0
  63. package/.claude/skills/testing/generate-tests.md +24 -0
  64. package/.claude/skills/testing/run-tests.md +27 -0
  65. package/.claude/skills/testing/validate-e2e.md +25 -0
  66. package/.mcp.json +30 -3
  67. package/dist/commands/init.d.ts.map +1 -1
  68. package/dist/commands/init.js +13 -6
  69. package/dist/commands/init.js.map +1 -1
  70. package/dist/utils/launch-claude.d.ts +3 -2
  71. package/dist/utils/launch-claude.d.ts.map +1 -1
  72. package/dist/utils/launch-claude.js +64 -29
  73. package/dist/utils/launch-claude.js.map +1 -1
  74. package/folders.yaml +1 -1
  75. package/one/.obsidian/workspace.json +22 -22
  76. package/one/events/CREATE-WEBSITE.md +442 -0
  77. package/one/events/CUSTOM-DOMAIN.md +357 -0
  78. package/one/events/DEPLOYMENT copy.md +426 -0
  79. package/one/events/ECOMMERCE-BEFORE-AFTER.md +251 -0
  80. package/one/events/ECOMMERCE-ENHANCEMENTS.md +576 -0
  81. package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +421 -0
  82. package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +196 -0
  83. package/one/events/ECOMMERCE-SETUP-SUMMARY.md +396 -0
  84. package/one/events/INSTALLATION_FOLDERS.md +516 -0
  85. package/one/events/INSTALLATION_FOLDERS_FILES.md +205 -0
  86. package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +419 -0
  87. package/one/events/LICENSE.md +89 -0
  88. package/one/events/MCP-CONFIGURATION.md +336 -0
  89. package/one/events/MCP-SETUP-COMPLETE.md +205 -0
  90. package/one/events/NODE-UPGRADE.md +111 -0
  91. package/one/events/PACKAGE-STRUCTURE.md +310 -0
  92. package/one/events/PLAYBOOK-SETUP-SUMMARY.md +331 -0
  93. package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +567 -0
  94. package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +262 -0
  95. package/one/events/STRIPE-INTEGRATION.md +414 -0
  96. package/one/events/STRIPE-SETUP-GUIDE.md +462 -0
  97. package/one/events/TRANSPARENCY-FIXES.md +275 -0
  98. package/package.json +4 -2
@@ -0,0 +1,22 @@
1
+ # Generate README
2
+
3
+ **Category:** documentation
4
+ **Version:** 1.0.0
5
+ **Used By:** agent-documenter
6
+
7
+ ## Purpose
8
+
9
+ Creates comprehensive README from code.
10
+
11
+ ## Sections
12
+
13
+ - Project overview
14
+ - Installation
15
+ - Usage examples
16
+ - API reference
17
+ - Contributing
18
+ - License
19
+
20
+ ## Version History
21
+
22
+ - **1.0.0** (2025-10-18): Initial implementation
@@ -0,0 +1,20 @@
1
+ # Update Knowledge Dimension
2
+
3
+ **Category:** documentation
4
+ **Version:** 1.0.0
5
+ **Used By:** agent-documenter
6
+
7
+ ## Purpose
8
+
9
+ Updates knowledge docs after feature completion.
10
+
11
+ ## Updates
12
+
13
+ - Capture lessons learned
14
+ - Document patterns used
15
+ - Add examples
16
+ - Update troubleshooting
17
+
18
+ ## Version History
19
+
20
+ - **1.0.0** (2025-10-18): Initial implementation
@@ -0,0 +1,21 @@
1
+ # Connect External System
2
+
3
+ **Category:** integration
4
+ **Version:** 1.0.0
5
+ **Used By:** agent-integrator
6
+
7
+ ## Purpose
8
+
9
+ Connects external API or service.
10
+
11
+ ## Steps
12
+
13
+ 1. Parse API spec
14
+ 2. Generate client code
15
+ 3. Add authentication
16
+ 4. Handle errors
17
+ 5. Test integration
18
+
19
+ ## Version History
20
+
21
+ - **1.0.0** (2025-10-18): Initial implementation
@@ -0,0 +1,20 @@
1
+ # Implement Agent-to-Agent Protocol
2
+
3
+ **Category:** integration
4
+ **Version:** 1.0.0
5
+ **Used By:** agent-integrator
6
+
7
+ ## Purpose
8
+
9
+ Implements A2A protocol for agent communication.
10
+
11
+ ## Components
12
+
13
+ - Agent registry
14
+ - Message routing
15
+ - Task delegation
16
+ - Result aggregation
17
+
18
+ ## Version History
19
+
20
+ - **1.0.0** (2025-10-18): Initial implementation
@@ -0,0 +1,20 @@
1
+ # Implement Agent Communication Protocol
2
+
3
+ **Category:** integration
4
+ **Version:** 1.0.0
5
+ **Used By:** agent-integrator
6
+
7
+ ## Purpose
8
+
9
+ Implements ACP for standardized agent communication.
10
+
11
+ ## Features
12
+
13
+ - Message formatting
14
+ - Protocol versioning
15
+ - Error handling
16
+ - Async communication
17
+
18
+ ## Version History
19
+
20
+ - **1.0.0** (2025-10-18): Initial implementation
@@ -0,0 +1,20 @@
1
+ # Verify Integration
2
+
3
+ **Category:** integration
4
+ **Version:** 1.0.0
5
+ **Used By:** agent-quality, agent-integrator
6
+
7
+ ## Purpose
8
+
9
+ Tests integration health.
10
+
11
+ ## Checks
12
+
13
+ - API connectivity
14
+ - Authentication works
15
+ - Data flows correctly
16
+ - Error handling robust
17
+
18
+ ## Version History
19
+
20
+ - **1.0.0** (2025-10-18): Initial implementation
@@ -0,0 +1,255 @@
1
+ # Ontology Skills
2
+
3
+ **Category:** Foundational Skills
4
+ **Version:** 1.0.0
5
+ **Created:** 2025-10-18
6
+
7
+ ## Overview
8
+
9
+ Ontology skills validate, generate, and verify features against the ONE Platform 6-dimension ontology. These are foundational skills used by all agents to ensure ontological compliance.
10
+
11
+ ## The 6 Dimensions
12
+
13
+ 1. **Groups** - Organizational scope and multi-tenancy
14
+ 2. **People** - Authorization and governance
15
+ 3. **Things** - All entities (users, content, products, etc.)
16
+ 4. **Connections** - Relationships between entities
17
+ 5. **Events** - Immutable action log and audit trail
18
+ 6. **Knowledge** - Labels, embeddings, and semantic search
19
+
20
+ ## Skills in This Category
21
+
22
+ ### 1. validate-schema.md
23
+ **Validates Convex schema against 6-dimension ontology**
24
+
25
+ Used when:
26
+ - Creating or modifying database schema
27
+ - Adding new tables or fields
28
+ - Ensuring ontology compliance
29
+
30
+ Used by: `agent-backend`, `agent-quality`, `agent-director`, `agent-builder`
31
+
32
+ ### 2. check-dimension.md
33
+ **Analyzes feature to determine dimension coverage**
34
+
35
+ Used when:
36
+ - Planning new features
37
+ - Validating requirements
38
+ - Identifying gaps in ontological coverage
39
+
40
+ Used by: `agent-director`, `agent-quality`, `agent-problem-solver`
41
+
42
+ ### 3. generate-entity-type.md
43
+ **Generates TypeScript type and schema for new entities**
44
+
45
+ Used when:
46
+ - Adding new entity types to schema
47
+ - Creating type definitions
48
+ - Ensuring type safety
49
+
50
+ Used by: `agent-backend`, `agent-builder`, `agent-director`
51
+
52
+ ### 4. verify-relationships.md
53
+ **Validates connection types and relationships**
54
+
55
+ Used when:
56
+ - Creating connections between entities
57
+ - Verifying relationship semantics
58
+ - Preventing invalid connections
59
+
60
+ Used by: `agent-backend`, `agent-quality`, `agent-integrator`
61
+
62
+ ## Usage Patterns
63
+
64
+ ### In Agent Prompts
65
+
66
+ **Before (embedded logic):**
67
+ ```markdown
68
+ 1. Read the schema file
69
+ 2. Check if it has all required tables
70
+ 3. Validate field types
71
+ 4. Ensure indexes exist
72
+ ```
73
+
74
+ **After (using skills):**
75
+ ```markdown
76
+ 1. USE SKILL: `skills/ontology/validate-schema.md`
77
+ - Input: schemaPath = "backend/convex/schema.ts"
78
+ - Ensure isValid = true before proceeding
79
+ ```
80
+
81
+ ### Skill Composition
82
+
83
+ Skills can invoke other skills:
84
+
85
+ ```markdown
86
+ ## In generate-entity-type.md
87
+
88
+ 7. Validate Generated Schema
89
+ - USE SKILL: `skills/ontology/validate-schema.md`
90
+ - Input: generated schema entry
91
+ - Ensure validation passes
92
+ ```
93
+
94
+ ### Error Handling
95
+
96
+ All ontology skills return structured errors:
97
+
98
+ ```json
99
+ {
100
+ "isValid": false,
101
+ "errors": ["Critical issues that must be fixed"],
102
+ "warnings": ["Non-critical issues to consider"],
103
+ "recommendations": ["Suggested improvements"]
104
+ }
105
+ ```
106
+
107
+ ## Dependencies
108
+
109
+ ### Documentation
110
+ - `/one/knowledge/ontology.md` - Canonical ontology specification
111
+ - `https://docs.claude.com/en/docs/claude-code` - Claude Code documentation
112
+
113
+ ### Tools Used
114
+ - **Read** - Load schema and documentation files
115
+ - **Grep** - Search for patterns in code
116
+ - **Write** - Generate new type definitions
117
+
118
+ ### No Skill Dependencies
119
+ These are foundational skills - they don't depend on other skills.
120
+
121
+ ## Examples
122
+
123
+ ### Complete Feature Validation Flow
124
+
125
+ ```markdown
126
+ ## Agent Workflow: Add Blog Feature
127
+
128
+ 1. USE SKILL: `check-dimension.md`
129
+ - Input: "Add blog with posts, authors, and tags"
130
+ - OUTPUT: Dimensions involved (all 6), complexity=complex
131
+
132
+ 2. USE SKILL: `generate-entity-type.md`
133
+ - Input: entityName="blog_post", description="..."
134
+ - OUTPUT: TypeScript type + schema entry
135
+
136
+ 3. USE SKILL: `verify-relationships.md`
137
+ - Input: connectionType="authored", source="creator", target="blog_post"
138
+ - OUTPUT: isValid=true
139
+
140
+ 4. USE SKILL: `validate-schema.md`
141
+ - Input: Updated schema with blog_post table
142
+ - OUTPUT: isValid=true, dimensionCoverage=100%
143
+ ```
144
+
145
+ ## Testing
146
+
147
+ Each skill includes:
148
+ - Unit tests for common cases
149
+ - Error handling tests
150
+ - Integration tests with real schema
151
+ - Performance benchmarks
152
+
153
+ Run tests:
154
+ ```bash
155
+ # Test all ontology skills
156
+ bun test .claude/skills/ontology
157
+
158
+ # Test specific skill
159
+ bun test .claude/skills/ontology/validate-schema.test.ts
160
+ ```
161
+
162
+ ## Performance
163
+
164
+ | Skill | Typical Runtime | Caching |
165
+ |-------|----------------|---------|
166
+ | validate-schema | < 1s | Schema AST cached |
167
+ | check-dimension | < 500ms | None needed |
168
+ | generate-entity-type | < 100ms | None needed |
169
+ | verify-relationships | < 200ms | Connection types cached |
170
+
171
+ ## Best Practices
172
+
173
+ ### 1. Always Validate First
174
+ Before implementing, use `check-dimension` to ensure feature maps to ontology.
175
+
176
+ ### 2. Use Standard Types
177
+ Prefer standard entity and connection types over custom ones.
178
+
179
+ ### 3. Keep Metadata Flat
180
+ Complex nested metadata should be separate entities.
181
+
182
+ ### 4. Index for Performance
183
+ Use recommended indexes from `generate-entity-type`.
184
+
185
+ ### 5. Document Custom Types
186
+ If creating custom entity or connection types, document in ontology.
187
+
188
+ ## Common Patterns
189
+
190
+ ### New Entity Type
191
+ 1. `check-dimension` - Verify which dimensions involved
192
+ 2. `generate-entity-type` - Create type definition
193
+ 3. `verify-relationships` - Validate connections
194
+ 4. `validate-schema` - Ensure schema compliant
195
+
196
+ ### Schema Migration
197
+ 1. `validate-schema` - Check current schema
198
+ 2. Make changes
199
+ 3. `validate-schema` - Verify new schema
200
+ 4. Deploy
201
+
202
+ ### Relationship Design
203
+ 1. `verify-relationships` - Check if connection valid
204
+ 2. Review recommendations
205
+ 3. Use suggested alternative if needed
206
+ 4. Document custom connection type
207
+
208
+ ## Troubleshooting
209
+
210
+ ### Error: "Missing required table: events"
211
+ **Solution:** Add events table to schema following 6-dimension model
212
+
213
+ ### Warning: "Custom connection type not in standard list"
214
+ **Solution:** Either use standard type or document custom type in ontology
215
+
216
+ ### Error: "Circular dependency detected"
217
+ **Solution:** Refactor to remove cycle or make dependency explicit with metadata
218
+
219
+ ### Error: "Semantic mismatch in relationship"
220
+ **Solution:** Reverse relationship direction or use different connection type
221
+
222
+ ## Roadmap
223
+
224
+ ### v1.1.0 (Planned)
225
+ - Auto-fix common schema issues
226
+ - Generate migration scripts
227
+ - Visual ontology diagram
228
+
229
+ ### v1.2.0 (Planned)
230
+ - ML-based entity type suggestions
231
+ - Relationship inference from descriptions
232
+ - Schema optimization recommendations
233
+
234
+ ## Contributing
235
+
236
+ To add or improve ontology skills:
237
+
238
+ 1. Follow skill template in `/one/things/plans/skills.md`
239
+ 2. Include all sections: Purpose, Inputs, Outputs, Steps, Examples, Tests
240
+ 3. Add comprehensive error handling
241
+ 4. Write tests for all cases
242
+ 5. Update this README
243
+
244
+ ## Support
245
+
246
+ For questions or issues with ontology skills:
247
+ - Check `/one/knowledge/ontology.md` for specification
248
+ - Review examples in this README
249
+ - See `/one/things/plans/skills.md` for implementation plan
250
+ - Consult `https://docs.claude.com/en/docs/claude-code` for Claude Code help
251
+
252
+ ---
253
+
254
+ **Status:** Production Ready (Phase 1 Complete)
255
+ **Next:** Implement Convex skills (Phase 1, Infer 6-10)
@@ -0,0 +1,307 @@
1
+ # Check if Feature Maps to Ontology Dimensions
2
+
3
+ **Category:** ontology
4
+ **Version:** 1.0.0
5
+ **Used By:** agent-director, agent-quality, agent-problem-solver
6
+
7
+ ## Purpose
8
+
9
+ Analyzes a feature description or requirement to determine which of the 6 dimensions of the ONE Ontology it touches, ensuring complete ontological coverage before implementation begins.
10
+
11
+ ## Inputs
12
+
13
+ - **featureDescription** (string): Plain English description of the feature
14
+ - **contextType** (string, optional): Type hint (website, api, integration, agent). Default: auto-detect
15
+
16
+ ## Outputs
17
+
18
+ - **dimensionMapping** (object): Which dimensions are involved and how
19
+ - **missingDimensions** (array): Dimensions not covered (potential gaps)
20
+ - **recommendations** (array): Suggestions for complete coverage
21
+ - **complexity** (string): Feature complexity (simple, moderate, complex, very_complex)
22
+ - **requiredSkills** (array): List of skills needed to implement
23
+
24
+ ## Prerequisites
25
+
26
+ - Feature description is clear and specific
27
+ - ONE ontology documentation available
28
+ - Understanding of 6 dimensions: groups, people, things, connections, events, knowledge
29
+
30
+ ## Steps
31
+
32
+ 1. **Parse Feature Description**
33
+ - Extract key verbs (CREATE, UPDATE, DELETE, CONNECT, etc.)
34
+ - Extract key nouns (entities, relationships, actions)
35
+ - Identify actors (who does this?)
36
+ - Identify targets (what is affected?)
37
+
38
+ 2. **Check Groups Dimension**
39
+ - Ask: Does this feature need organizational scope?
40
+ - Ask: Can it work across nested groups?
41
+ - Ask: Does it need multi-tenancy?
42
+ - If yes to any: Mark groups dimension as involved
43
+ - Document: How groups are used (scope, ownership, hierarchy)
44
+
45
+ 3. **Check People Dimension**
46
+ - Ask: Who authorizes this action?
47
+ - Ask: What roles are involved?
48
+ - Ask: Are there permission checks?
49
+ - If yes to any: Mark people dimension as involved
50
+ - Document: Actor roles, permissions, authorization flow
51
+
52
+ 4. **Check Things Dimension**
53
+ - Ask: What entities are created/modified/deleted?
54
+ - Ask: What entity types are involved?
55
+ - Ask: Are new entity types needed?
56
+ - If yes to any: Mark things dimension as involved
57
+ - Document: Entity types, properties, status lifecycle
58
+
59
+ 5. **Check Connections Dimension**
60
+ - Ask: Are entities related to each other?
61
+ - Ask: What relationship types are created?
62
+ - Ask: Is relationship metadata needed?
63
+ - If yes to any: Mark connections dimension as involved
64
+ - Document: Connection types, directionality, metadata
65
+
66
+ 6. **Check Events Dimension**
67
+ - Ask: What actions need to be logged?
68
+ - Ask: Is audit trail required?
69
+ - Ask: Are there event triggers?
70
+ - If yes to any: Mark events dimension as involved
71
+ - Document: Event types, actors, targets, timestamps
72
+
73
+ 7. **Check Knowledge Dimension**
74
+ - Ask: Is content indexed for search?
75
+ - Ask: Are embeddings needed for AI?
76
+ - Ask: Are labels/tags used?
77
+ - If yes to any: Mark knowledge dimension as involved
78
+ - Document: Labels, embeddings, search requirements
79
+
80
+ 8. **Identify Missing Dimensions**
81
+ - List dimensions not touched
82
+ - Evaluate if they should be involved
83
+ - Suggest additions if gaps found
84
+
85
+ 9. **Calculate Complexity**
86
+ - Simple: 1-2 dimensions, single table, no external calls
87
+ - Moderate: 3-4 dimensions, multiple tables, basic logic
88
+ - Complex: 5+ dimensions, external APIs, complex workflows
89
+ - Very Complex: All 6 dimensions, multi-step orchestration, AI/blockchain
90
+
91
+ 10. **Recommend Required Skills**
92
+ - Map dimensions to skills needed
93
+ - Suggest skill execution order
94
+ - Identify skill dependencies
95
+
96
+ ## Examples
97
+
98
+ ### Example 1: Build Landing Page
99
+
100
+ **Input:**
101
+ ```
102
+ featureDescription: "Create a landing page with hero section, pricing table, and CTA buttons"
103
+ contextType: "website"
104
+ ```
105
+
106
+ **Output:**
107
+ ```json
108
+ {
109
+ "dimensionMapping": {
110
+ "groups": {
111
+ "involved": true,
112
+ "usage": "Page belongs to a group/organization",
113
+ "details": "groupId scopes ownership of page"
114
+ },
115
+ "people": {
116
+ "involved": true,
117
+ "usage": "Owner creates and publishes page",
118
+ "details": "actorId tracks who built the page"
119
+ },
120
+ "things": {
121
+ "involved": true,
122
+ "usage": "Page, components, and sections are entities",
123
+ "details": "astro_page, react_component entity types"
124
+ },
125
+ "connections": {
126
+ "involved": true,
127
+ "usage": "Page contains components relationship",
128
+ "details": "contains connection type with position metadata"
129
+ },
130
+ "events": {
131
+ "involved": true,
132
+ "usage": "Track page_created, page_published events",
133
+ "details": "Audit trail for page lifecycle"
134
+ },
135
+ "knowledge": {
136
+ "involved": false,
137
+ "usage": "Not required for static pages",
138
+ "details": "Could add for SEO metadata"
139
+ }
140
+ },
141
+ "missingDimensions": ["knowledge"],
142
+ "recommendations": [
143
+ "Consider adding knowledge labels for SEO (meta tags, keywords)",
144
+ "Add page_viewed events for analytics"
145
+ ],
146
+ "complexity": "moderate",
147
+ "requiredSkills": [
148
+ "skills/astro/create-page.md",
149
+ "skills/astro/create-component.md",
150
+ "skills/convex/create-mutation.md",
151
+ "skills/deployment/deploy-cloudflare.md"
152
+ ]
153
+ }
154
+ ```
155
+
156
+ ### Example 2: Add Blog with Search
157
+
158
+ **Input:**
159
+ ```
160
+ featureDescription: "Add a blog to the website with full-text search, tags, and author pages"
161
+ contextType: "website"
162
+ ```
163
+
164
+ **Output:**
165
+ ```json
166
+ {
167
+ "dimensionMapping": {
168
+ "groups": {
169
+ "involved": true,
170
+ "usage": "Blog content scoped to group",
171
+ "details": "Multi-tenant blog support"
172
+ },
173
+ "people": {
174
+ "involved": true,
175
+ "usage": "Authors create posts, readers view",
176
+ "details": "author_id, reader roles"
177
+ },
178
+ "things": {
179
+ "involved": true,
180
+ "usage": "Blog posts, authors, tags as entities",
181
+ "details": "blog_post, creator, tag entity types"
182
+ },
183
+ "connections": {
184
+ "involved": true,
185
+ "usage": "Post authored_by author, post tagged_with tag",
186
+ "details": "authored, tagged connection types"
187
+ },
188
+ "events": {
189
+ "involved": true,
190
+ "usage": "Track post_created, post_viewed, post_shared",
191
+ "details": "Analytics and engagement tracking"
192
+ },
193
+ "knowledge": {
194
+ "involved": true,
195
+ "usage": "Full-text search, tag taxonomy, embeddings",
196
+ "details": "Embeddings for semantic search, labels for categorization"
197
+ }
198
+ },
199
+ "missingDimensions": [],
200
+ "recommendations": [
201
+ "All 6 dimensions covered - complete ontological representation",
202
+ "Consider adding related_posts connection for recommendations"
203
+ ],
204
+ "complexity": "complex",
205
+ "requiredSkills": [
206
+ "skills/astro/add-content-collection.md",
207
+ "skills/astro/create-page.md",
208
+ "skills/convex/create-query.md",
209
+ "skills/testing/generate-tests.md",
210
+ "skills/deployment/deploy-cloudflare.md"
211
+ ]
212
+ }
213
+ ```
214
+
215
+ ### Example 3: Simple Static Page
216
+
217
+ **Input:**
218
+ ```
219
+ featureDescription: "Add an about page with company history"
220
+ contextType: "website"
221
+ ```
222
+
223
+ **Output:**
224
+ ```json
225
+ {
226
+ "dimensionMapping": {
227
+ "groups": {
228
+ "involved": true,
229
+ "usage": "Page belongs to organization group",
230
+ "details": "groupId for ownership"
231
+ },
232
+ "people": {
233
+ "involved": true,
234
+ "usage": "Owner creates page",
235
+ "details": "actorId for page creator"
236
+ },
237
+ "things": {
238
+ "involved": true,
239
+ "usage": "About page is an entity",
240
+ "details": "astro_page entity type"
241
+ },
242
+ "connections": {
243
+ "involved": false,
244
+ "usage": "No relationships needed for static page",
245
+ "details": "Simple standalone page"
246
+ },
247
+ "events": {
248
+ "involved": true,
249
+ "usage": "Track page_created event",
250
+ "details": "Basic audit trail"
251
+ },
252
+ "knowledge": {
253
+ "involved": false,
254
+ "usage": "Not needed for static content",
255
+ "details": "Could add for SEO"
256
+ }
257
+ },
258
+ "missingDimensions": ["connections", "knowledge"],
259
+ "recommendations": [
260
+ "This is a simple feature - connections and knowledge are optional",
261
+ "Consider linking page to site entity (contains connection)"
262
+ ],
263
+ "complexity": "simple",
264
+ "requiredSkills": [
265
+ "skills/astro/create-page.md",
266
+ "skills/deployment/deploy-cloudflare.md"
267
+ ]
268
+ }
269
+ ```
270
+
271
+ ## Error Handling
272
+
273
+ - **Ambiguous Description:** Ask for clarification on specific aspects
274
+ - **Unknown Context:** Default to auto-detect mode
275
+ - **No Dimensions Match:** Flag as potential issue - all features should touch at least one dimension
276
+
277
+ ## Dependencies
278
+
279
+ - **Tools:** None (pure analysis)
280
+ - **Skills:** None (foundational skill)
281
+ - **Docs:** `one/knowledge/ontology.md` for dimension definitions
282
+
283
+ ## Tests
284
+
285
+ 1. **Test Simple Feature:** Verify 1-2 dimensions identified correctly
286
+ 2. **Test Complex Feature:** Verify all 6 dimensions identified when appropriate
287
+ 3. **Test Website Feature:** Verify website-specific patterns recognized
288
+ 4. **Test API Feature:** Verify API patterns recognized
289
+ 5. **Test Missing Dimensions:** Verify gaps are identified and flagged
290
+ 6. **Test Skill Recommendations:** Verify correct skills suggested for each dimension
291
+
292
+ ## Performance
293
+
294
+ - **Typical Runtime:** < 500ms for analysis
295
+ - **No External Calls:** Pure text analysis and pattern matching
296
+ - **Caching:** Not needed (stateless analysis)
297
+
298
+ ## Lessons Learned
299
+
300
+ - **Be Generous:** If in doubt, include a dimension - better to over-specify than under-specify
301
+ - **Context Matters:** Website features differ from API features in dimension usage
302
+ - **Always Suggest Events:** Even simple features benefit from audit trails
303
+ - **Knowledge is Optional:** Not all features need search/AI, but many benefit from it
304
+
305
+ ## Version History
306
+
307
+ - **1.0.0** (2025-10-18): Initial implementation with 6-dimension analysis