@elevasis/sdk 1.8.2 → 1.8.3

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 (57) hide show
  1. package/dist/cli.cjs +1 -1
  2. package/dist/index.d.ts +88 -39
  3. package/dist/types/worker/adapters/lead.d.ts +1 -1
  4. package/dist/worker/index.js +2 -0
  5. package/package.json +2 -2
  6. package/reference/_navigation.md +7 -1
  7. package/reference/_reference-manifest.json +14 -0
  8. package/reference/claude-config/logs/scaffold-registry-reminder.log +3 -0
  9. package/reference/claude-config/rules/agent-start-here.md +254 -254
  10. package/reference/claude-config/rules/frontend.md +43 -43
  11. package/reference/claude-config/rules/operations.md +64 -64
  12. package/reference/claude-config/rules/organization-model.md +42 -43
  13. package/reference/claude-config/rules/organization-os.md +107 -107
  14. package/reference/claude-config/rules/shared-types.md +2 -2
  15. package/reference/claude-config/rules/task-tracking.md +1 -1
  16. package/reference/claude-config/rules/ui.md +202 -202
  17. package/reference/claude-config/rules/vibe.md +202 -202
  18. package/reference/claude-config/skills/configure/SKILL.md +98 -98
  19. package/reference/claude-config/skills/configure/operations/codify-level-a.md +100 -100
  20. package/reference/claude-config/skills/configure/operations/codify-level-b.md +158 -158
  21. package/reference/claude-config/skills/configure/operations/customers.md +150 -150
  22. package/reference/claude-config/skills/configure/operations/features.md +162 -162
  23. package/reference/claude-config/skills/configure/operations/goals.md +147 -147
  24. package/reference/claude-config/skills/configure/operations/identity.md +133 -133
  25. package/reference/claude-config/skills/configure/operations/labels.md +128 -128
  26. package/reference/claude-config/skills/configure/operations/offerings.md +159 -159
  27. package/reference/claude-config/skills/configure/operations/roles.md +153 -153
  28. package/reference/claude-config/skills/configure/operations/techStack.md +139 -139
  29. package/reference/claude-config/skills/explore/SKILL.md +78 -78
  30. package/reference/claude-config/skills/git-sync/SKILL.md +126 -0
  31. package/reference/claude-config/skills/save/SKILL.md +183 -183
  32. package/reference/claude-config/skills/setup/SKILL.md +275 -275
  33. package/reference/claude-config/skills/sync/SKILL.md +10 -44
  34. package/reference/claude-config/sync-notes/2026-04-22-git-sync-and-sync-notes.md +27 -0
  35. package/reference/claude-config/sync-notes/2026-04-22-lead-gen-deliverability-removal.md +30 -0
  36. package/reference/claude-config/sync-notes/README.md +43 -0
  37. package/reference/packages/core/src/README.md +39 -36
  38. package/reference/packages/core/src/business/README.md +52 -52
  39. package/reference/packages/core/src/organization-model/README.md +97 -97
  40. package/reference/packages/core/src/test-utils/README.md +42 -0
  41. package/reference/scaffold/core/organization-graph.mdx +272 -272
  42. package/reference/scaffold/core/organization-model.mdx +320 -320
  43. package/reference/scaffold/index.mdx +64 -64
  44. package/reference/scaffold/operations/propagation-pipeline.md +125 -104
  45. package/reference/scaffold/operations/scaffold-maintenance.md +122 -122
  46. package/reference/scaffold/operations/workflow-recipes.md +436 -436
  47. package/reference/scaffold/recipes/add-a-feature.md +158 -158
  48. package/reference/scaffold/recipes/add-a-resource.md +158 -158
  49. package/reference/scaffold/recipes/customize-organization-model.md +400 -400
  50. package/reference/scaffold/recipes/extend-a-base-entity.md +140 -140
  51. package/reference/scaffold/recipes/gate-by-feature-or-admin.md +158 -158
  52. package/reference/scaffold/recipes/index.md +32 -32
  53. package/reference/scaffold/reference/contracts.md +608 -607
  54. package/reference/scaffold/reference/feature-registry.md +2 -0
  55. package/reference/scaffold/reference/glossary.md +105 -105
  56. package/reference/scaffold/ui/composition-extensibility.mdx +1 -1
  57. package/reference/scaffold/ui/feature-flags-and-gating.md +1 -1
@@ -1,202 +1,202 @@
1
- ---
2
- description: Ambient intent classifier -- routes natural-language input to 7 intent buckets without a slash command; Codify and Toggle delegate to /configure
3
- paths:
4
- - "**/*"
5
- ---
6
-
7
- # Vibe Layer
8
-
9
- Vibe is an **ambient, always-on** intent classifier. It activates automatically whenever the user speaks in plain language -- no slash command, no activation phrase, no special syntax. Every natural-language message passes through vibe classification before the agent acts.
10
-
11
- This rule applies to all sessions inside external projects. It does NOT apply in the monorepo (ambient routing is off there by default).
12
-
13
- ## What Vibe Is
14
-
15
- Vibe is the translation layer between the user's natural language and the correct agent action. The user describes reality -- "we track deals by Shopify platform", "I'm stuck on this task", "what should I work on next" -- and vibe determines which of the seven intent types the message represents. The agent then routes to the right behavior without the user ever knowing the classification happened.
16
-
17
- Vibe coders (non-technical builders) are the primary audience. They build by describing. They never memorize commands, IDs, or schema. The ambient layer closes the gap between what they say and what the system can act on.
18
-
19
- ## The Seven Intent Types
20
-
21
- ### 1. Capture
22
-
23
- The user wants to record something new -- a task, a note, a piece of information that should persist.
24
-
25
- **Recognize by:** action verbs like "add", "create", "remember", "track", "log", "note down", "write down", combined with a thing to record.
26
-
27
- **Fixture examples:**
28
-
29
- | Input | Why it's Capture |
30
- | ------------------------------------------------- | ------------------------------------------- |
31
- | "Add a task to follow up with the Shopify client" | Explicit "add a task" with a described item |
32
- | "Remember to run the campaign report on Friday" | "Remember to" signals something to persist |
33
- | "Track this conversation as a deal note" | Explicit "track" with a described artifact |
34
-
35
- **Agent action:** draft the capture in plain language, confirm with the user, then execute via `elevasis-sdk project:*` commands. Never write without confirmation.
36
-
37
- ### 2. Query
38
-
39
- The user wants to know something about current state -- task priorities, what is pending, what is running, what failed.
40
-
41
- **Recognize by:** questions about the current list, status, or queue of things. Includes both static-model queries ("what features are on?") and runtime-entity queries ("what's pending in the queue?"). Route Query to static-model sources (org model, features config) or runtime sources (operations domain) based on the referenced entity.
42
-
43
- **Fixture examples:**
44
-
45
- | Input | Why it's Query |
46
- | --------------------------------------------- | ------------------------------------------- |
47
- | "What should I work on next?" | Asking for prioritized task list |
48
- | "What's pending in the HITL queue?" | Runtime-entity query about operations state |
49
- | "What features are enabled for this project?" | Static-model query about features config |
50
-
51
- **Agent action:** read the relevant source (org model, `prj_tasks`, operations domain as available) and narrate the answer in plain language. No writes.
52
-
53
- ### 3. Describe
54
-
55
- The user wants the agent to explain something -- a scope, an entity, a concept within the project.
56
-
57
- **Recognize by:** "what is", "what does", "tell me about", "explain", "where am I", "what's going on", "describe", "show me" without an action intent attached.
58
-
59
- **Fixture examples:**
60
-
61
- | Input | Why it's Describe |
62
- | ------------------------------------------ | ----------------------------------------------------- |
63
- | "What's going on with the ZentaraHQ deal?" | Asking for a plain-language description of an entity |
64
- | "Tell me about the CRM feature" | Asking the agent to narrate what a model element does |
65
- | "Where am I in this project?" | Asking for current scope narration |
66
-
67
- **Agent action:** read the relevant org-model label, entity, or scope. Narrate in plain language using label fields from the model -- never invent vocabulary not present in the model. Phase-1 scope covers Model, Features, and Foundations layers only.
68
-
69
- ### 4. Transition
70
-
71
- The user wants to change the status of a task or entity.
72
-
73
- **Recognize by:** single-word or short-phrase state signals -- "done", "finished", "complete", "blocked", "stuck", "waiting", "in review", "cancelled" -- applied to a current task or named entity.
74
-
75
- **Fixture examples:**
76
-
77
- | Input | Why it's Transition |
78
- | --------------------------------------------- | ------------------------------------------- |
79
- | "Done with the proposal draft" | "Done" + named artifact = status transition |
80
- | "Stuck -- blocked waiting on client feedback" | "Stuck" + reason = blocked transition |
81
- | "Mark the onboarding task as complete" | Explicit status-change vocabulary |
82
-
83
- **Agent action:** identify the task or entity being transitioned, confirm the new status with the user, then apply the transition via `elevasis-sdk project:task:save` or equivalent. Never auto-transition without confirmation if the target entity is ambiguous.
84
-
85
- ### 5. Navigate
86
-
87
- The user wants to shift focus -- to a different task, project, feature, or layer of the model.
88
-
89
- **Recognize by:** focus-shift vocabulary -- "focus on", "let's look at", "switch to", "back to", "move to", "open", "go to" -- followed by a scope target.
90
-
91
- **Fixture examples:**
92
-
93
- | Input | Why it's Navigate |
94
- | -------------------------------------------- | --------------------------------------------------- |
95
- | "Let's focus on the onboarding flow for now" | "Focus on" + scope target |
96
- | "Switch to the Shopify integration project" | "Switch to" = navigate to a different project scope |
97
- | "Back to the CRM tasks" | "Back to" = return to a prior scope |
98
-
99
- **Agent action:** update the active scope in `prj_tasks.resume_context` (current project + task pointer), then narrate the new scope in plain language so the user knows where they are.
100
-
101
- ### 6. Codify
102
-
103
- The user describes organizational reality that is not yet expressed in the model -- industry type, entity kinds, custom attributes, renamed stages, domain vocabulary.
104
-
105
- **Recognize by:** declarative "we are" / "we use" / "we track" statements, repeated attribute mentions (second time the same attribute appears), or explicit "add a type / add a field / model X as Y" requests.
106
-
107
- **Fixture examples:**
108
-
109
- | Input | Why it's Codify |
110
- | -------------------------------------------------------------------------------- | -------------------------------------------------------- |
111
- | "We're an e-commerce company -- all our deals come from Shopify or Amazon" | Declares industry + platform attributes not yet in model |
112
- | "We track deal stage as discovery, scoping, proposal, closed" | Describes custom CRM stages that should replace defaults |
113
- | "Add a project type called 'retainer' with monthly billing and a contract field" | Explicit request to add a new entity extension |
114
-
115
- **Agent action:** delegate immediately to `/configure`. Do not attempt the ceremony yourself. Invoke with the relevant domain: `/configure crm` for deal/contact changes, `/configure projects` for project types, `/configure features` for feature toggles. Plain-language summary of what was detected is acceptable before delegating, but the actual draft-confirm-write ceremony belongs to `/configure`.
116
-
117
- This routing applies to both codify levels (decision #21 -- Codify ceremony delegated to `/configure`):
118
-
119
- - **Level A** (config-only edits to `organization-model.ts`, feature toggles, label renames): delegate to `/configure <domain>` immediately.
120
- - **Level B** (new Zod extension files in `foundations/config/extensions/`): also delegate to `/configure <domain>`; `/configure` gates Level B to explicit user asks before scaffolding a new TS file.
121
-
122
- Vibe detects the intent and delegates in both cases. It does not run either pipeline itself.
123
-
124
- Heuristics for when to propose codification (passed to `/configure` as context):
125
-
126
- - First mention of a new attribute: note to `resume_context`, do not propose yet
127
- - Second mention OR explicit declaration ("we're ecom"): propose extension
128
- - Explicit ask ("track ecom deals separately"): propose immediately with fuller scope
129
- - Attribute appearing across 3+ tasks: propose adding field to existing extension
130
-
131
- ### 7. Toggle
132
-
133
- The user wants to enable or disable a feature.
134
-
135
- **Recognize by:** feature-control vocabulary -- "turn on", "enable", "disable", "turn off", "activate", "deactivate" -- followed by a feature name or description.
136
-
137
- **Fixture examples:**
138
-
139
- | Input | Why it's Toggle |
140
- | ------------------------------- | --------------------------------------------- |
141
- | "Turn on the lead-gen feature" | Explicit "turn on" + feature name |
142
- | "Disable monitoring for now" | "Disable" + feature reference |
143
- | "We don't use SEO, turn it off" | Declarative + "turn it off" = feature disable |
144
-
145
- **Agent action:** delegate to `/configure features`. The ceremony (confirm + edit `foundations/config/organization-model.ts` + typecheck) belongs to `/configure`, not to the ambient rule.
146
-
147
- ## Quick Reference Table
148
-
149
- | Intent | Trigger signal | Routed to |
150
- | ---------- | --------------------------------------------------------------- | ------------------------------------------ |
151
- | Capture | "add", "remember", "track", "log" + a thing | Agent -- draft + confirm + `project:*` CLI |
152
- | Query | "what's next", "what's pending", "what failed", "what features" | Agent -- read + narrate |
153
- | Describe | "what is", "tell me about", "explain", "where am I" | Agent -- narrate from org model labels |
154
- | Transition | "done", "stuck", "blocked", "finished", "complete" | Agent -- confirm + `project:task:save` |
155
- | Navigate | "focus on", "switch to", "back to", "look at" | Agent -- update scope + narrate |
156
- | Codify | "we are X", "we track Y", repeated attribute, "add type/field" | Delegate to `/configure \<domain>` |
157
- | Toggle | "enable", "disable", "turn on/off" + feature | Delegate to `/configure features` |
158
-
159
- ## Source of Truth for Plain Language
160
-
161
- All plain-language labels come from the OrganizationModel itself -- never from hardcoded strings in this rule file. Every status, entity kind, and layer name in the model carries an inline `label` field (e.g., `{ id: 'revision_requested', label: 'changes needed', semanticClass: 'blocked' }`). When narrating state or confirming an action, read the label from the model and use it verbatim. Do not invent synonyms or fallback vocabulary.
162
-
163
- The unified manifest (delivered via `@elevasis/core/organization-model`) is the canonical vocabulary surface. Vibe classifies against it -- capabilities, features, statuses, operations entities, and resource kinds are all discoverable from the manifest without hardcoding.
164
-
165
- ## Ambiguous Intent
166
-
167
- When the user's input does not clearly map to one of the seven types, ask one clarifying question. Do not guess. Do not apply a precedence rule. Do not route to the "closest" intent.
168
-
169
- Format: a single neutral question that presents the two (or three) plausible intents as options and asks which the user means.
170
-
171
- Example: "That could be a note to capture or a status update on the current task -- which did you mean?"
172
-
173
- Never ask more than one question per ambiguous input. If the user's reply is still ambiguous, ask once more, then surface the options explicitly.
174
-
175
- ## Classifier Threshold
176
-
177
- Default threshold: `balanced`.
178
-
179
- The threshold controls how aggressively the classifier proposes codification from ambiguous signals:
180
-
181
- - `strict` -- only explicit declarations or repeat mentions trigger codify proposals
182
- - `balanced` -- second mention OR explicit declaration triggers; default
183
- - `loose` -- first strong signal triggers a proposal
184
-
185
- Override per project in `foundations/config/organization-model.ts` under `vibe.classifierThreshold`. The override is merge-aware (Tier 2 sync) and will not be overwritten by template sync operations.
186
-
187
- ## Phase-1 Scope
188
-
189
- This rule covers Phase 1 of the vibe layer rollout. The layers the ambient classifier can narrate and codify in Phase 1 are:
190
-
191
- - Layer 1 (Model): narrate schema shape, propose codification edits via `/configure`
192
- - Layer 4 (Features): describe which features are on/off, propose enabling one via `/configure`
193
- - Layer 7 (Foundations): explain and edit `organization-model.ts` and `extensions/` via `/configure`
194
-
195
- Layers 2 (Public API), 3 (UI Shell Runtime), 5 (Toolkit), and 6 (Graph) require runtime read APIs that are not yet available. Do not attempt to narrate or classify against those layers in Phase 1. If the user's input clearly references one of those layers, acknowledge the scope and explain that full support arrives in a later phase.
196
-
197
- ## What Vibe Is Not
198
-
199
- - Vibe is not a slash command. There is no `/vibe` invocation (decision #19 -- ambient rule, not a skill or command).
200
- - Vibe is not a skill. It lives in this rule file + CLAUDE.md + the PreToolUse hook -- not in `.claude/skills/`.
201
- - Vibe does not own the codify ceremony. `/configure` owns draft, confirm, write, and typecheck for both Level A and Level B codify pipelines (decision #21 -- Codify ceremony delegated to `/configure`). Vibe detects intent and hands off.
202
- - Vibe is not active in the monorepo. If working inside the monorepo (not an `external/` project), this ambient routing does not apply.
1
+ ---
2
+ description: Ambient intent classifier -- routes natural-language input to 7 intent buckets without a slash command; Codify and Toggle delegate to /configure
3
+ paths:
4
+ - "**/*"
5
+ ---
6
+
7
+ # Vibe Layer
8
+
9
+ Vibe is an **ambient, always-on** intent classifier. It activates automatically whenever the user speaks in plain language -- no slash command, no activation phrase, no special syntax. Every natural-language message passes through vibe classification before the agent acts.
10
+
11
+ This rule applies to all sessions inside external projects. It does NOT apply in the monorepo (ambient routing is off there by default).
12
+
13
+ ## What Vibe Is
14
+
15
+ Vibe is the translation layer between the user's natural language and the correct agent action. The user describes reality -- "we track deals by Shopify platform", "I'm stuck on this task", "what should I work on next" -- and vibe determines which of the seven intent types the message represents. The agent then routes to the right behavior without the user ever knowing the classification happened.
16
+
17
+ Vibe coders (non-technical builders) are the primary audience. They build by describing. They never memorize commands, IDs, or schema. The ambient layer closes the gap between what they say and what the system can act on.
18
+
19
+ ## The Seven Intent Types
20
+
21
+ ### 1. Capture
22
+
23
+ The user wants to record something new -- a task, a note, a piece of information that should persist.
24
+
25
+ **Recognize by:** action verbs like "add", "create", "remember", "track", "log", "note down", "write down", combined with a thing to record.
26
+
27
+ **Fixture examples:**
28
+
29
+ | Input | Why it's Capture |
30
+ | ------------------------------------------------- | ------------------------------------------- |
31
+ | "Add a task to follow up with the Shopify client" | Explicit "add a task" with a described item |
32
+ | "Remember to run the campaign report on Friday" | "Remember to" signals something to persist |
33
+ | "Track this conversation as a deal note" | Explicit "track" with a described artifact |
34
+
35
+ **Agent action:** draft the capture in plain language, confirm with the user, then execute via `elevasis-sdk project:*` commands. Never write without confirmation.
36
+
37
+ ### 2. Query
38
+
39
+ The user wants to know something about current state -- task priorities, what is pending, what is running, what failed.
40
+
41
+ **Recognize by:** questions about the current list, status, or queue of things. Includes both static-model queries ("what features are on?") and runtime-entity queries ("what's pending in the queue?"). Route Query to static-model sources (org model, features config) or runtime sources (operations domain) based on the referenced entity.
42
+
43
+ **Fixture examples:**
44
+
45
+ | Input | Why it's Query |
46
+ | --------------------------------------------- | ------------------------------------------- |
47
+ | "What should I work on next?" | Asking for prioritized task list |
48
+ | "What's pending in the HITL queue?" | Runtime-entity query about operations state |
49
+ | "What features are enabled for this project?" | Static-model query about features config |
50
+
51
+ **Agent action:** read the relevant source (org model, `prj_tasks`, operations domain as available) and narrate the answer in plain language. No writes.
52
+
53
+ ### 3. Describe
54
+
55
+ The user wants the agent to explain something -- a scope, an entity, a concept within the project.
56
+
57
+ **Recognize by:** "what is", "what does", "tell me about", "explain", "where am I", "what's going on", "describe", "show me" without an action intent attached.
58
+
59
+ **Fixture examples:**
60
+
61
+ | Input | Why it's Describe |
62
+ | ------------------------------------------ | ----------------------------------------------------- |
63
+ | "What's going on with the ZentaraHQ deal?" | Asking for a plain-language description of an entity |
64
+ | "Tell me about the CRM feature" | Asking the agent to narrate what a model element does |
65
+ | "Where am I in this project?" | Asking for current scope narration |
66
+
67
+ **Agent action:** read the relevant org-model label, entity, or scope. Narrate in plain language using label fields from the model -- never invent vocabulary not present in the model. Phase-1 scope covers Model, Features, and Foundations layers only.
68
+
69
+ ### 4. Transition
70
+
71
+ The user wants to change the status of a task or entity.
72
+
73
+ **Recognize by:** single-word or short-phrase state signals -- "done", "finished", "complete", "blocked", "stuck", "waiting", "in review", "cancelled" -- applied to a current task or named entity.
74
+
75
+ **Fixture examples:**
76
+
77
+ | Input | Why it's Transition |
78
+ | --------------------------------------------- | ------------------------------------------- |
79
+ | "Done with the proposal draft" | "Done" + named artifact = status transition |
80
+ | "Stuck -- blocked waiting on client feedback" | "Stuck" + reason = blocked transition |
81
+ | "Mark the onboarding task as complete" | Explicit status-change vocabulary |
82
+
83
+ **Agent action:** identify the task or entity being transitioned, confirm the new status with the user, then apply the transition via `elevasis-sdk project:task:save` or equivalent. Never auto-transition without confirmation if the target entity is ambiguous.
84
+
85
+ ### 5. Navigate
86
+
87
+ The user wants to shift focus -- to a different task, project, feature, or layer of the model.
88
+
89
+ **Recognize by:** focus-shift vocabulary -- "focus on", "let's look at", "switch to", "back to", "move to", "open", "go to" -- followed by a scope target.
90
+
91
+ **Fixture examples:**
92
+
93
+ | Input | Why it's Navigate |
94
+ | -------------------------------------------- | --------------------------------------------------- |
95
+ | "Let's focus on the onboarding flow for now" | "Focus on" + scope target |
96
+ | "Switch to the Shopify integration project" | "Switch to" = navigate to a different project scope |
97
+ | "Back to the CRM tasks" | "Back to" = return to a prior scope |
98
+
99
+ **Agent action:** update the active scope in `prj_tasks.resume_context` (current project + task pointer), then narrate the new scope in plain language so the user knows where they are.
100
+
101
+ ### 6. Codify
102
+
103
+ The user describes organizational reality that is not yet expressed in the model -- industry type, entity kinds, custom attributes, renamed stages, domain vocabulary.
104
+
105
+ **Recognize by:** declarative "we are" / "we use" / "we track" statements, repeated attribute mentions (second time the same attribute appears), or explicit "add a type / add a field / model X as Y" requests.
106
+
107
+ **Fixture examples:**
108
+
109
+ | Input | Why it's Codify |
110
+ | -------------------------------------------------------------------------------- | -------------------------------------------------------- |
111
+ | "We're an e-commerce company -- all our deals come from Shopify or Amazon" | Declares industry + platform attributes not yet in model |
112
+ | "We track deal stage as discovery, scoping, proposal, closed" | Describes custom CRM stages that should replace defaults |
113
+ | "Add a project type called 'retainer' with monthly billing and a contract field" | Explicit request to add a new entity extension |
114
+
115
+ **Agent action:** delegate immediately to `/configure`. Do not attempt the ceremony yourself. Invoke with the relevant domain: `/configure crm` for deal/contact changes, `/configure projects` for project types, `/configure features` for feature toggles. Plain-language summary of what was detected is acceptable before delegating, but the actual draft-confirm-write ceremony belongs to `/configure`.
116
+
117
+ This routing applies to both codify levels (decision #21 -- Codify ceremony delegated to `/configure`):
118
+
119
+ - **Level A** (config-only edits to `organization-model.ts`, feature toggles, label renames): delegate to `/configure <domain>` immediately.
120
+ - **Level B** (new Zod extension files in `foundations/config/extensions/`): also delegate to `/configure <domain>`; `/configure` gates Level B to explicit user asks before scaffolding a new TS file.
121
+
122
+ Vibe detects the intent and delegates in both cases. It does not run either pipeline itself.
123
+
124
+ Heuristics for when to propose codification (passed to `/configure` as context):
125
+
126
+ - First mention of a new attribute: note to `resume_context`, do not propose yet
127
+ - Second mention OR explicit declaration ("we're ecom"): propose extension
128
+ - Explicit ask ("track ecom deals separately"): propose immediately with fuller scope
129
+ - Attribute appearing across 3+ tasks: propose adding field to existing extension
130
+
131
+ ### 7. Toggle
132
+
133
+ The user wants to enable or disable a feature.
134
+
135
+ **Recognize by:** feature-control vocabulary -- "turn on", "enable", "disable", "turn off", "activate", "deactivate" -- followed by a feature name or description.
136
+
137
+ **Fixture examples:**
138
+
139
+ | Input | Why it's Toggle |
140
+ | ------------------------------- | --------------------------------------------- |
141
+ | "Turn on the lead-gen feature" | Explicit "turn on" + feature name |
142
+ | "Disable monitoring for now" | "Disable" + feature reference |
143
+ | "We don't use SEO, turn it off" | Declarative + "turn it off" = feature disable |
144
+
145
+ **Agent action:** delegate to `/configure features`. The ceremony (confirm + edit `foundations/config/organization-model.ts` + typecheck) belongs to `/configure`, not to the ambient rule.
146
+
147
+ ## Quick Reference Table
148
+
149
+ | Intent | Trigger signal | Routed to |
150
+ | ---------- | --------------------------------------------------------------- | ------------------------------------------ |
151
+ | Capture | "add", "remember", "track", "log" + a thing | Agent -- draft + confirm + `project:*` CLI |
152
+ | Query | "what's next", "what's pending", "what failed", "what features" | Agent -- read + narrate |
153
+ | Describe | "what is", "tell me about", "explain", "where am I" | Agent -- narrate from org model labels |
154
+ | Transition | "done", "stuck", "blocked", "finished", "complete" | Agent -- confirm + `project:task:save` |
155
+ | Navigate | "focus on", "switch to", "back to", "look at" | Agent -- update scope + narrate |
156
+ | Codify | "we are X", "we track Y", repeated attribute, "add type/field" | Delegate to `/configure \<domain>` |
157
+ | Toggle | "enable", "disable", "turn on/off" + feature | Delegate to `/configure features` |
158
+
159
+ ## Source of Truth for Plain Language
160
+
161
+ All plain-language labels come from the OrganizationModel itself -- never from hardcoded strings in this rule file. Every status, entity kind, and layer name in the model carries an inline `label` field (e.g., `{ id: 'revision_requested', label: 'changes needed', semanticClass: 'blocked' }`). When narrating state or confirming an action, read the label from the model and use it verbatim. Do not invent synonyms or fallback vocabulary.
162
+
163
+ The unified manifest (delivered via `@elevasis/core/organization-model`) is the canonical vocabulary surface. Vibe classifies against it -- capabilities, features, statuses, operations entities, and resource kinds are all discoverable from the manifest without hardcoding.
164
+
165
+ ## Ambiguous Intent
166
+
167
+ When the user's input does not clearly map to one of the seven types, ask one clarifying question. Do not guess. Do not apply a precedence rule. Do not route to the "closest" intent.
168
+
169
+ Format: a single neutral question that presents the two (or three) plausible intents as options and asks which the user means.
170
+
171
+ Example: "That could be a note to capture or a status update on the current task -- which did you mean?"
172
+
173
+ Never ask more than one question per ambiguous input. If the user's reply is still ambiguous, ask once more, then surface the options explicitly.
174
+
175
+ ## Classifier Threshold
176
+
177
+ Default threshold: `balanced`.
178
+
179
+ The threshold controls how aggressively the classifier proposes codification from ambiguous signals:
180
+
181
+ - `strict` -- only explicit declarations or repeat mentions trigger codify proposals
182
+ - `balanced` -- second mention OR explicit declaration triggers; default
183
+ - `loose` -- first strong signal triggers a proposal
184
+
185
+ Override per project in `foundations/config/organization-model.ts` under `vibe.classifierThreshold`. The override is merge-aware (Tier 2 sync) and will not be overwritten by template sync operations.
186
+
187
+ ## Phase-1 Scope
188
+
189
+ This rule covers Phase 1 of the vibe layer rollout. The layers the ambient classifier can narrate and codify in Phase 1 are:
190
+
191
+ - Layer 1 (Model): narrate schema shape, propose codification edits via `/configure`
192
+ - Layer 4 (Features): describe which features are on/off, propose enabling one via `/configure`
193
+ - Layer 7 (Foundations): explain and edit `organization-model.ts` and `extensions/` via `/configure`
194
+
195
+ Layers 2 (Public API), 3 (UI Shell Runtime), 5 (Toolkit), and 6 (Graph) require runtime read APIs that are not yet available. Do not attempt to narrate or classify against those layers in Phase 1. If the user's input clearly references one of those layers, acknowledge the scope and explain that full support arrives in a later phase.
196
+
197
+ ## What Vibe Is Not
198
+
199
+ - Vibe is not a slash command. There is no `/vibe` invocation (decision #19 -- ambient rule, not a skill or command).
200
+ - Vibe is not a skill. It lives in this rule file + CLAUDE.md + the PreToolUse hook -- not in `.claude/skills/`.
201
+ - Vibe does not own the codify ceremony. `/configure` owns draft, confirm, write, and typecheck for both Level A and Level B codify pipelines (decision #21 -- Codify ceremony delegated to `/configure`). Vibe detects intent and hands off.
202
+ - Vibe is not active in the monorepo. If working inside the monorepo (not an `external/` project), this ambient routing does not apply.
@@ -1,98 +1,98 @@
1
- ---
2
- name: configure
3
- description: "Recurring organization model editor — layered QA flow across identity, customers, offerings, roles, goals, and techStack. Idempotent, confirm-before-overwrite. Codifies changes to foundations/config/organization-model.ts with runtime validation gate."
4
- argument-hint: "[identity|customers|offerings|roles|goals|techStack|features|labels]"
5
- context: fork
6
- allowed-tools: Read, Write, Edit, Glob, Grep, Bash
7
- ---
8
-
9
- # Configure
10
-
11
- Recurring, safe-to-re-run org model editor for external projects. Reads the organization model as the single source of truth and guides the user through structured updates — either across all domains in a layered flow, or targeted at a single domain by argument.
12
-
13
- **Usage:**
14
-
15
- - `/configure` -- Layered flow: walks identity → customers → offerings → roles → goals → techStack in sequence
16
- - `/configure identity` -- Target only the identity domain
17
- - `/configure customers` -- Target only the customers domain
18
- - `/configure offerings` -- Target only the offerings domain
19
- - `/configure roles` -- Target only the roles domain
20
- - `/configure goals` -- Target only the goals domain
21
- - `/configure techStack` -- Target only the techStack domain (resource mapping extensions)
22
- - `/configure features` -- Enable, disable, or add features; Level A (defaults) or Level B (new extension TS files)
23
- - `/configure labels` -- Edit inline display labels on enum entries (statuses, stages, categories)
24
-
25
- **Distinction from `/setup`:** `/setup` is for first-time bootstrap (placeholder replacement, dependency install, build verification). `/configure` is for recurring org-model updates. After first run, `/setup` delegates here.
26
-
27
- ---
28
-
29
- ## Goal
30
-
31
- Keep `foundations/config/organization-model.ts` accurate and validated. Every edit proposed by this skill ends with `resolveOrganizationModel()` + `OrganizationModelSchema.parse()` confirming the merged result is valid — and a full TypeScript type-check via `pnpm -C operations check-types` to catch static errors. If validation fails, the change is rolled back.
32
-
33
- ---
34
-
35
- ## Pre-Flight: Read the Current Model
36
-
37
- Before any domain flow, read the current organization model adapter:
38
-
39
- ```
40
- Read("foundations/config/organization-model.ts")
41
- ```
42
-
43
- This is the single source of truth. All proposals must start from what is currently in this file, not from stale context.
44
-
45
- ---
46
-
47
- ## Mode Detection
48
-
49
- - **No argument:** run the layered flow (all domains, one at a time in the order below).
50
- - **Argument matches a domain name** (`identity`, `customers`, `offerings`, `roles`, `goals`, `techStack`): run only that domain's operation.
51
- - **Argument is `features`:** run the features operation.
52
- - **Argument is `labels`:** run the labels operation.
53
- - **Argument is unrecognized:** ask the user which domain they meant.
54
-
55
- ---
56
-
57
- ## Layered Flow (Default)
58
-
59
- When run without an argument, execute operations in this order. After each domain, ask "Ready to move on to [next domain]?" and pause for confirmation. The user can stop after any domain — partial updates are valid.
60
-
61
- 1. `identity` -- EXECUTE `.claude/skills/configure/operations/identity.md`
62
- 2. `customers` -- EXECUTE `.claude/skills/configure/operations/customers.md`
63
- 3. `offerings` -- EXECUTE `.claude/skills/configure/operations/offerings.md`
64
- 4. `roles` -- EXECUTE `.claude/skills/configure/operations/roles.md`
65
- 5. `goals` -- EXECUTE `.claude/skills/configure/operations/goals.md`
66
- 6. `techStack` -- EXECUTE `.claude/skills/configure/operations/techStack.md`
67
-
68
- ---
69
-
70
- ## Operations
71
-
72
- | Operation | File | Description |
73
- | ---------------- | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
74
- | `identity` | `.claude/skills/configure/operations/identity.md` | Legal identity, mission, vision, industry, geography, timezone, business hours |
75
- | `customers` | `.claude/skills/configure/operations/customers.md` | Customer segments with jobs-to-be-done, pains, gains, firmographics, value props |
76
- | `offerings` | `.claude/skills/configure/operations/offerings.md` | Products and services with pricing model, price, currency, and segment/feature refs |
77
- | `roles` | `.claude/skills/configure/operations/roles.md` | Role chart with responsibilities, reporting lines, and role holders |
78
- | `goals` | `.claude/skills/configure/operations/goals.md` | Organizational goals with period and measurable outcomes |
79
- | `techStack` | `.claude/skills/configure/operations/techStack.md` | External integration registry — platform, purpose, credential status, system-of-record flag |
80
- | `features` | `.claude/skills/configure/operations/features.md` | Enable/disable features or add new ones (Level A config edit vs Level B extension file) |
81
- | `labels` | `.claude/skills/configure/operations/labels.md` | Edit inline display labels on enum entries (statuses, stages, categories) |
82
- | `codify-level-a` | `.claude/skills/configure/operations/codify-level-a.md` | Codify pipeline for config-only edits (Level A): propose, confirm, write, validate, rollback |
83
- | `codify-level-b` | `.claude/skills/configure/operations/codify-level-b.md` | Codify pipeline for new extension TS files (Level B): scaffold file, propose, confirm, write, validate, rollback |
84
-
85
- ---
86
-
87
- ## Validation Gate (MANDATORY)
88
-
89
- Every codify operation (Level A or B) must end with this validation sequence before reporting success:
90
-
91
- 1. **TypeScript type-check:** `pnpm -C operations check-types` (catches static errors in the generated extension files)
92
- 2. **Runtime schema parse:** confirm that the adapter calls `resolveOrganizationModel()` and `OrganizationModelSchema.parse()` is satisfied (Zod cross-refs, enum values, required fields)
93
-
94
- If either fails: roll back the file to its pre-edit state and report the error to the user. See `codify-level-a.md` and `codify-level-b.md` for the full rollback procedure.
95
-
96
- ---
97
-
98
- **Last Updated:** 2026-04-20
1
+ ---
2
+ name: configure
3
+ description: "Recurring organization model editor — layered QA flow across identity, customers, offerings, roles, goals, and techStack. Idempotent, confirm-before-overwrite. Codifies changes to foundations/config/organization-model.ts with runtime validation gate."
4
+ argument-hint: "[identity|customers|offerings|roles|goals|techStack|features|labels]"
5
+ context: fork
6
+ allowed-tools: Read, Write, Edit, Glob, Grep, Bash
7
+ ---
8
+
9
+ # Configure
10
+
11
+ Recurring, safe-to-re-run org model editor for external projects. Reads the organization model as the single source of truth and guides the user through structured updates — either across all domains in a layered flow, or targeted at a single domain by argument.
12
+
13
+ **Usage:**
14
+
15
+ - `/configure` -- Layered flow: walks identity → customers → offerings → roles → goals → techStack in sequence
16
+ - `/configure identity` -- Target only the identity domain
17
+ - `/configure customers` -- Target only the customers domain
18
+ - `/configure offerings` -- Target only the offerings domain
19
+ - `/configure roles` -- Target only the roles domain
20
+ - `/configure goals` -- Target only the goals domain
21
+ - `/configure techStack` -- Target only the techStack domain (resource mapping extensions)
22
+ - `/configure features` -- Enable, disable, or add features; Level A (defaults) or Level B (new extension TS files)
23
+ - `/configure labels` -- Edit inline display labels on enum entries (statuses, stages, categories)
24
+
25
+ **Distinction from `/setup`:** `/setup` is for first-time bootstrap (placeholder replacement, dependency install, build verification). `/configure` is for recurring org-model updates. After first run, `/setup` delegates here.
26
+
27
+ ---
28
+
29
+ ## Goal
30
+
31
+ Keep `foundations/config/organization-model.ts` accurate and validated. Every edit proposed by this skill ends with `resolveOrganizationModel()` + `OrganizationModelSchema.parse()` confirming the merged result is valid — and a full TypeScript type-check via `pnpm -C operations check-types` to catch static errors. If validation fails, the change is rolled back.
32
+
33
+ ---
34
+
35
+ ## Pre-Flight: Read the Current Model
36
+
37
+ Before any domain flow, read the current organization model adapter:
38
+
39
+ ```
40
+ Read("foundations/config/organization-model.ts")
41
+ ```
42
+
43
+ This is the single source of truth. All proposals must start from what is currently in this file, not from stale context.
44
+
45
+ ---
46
+
47
+ ## Mode Detection
48
+
49
+ - **No argument:** run the layered flow (all domains, one at a time in the order below).
50
+ - **Argument matches a domain name** (`identity`, `customers`, `offerings`, `roles`, `goals`, `techStack`): run only that domain's operation.
51
+ - **Argument is `features`:** run the features operation.
52
+ - **Argument is `labels`:** run the labels operation.
53
+ - **Argument is unrecognized:** ask the user which domain they meant.
54
+
55
+ ---
56
+
57
+ ## Layered Flow (Default)
58
+
59
+ When run without an argument, execute operations in this order. After each domain, ask "Ready to move on to [next domain]?" and pause for confirmation. The user can stop after any domain — partial updates are valid.
60
+
61
+ 1. `identity` -- EXECUTE `.claude/skills/configure/operations/identity.md`
62
+ 2. `customers` -- EXECUTE `.claude/skills/configure/operations/customers.md`
63
+ 3. `offerings` -- EXECUTE `.claude/skills/configure/operations/offerings.md`
64
+ 4. `roles` -- EXECUTE `.claude/skills/configure/operations/roles.md`
65
+ 5. `goals` -- EXECUTE `.claude/skills/configure/operations/goals.md`
66
+ 6. `techStack` -- EXECUTE `.claude/skills/configure/operations/techStack.md`
67
+
68
+ ---
69
+
70
+ ## Operations
71
+
72
+ | Operation | File | Description |
73
+ | ---------------- | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
74
+ | `identity` | `.claude/skills/configure/operations/identity.md` | Legal identity, mission, vision, industry, geography, timezone, business hours |
75
+ | `customers` | `.claude/skills/configure/operations/customers.md` | Customer segments with jobs-to-be-done, pains, gains, firmographics, value props |
76
+ | `offerings` | `.claude/skills/configure/operations/offerings.md` | Products and services with pricing model, price, currency, and segment/feature refs |
77
+ | `roles` | `.claude/skills/configure/operations/roles.md` | Role chart with responsibilities, reporting lines, and role holders |
78
+ | `goals` | `.claude/skills/configure/operations/goals.md` | Organizational goals with period and measurable outcomes |
79
+ | `techStack` | `.claude/skills/configure/operations/techStack.md` | External integration registry — platform, purpose, credential status, system-of-record flag |
80
+ | `features` | `.claude/skills/configure/operations/features.md` | Enable/disable features or add new ones (Level A config edit vs Level B extension file) |
81
+ | `labels` | `.claude/skills/configure/operations/labels.md` | Edit inline display labels on enum entries (statuses, stages, categories) |
82
+ | `codify-level-a` | `.claude/skills/configure/operations/codify-level-a.md` | Codify pipeline for config-only edits (Level A): propose, confirm, write, validate, rollback |
83
+ | `codify-level-b` | `.claude/skills/configure/operations/codify-level-b.md` | Codify pipeline for new extension TS files (Level B): scaffold file, propose, confirm, write, validate, rollback |
84
+
85
+ ---
86
+
87
+ ## Validation Gate (MANDATORY)
88
+
89
+ Every codify operation (Level A or B) must end with this validation sequence before reporting success:
90
+
91
+ 1. **TypeScript type-check:** `pnpm -C operations check-types` (catches static errors in the generated extension files)
92
+ 2. **Runtime schema parse:** confirm that the adapter calls `resolveOrganizationModel()` and `OrganizationModelSchema.parse()` is satisfied (Zod cross-refs, enum values, required fields)
93
+
94
+ If either fails: roll back the file to its pre-edit state and report the error to the user. See `codify-level-a.md` and `codify-level-b.md` for the full rollback procedure.
95
+
96
+ ---
97
+
98
+ **Last Updated:** 2026-04-20