@elevasis/sdk 1.30.2 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,282 +1,282 @@
1
- ---
2
- title: Project Structure
3
- description: Each file scaffolded by elevasis-sdk init and its purpose in the development workflow
4
- loadWhen: "Understanding scaffolded files or project layout"
5
- ---
6
-
7
- `elevasis-sdk init` creates a complete workspace structure. This page explains what each file does and when you will interact with it.
8
-
9
- The current full-stack scaffold uses a workspace layout with `ui/`, `operations/`, `core/`, and a root `docs/` directory. When older examples refer to `src/shared/`, read that as the current `core/` package for cross-runtime types, schemas, and organization-model configuration.
10
-
11
- ---
12
-
13
- ## Source Files
14
-
15
- ### `operations/src/index.ts`
16
-
17
- The registry entry point for your workspace. This file imports OM resource governance from `core/config/organization-model.ts`, aggregates executable resources from domain barrel files, and re-exports them as a `DeploymentSpec` default export. It does not contain workflow logic itself -- its sole job is assembly:
18
-
19
- ```ts
20
- import type { DeploymentSpec } from '@elevasis/sdk'
1
+ ---
2
+ title: Project Structure
3
+ description: Each file in an Elevasis SDK project and its purpose in the development workflow
4
+ loadWhen: "Understanding scaffolded files or project layout"
5
+ ---
6
+
7
+ Your Elevasis SDK project includes a complete workspace structure. This page explains what each file does and when you will interact with it.
8
+
9
+ The current full-stack scaffold uses a workspace layout with `ui/`, `operations/`, `core/`, and a root `docs/` directory. When older examples refer to `src/shared/`, read that as the current `core/` package for cross-runtime types, schemas, and organization-model configuration.
10
+
11
+ ---
12
+
13
+ ## Source Files
14
+
15
+ ### `operations/src/index.ts`
16
+
17
+ The registry entry point for your workspace. This file imports OM resource governance from `core/config/organization-model.ts`, aggregates executable resources from domain barrel files, and re-exports them as a `DeploymentSpec` default export. It does not contain workflow logic itself -- its sole job is assembly:
18
+
19
+ ```ts
20
+ import type { DeploymentSpec } from '@elevasis/sdk'
21
21
  import { organizationModel } from '@core/config/organization-model'
22
- import * as example from './example/index.js'
23
- import * as emailNotification from './email-notification/exports.js'
24
-
25
- const org: DeploymentSpec = {
26
- version: '0.1.0',
22
+ import * as example from './example/index.js'
23
+ import * as emailNotification from './email-notification/exports.js'
24
+
25
+ const org: DeploymentSpec = {
26
+ version: '0.1.0',
27
27
  organizationModel,
28
- workflows: [...example.workflows, ...emailNotification.workflows],
29
- agents: [...example.agents, ...emailNotification.agents]
30
- }
31
- export default org
32
- ```
33
-
34
- Each domain directory exports `workflows` and `agents` arrays via an `index.ts` barrel. When you add a new domain, import it here and spread its arrays.
35
-
36
- ### `operations/src/email-notification/index.ts`
37
-
38
- A multi-step workflow demonstrating real platform API usage. Sends an email notification using the `notifications` adapter and chains steps with `StepType.LINEAR`. Shows the pattern for workflows that use platform tool adapters and pass data between steps.
39
-
40
- ### `operations/src/example/echo.ts`
41
-
42
- The starter workflow, scaffolded to demonstrate the per-file pattern: one workflow per file with its own Zod input/output schemas, config object, contract, and step handler. Replace this domain with your own when you're ready.
43
-
44
- ### `core/`
45
-
46
- Cross-runtime types, schemas, constants, and organization-model configuration shared between the UI and operations packages. Put contracts here when both runtimes need the same validation or labels without depending on app-specific code. Resource descriptors live in `core/config/organization-model.ts`.
47
-
48
- ### `operations/elevasis.config.ts`
49
-
50
- Project-level configuration. The scaffolded file includes commented-out options (`defaultStatus`, `dev.port`):
51
-
52
- ```ts
53
- import type { ElevasConfig } from '@elevasis/sdk'
54
-
55
- export default {
56
- // defaultStatus: 'dev', // Default status for new resources ('dev' | 'prod')
57
- // dev: { port: 5170 }, // Local API port (internal development only)
58
- } satisfies ElevasConfig
59
- ```
60
-
61
- ---
62
-
63
- ## Documentation
64
-
65
- ### `docs/index.md`
66
-
67
- The entry point for your workspace's documentation. Documentation files in `docs/` are deployed alongside your code during `elevasis-sdk deploy` and rendered in the Elevasis platform UI.
68
-
69
- Use MDX frontmatter to set page metadata:
70
-
71
- ```yaml
72
- ---
73
- title: Overview
74
- description: Documentation for this project
75
- order: 0
76
- ---
77
- ```
78
-
79
- Add more pages by creating additional `.mdx` files in `docs/`. Nested directories create sections: `docs/guides/setup.mdx` becomes a `guides/setup` page under your deployment's documentation.
80
-
81
- ### `docs/project-map.mdx`
82
-
83
- Auto-generated by `elevasis-sdk deploy` on every deploy and by `/meta fix` step 8. Contains a full project snapshot: organization, SDK version, template version, last deploy date, source domains, resource tables (workflows and agents), documentation index, SDK reference summary, commands/rules/skills, memory system listing, and configuration state. The agent reads this file at session start for project orientation.
84
-
85
- This file is fully auto-generated -- do not edit manually. Changes are overwritten on the next deploy.
86
-
87
- ### `docs/priorities.mdx`
88
-
89
- Created by the agent during your first goal discussion. Records current goals, priorities, and next steps for the workspace. Updated as goals change across sessions.
90
-
91
- This file is NOT scaffolded by default. The agent creates it the first time you discuss project goals or priorities in a session.
92
-
93
- ### `docs/in-progress/`
94
-
95
- Work-in-progress task documents managed by `/work`. Each file represents an active work item with objective, plan, progress markers, and resume context. This is separate from the Projects data model exposed through `elevasis-sdk project:*`. When all steps are complete, the agent suggests finalizing the task, which moves finished items to their permanent location in `docs/`.
96
-
97
- This directory is NOT deployed -- it is filtered out during the doc scan in `elevasis-sdk deploy`.
98
-
99
- ---
100
-
101
- ## Progressive Disclosure Directories
102
-
103
- The following directories are included in the scaffold:
104
-
105
- | Directory | Created by | When |
106
- | ------------------------------------ | --------------- | ------------------------------------------------------------------ |
107
- | `operations/src/example/` | Scaffold | Always -- echo starter workflow lives here (replace with your own) |
108
- | `operations/src/email-notification/` | Scaffold | Always -- multi-step notification workflow example |
109
- | `core/` | Scaffold | Always -- cross-runtime contracts, schemas, and organization model |
110
- | `ui/` | Scaffold | Always -- React frontend application |
111
- | `docs/` | Scaffold | Always |
112
- | `docs/in-progress/` | Agent | When you create a task doc for in-progress work |
113
- | `docs/resources.md` | `/deploy` skill | Auto-generated on every deploy |
114
- | `data/` | Agent | When you connect a database |
115
- | `scripts/` | Agent | When you need local scripts not deployed to the platform |
116
- | `operations/src/lib/` | Agent | When shared code exists between two or more workflows |
117
-
118
- This structure keeps the initial workspace minimal and adds directories only when they earn their place.
119
-
120
- ### `operations/src/lib/`
121
-
122
- Shared code directory for utilities used by multiple workflows within the operations package. In the current workspace scaffold, prefer the top-level `core/` package for cross-runtime contracts. Included in the esbuild bundle alongside workflow code.
123
-
124
- ### `data/`
125
-
126
- Created by the agent when you connect a database. Contains `schema.ts` which documents your database schema as TypeScript types. The agent reads this file to understand your data model when writing workflow steps that call the Supabase tool. Not deployed -- it is local documentation for the agent.
127
-
128
- ### `scripts/`
129
-
130
- Local utility scripts for tasks that do not run on the platform: database seeds, data migrations, one-off transformations, local testing helpers. Created on demand when you need a local script. Not deployed, not bundled.
131
-
132
- ---
133
-
134
- ## `elevasis-sdk deploy` Scope
135
-
136
- `elevasis-sdk deploy` touches only two directories:
137
-
138
- | Directory | Action | Deployed? |
139
- | ------------------- | ------------------------------------------------------------------------------------ | --------- |
140
- | `operations/src/` | Bundle into `dist/bundle.js` via esbuild (includes `operations/src/lib/` if present) | Yes |
141
- | `docs/` | Scan `.md` and `.mdx` files, upload as documentation | Yes |
142
- | `docs/in-progress/` | Ignored -- work-in-progress, not deployed | No |
143
- | `data/` | Ignored -- local documentation for the agent | No |
144
- | `scripts/` | Ignored -- local scripts, not deployed | No |
145
- | `.claude/` | Ignored -- local development only | No |
146
- | `ui/` | Ignored -- frontend application, deployed separately | No |
147
-
148
- ---
149
-
150
- ## Configuration Files
151
-
152
- ### `.env`
153
-
154
- Contains your `ELEVASIS_PLATFORM_KEY`. This file is gitignored. Never commit it.
155
-
156
- ### `.npmrc`
157
-
158
- Sets `auto-install-peers = true`. The SDK uses Zod as a peer dependency, so this ensures Zod installs automatically.
159
-
160
- ### `tsconfig.json`
161
-
162
- App-focused TypeScript configuration. It does not include `declaration` or `declarationMap` settings because your project is a deployable application, not a library.
163
-
164
- ### `.gitignore`
165
-
166
- Pre-configured to exclude:
167
-
168
- - `node_modules/` -- installed packages
169
- - `.env` -- API key
170
- - `dist/` -- generated by deploy, never commit
171
- - `__elevasis_worker.ts` -- temporary file generated during deployment
172
- - `.claude/settings.local.json` -- local Claude Code overrides
173
- - `.claude/memory/` -- your personal cross-session project memory (profile, errors, decisions)
174
-
175
- ---
176
-
177
- ## Claude Code Integration
178
-
179
- The `.claude/` directory and `CLAUDE.md` give Claude Code full awareness of the SDK, CLI, and your project structure from the first session.
180
-
181
- ### `CLAUDE.md`
182
-
183
- The most important file for AI-assisted development. It provides Claude Code with:
184
-
185
- - **Project orientation** -- what an Elevasis SDK project is and how it works
186
- - **Project structure** -- which files contain resources, documentation, and configuration
187
- - **SDK patterns** -- working code examples for descriptor-backed resource definitions, Zod schemas, and the `DeploymentSpec` export
188
- - **CLI reference** -- all commands with flags (`check`, `deploy`, `exec`, `resources`, `executions`, `execution`, `deployments`, `env list/set/remove`)
189
- - **Development rules** -- conventions the agent should enforce (source in `src/`, docs in `docs/`, use `@elevasis/sdk` types only)
190
-
191
- Do not remove or heavily edit `CLAUDE.md`. It is the primary context source that makes the slash commands work well.
192
-
193
- ### `.claude/settings.json`
194
-
195
- Configures Claude Code for the workspace: registers a PostToolUse formatting/type-check hook (runs after Write, Edit, and MultiEdit) and a PostToolUseFailure error recovery hook (runs after Bash failures).
196
-
197
- ### `.claude/memory/`
198
-
199
- Created when you run `/meta init` in Claude Code. The agent asks six onboarding questions about your organization, project goals, integrations, and experience level. Answers are stored here as markdown files and used to personalize subsequent sessions.
200
-
201
- ```
202
- .claude/memory/
203
- ├── index.md # Root index linking all memory topics
204
- ├── profile/ # Developer profile (created by /meta init)
205
- │ ├── index.md
206
- │ ├── identity.md # Organization, goals, integrations
207
- │ ├── skills.md # Skill dimensions and Growth Log
208
- │ └── preferences.md # Verbosity and guidance style
209
- ├── deployment-state.md # Latest deployment outcomes
210
- ├── decisions.md # Architecture decisions recorded over time
211
- └── errors/ # Error patterns and resolutions
212
- ```
213
-
214
- This directory is gitignored -- it is personal to you and not shared with collaborators. All cross-session knowledge (profile, errors, deployment state, decisions) lives here as plain markdown.
215
-
216
- ---
217
-
218
- ## Slash Commands
219
-
220
- The `.claude/skills/` directory contains skills covering the core development loop:
221
-
222
- - **`/setup`** -- First-time project setup: placeholder replacement, deps, verification
223
- - **`/deploy`** -- Full deploy pipeline: test, build, commit, push
224
- - **`/elevasis`** -- SDK operations: check, deploy, exec
225
- - **`/work`** -- Task tracking across sessions: auto-detects intent (create, save, resume); suggests complete
226
- - **`/status`** -- Quick project health check
227
- - **`/save`** -- Auto-manage docs from conversation context
228
- - **`/explore`** -- Codebase exploration anchored to docs
229
- - **`/continue`** -- Resume in-progress work from docs
230
- - **`/project`** -- Routes project management to the canonical `elevasis-sdk project:*` commands
231
- - **`/dsp`** -- Parallel agent dispatch for implementation tasks
232
- - **`/sync`** -- Pull latest, wipe caches, fresh reinstall
233
-
234
- Boundary summary:
235
-
236
- - `/project` updates shared project records
237
- - `/work` manages docs-backed work tracking
238
- - `/adev` handles implementation and execution work
239
-
240
- For detailed command documentation, see [Agent System](agent).
241
-
242
- ---
243
-
244
- ## File Classification
245
-
246
- Not all scaffolded files participate in template updates. Files fall into two categories:
247
-
248
- **SCAFFOLD_FILES total: 32**
249
-
250
- **INIT_ONLY** -- Written once during initial scaffold, never overwritten by updates:
251
-
252
- - `package.json`, `pnpm-workspace.yaml`, `tsconfig.json`
253
- - `.env`, `.npmrc`
254
- - `operations/src/index.ts`, `operations/src/email-notification/index.ts`, `operations/src/email-notification/exports.ts`, `operations/src/example/echo.ts`, `operations/src/example/index.ts`, `core/`
255
- - `docs/index.md`, `docs/in-progress/.gitkeep`
256
-
257
- **MANAGED** -- Written during initial scaffold and updated when the template evolves:
258
-
259
- - `operations/elevasis.config.ts`, `.gitignore`, `CLAUDE.md`, `.claude/settings.json`
260
- - Two hooks: `.claude/hooks/post-edit-validate.mjs`, `.claude/hooks/tool-failure-recovery.mjs`
261
- - Skills: `.claude/skills/work/SKILL.md`, `.claude/skills/elevasis/SKILL.md`, `.claude/skills/deploy/skill.md`, `.claude/skills/setup/SKILL.md`
262
- - Rule files: `.claude/rules/task-tracking.md`, `.claude/rules/platform.md`, `.claude/rules/error-handling.md`, `.claude/rules/docs.md`, `.claude/rules/execution.md`, `.claude/rules/observability.md`
263
- - One script: `.claude/scripts/statusline-command.js`
264
-
265
- ---
266
-
267
- ## File Reference
268
-
269
- | File | When You Edit It |
270
- | ------------------------------- | ------------------------------------------------------------------- |
271
- | `operations/src/index.ts` | Adding or removing resources |
272
- | `operations/src/<domain>/*.ts` | Writing and modifying workflow logic (organized by business domain) |
273
- | `docs/index.md` | Updating project documentation |
274
- | `docs/resources.md` | Never -- auto-generated by `/deploy` and `/elevasis deploy` |
275
- | `operations/elevasis.config.ts` | Changing project-level settings |
276
- | `.env` | Adding environment variables |
277
- | `CLAUDE.md` | Rarely -- only to add project-specific context |
278
- | `.claude/skills/*/SKILL.md` | Rarely -- skills work well as scaffolded |
279
-
280
- ---
281
-
282
- **Last Updated:** 2026-04-17
28
+ workflows: [...example.workflows, ...emailNotification.workflows],
29
+ agents: [...example.agents, ...emailNotification.agents]
30
+ }
31
+ export default org
32
+ ```
33
+
34
+ Each domain directory exports `workflows` and `agents` arrays via an `index.ts` barrel. When you add a new domain, import it here and spread its arrays.
35
+
36
+ ### `operations/src/email-notification/index.ts`
37
+
38
+ A multi-step workflow demonstrating real platform API usage. Sends an email notification using the `notifications` adapter and chains steps with `StepType.LINEAR`. Shows the pattern for workflows that use platform tool adapters and pass data between steps.
39
+
40
+ ### `operations/src/example/echo.ts`
41
+
42
+ The starter workflow, scaffolded to demonstrate the per-file pattern: one workflow per file with its own Zod input/output schemas, config object, contract, and step handler. Replace this domain with your own when you're ready.
43
+
44
+ ### `core/`
45
+
46
+ Cross-runtime types, schemas, constants, and organization-model configuration shared between the UI and operations packages. Put contracts here when both runtimes need the same validation or labels without depending on app-specific code. Resource descriptors live in `core/config/organization-model.ts`.
47
+
48
+ ### `operations/elevasis.config.ts`
49
+
50
+ Project-level configuration. The scaffolded file includes commented-out options (`defaultStatus`, `dev.port`):
51
+
52
+ ```ts
53
+ import type { ElevasConfig } from '@elevasis/sdk'
54
+
55
+ export default {
56
+ // defaultStatus: 'dev', // Default status for new resources ('dev' | 'prod')
57
+ // dev: { port: 5170 }, // Local API port (internal development only)
58
+ } satisfies ElevasConfig
59
+ ```
60
+
61
+ ---
62
+
63
+ ## Documentation
64
+
65
+ ### `docs/index.md`
66
+
67
+ The entry point for your workspace's documentation. Documentation files in `docs/` are deployed alongside your code during `elevasis-sdk deploy` and rendered in the Elevasis platform UI.
68
+
69
+ Use MDX frontmatter to set page metadata:
70
+
71
+ ```yaml
72
+ ---
73
+ title: Overview
74
+ description: Documentation for this project
75
+ order: 0
76
+ ---
77
+ ```
78
+
79
+ Add more pages by creating additional `.mdx` files in `docs/`. Nested directories create sections: `docs/guides/setup.mdx` becomes a `guides/setup` page under your deployment's documentation.
80
+
81
+ ### `docs/project-map.mdx`
82
+
83
+ Auto-generated by `elevasis-sdk deploy` on every deploy and by `/meta fix` step 8. Contains a full project snapshot: organization, SDK version, template version, last deploy date, source domains, resource tables (workflows and agents), documentation index, SDK reference summary, commands/rules/skills, memory system listing, and configuration state. The agent reads this file at session start for project orientation.
84
+
85
+ This file is fully auto-generated -- do not edit manually. Changes are overwritten on the next deploy.
86
+
87
+ ### `docs/priorities.mdx`
88
+
89
+ Created by the agent during your first goal discussion. Records current goals, priorities, and next steps for the workspace. Updated as goals change across sessions.
90
+
91
+ This file is NOT scaffolded by default. The agent creates it the first time you discuss project goals or priorities in a session.
92
+
93
+ ### `docs/in-progress/`
94
+
95
+ Work-in-progress task documents managed by `/work`. Each file represents an active work item with objective, plan, progress markers, and resume context. This is separate from the Projects data model exposed through `elevasis-sdk project:*`. When all steps are complete, the agent suggests finalizing the task, which moves finished items to their permanent location in `docs/`.
96
+
97
+ This directory is NOT deployed -- it is filtered out during the doc scan in `elevasis-sdk deploy`.
98
+
99
+ ---
100
+
101
+ ## Progressive Disclosure Directories
102
+
103
+ The following directories are included in the scaffold:
104
+
105
+ | Directory | Created by | When |
106
+ | ------------------------------------ | --------------- | ------------------------------------------------------------------ |
107
+ | `operations/src/example/` | Scaffold | Always -- echo starter workflow lives here (replace with your own) |
108
+ | `operations/src/email-notification/` | Scaffold | Always -- multi-step notification workflow example |
109
+ | `core/` | Scaffold | Always -- cross-runtime contracts, schemas, and organization model |
110
+ | `ui/` | Scaffold | Always -- React frontend application |
111
+ | `docs/` | Scaffold | Always |
112
+ | `docs/in-progress/` | Agent | When you create a task doc for in-progress work |
113
+ | `docs/resources.md` | `/deploy` skill | Auto-generated on every deploy |
114
+ | `data/` | Agent | When you connect a database |
115
+ | `scripts/` | Agent | When you need local scripts not deployed to the platform |
116
+ | `operations/src/lib/` | Agent | When shared code exists between two or more workflows |
117
+
118
+ This structure keeps the initial workspace minimal and adds directories only when they earn their place.
119
+
120
+ ### `operations/src/lib/`
121
+
122
+ Shared code directory for utilities used by multiple workflows within the operations package. In the current workspace scaffold, prefer the top-level `core/` package for cross-runtime contracts. Included in the esbuild bundle alongside workflow code.
123
+
124
+ ### `data/`
125
+
126
+ Created by the agent when you connect a database. Contains `schema.ts` which documents your database schema as TypeScript types. The agent reads this file to understand your data model when writing workflow steps that call the Supabase tool. Not deployed -- it is local documentation for the agent.
127
+
128
+ ### `scripts/`
129
+
130
+ Local utility scripts for tasks that do not run on the platform: database seeds, data migrations, one-off transformations, local testing helpers. Created on demand when you need a local script. Not deployed, not bundled.
131
+
132
+ ---
133
+
134
+ ## `elevasis-sdk deploy` Scope
135
+
136
+ `elevasis-sdk deploy` touches only two directories:
137
+
138
+ | Directory | Action | Deployed? |
139
+ | ------------------- | ------------------------------------------------------------------------------------ | --------- |
140
+ | `operations/src/` | Bundle into `dist/bundle.js` via esbuild (includes `operations/src/lib/` if present) | Yes |
141
+ | `docs/` | Scan `.md` and `.mdx` files, upload as documentation | Yes |
142
+ | `docs/in-progress/` | Ignored -- work-in-progress, not deployed | No |
143
+ | `data/` | Ignored -- local documentation for the agent | No |
144
+ | `scripts/` | Ignored -- local scripts, not deployed | No |
145
+ | `.claude/` | Ignored -- local development only | No |
146
+ | `ui/` | Ignored -- frontend application, deployed separately | No |
147
+
148
+ ---
149
+
150
+ ## Configuration Files
151
+
152
+ ### `.env`
153
+
154
+ Contains your `ELEVASIS_PLATFORM_KEY`. This file is gitignored. Never commit it.
155
+
156
+ ### `.npmrc`
157
+
158
+ Sets `auto-install-peers = true`. The SDK uses Zod as a peer dependency, so this ensures Zod installs automatically.
159
+
160
+ ### `tsconfig.json`
161
+
162
+ App-focused TypeScript configuration. It does not include `declaration` or `declarationMap` settings because your project is a deployable application, not a library.
163
+
164
+ ### `.gitignore`
165
+
166
+ Pre-configured to exclude:
167
+
168
+ - `node_modules/` -- installed packages
169
+ - `.env` -- API key
170
+ - `dist/` -- generated by deploy, never commit
171
+ - `__elevasis_worker.ts` -- temporary file generated during deployment
172
+ - `.claude/settings.local.json` -- local Claude Code overrides
173
+ - `.claude/memory/` -- your personal cross-session project memory (profile, errors, decisions)
174
+
175
+ ---
176
+
177
+ ## Claude Code Integration
178
+
179
+ The `.claude/` directory and `CLAUDE.md` give Claude Code full awareness of the SDK, CLI, and your project structure from the first session.
180
+
181
+ ### `CLAUDE.md`
182
+
183
+ The most important file for AI-assisted development. It provides Claude Code with:
184
+
185
+ - **Project orientation** -- what an Elevasis SDK project is and how it works
186
+ - **Project structure** -- which files contain resources, documentation, and configuration
187
+ - **SDK patterns** -- working code examples for descriptor-backed resource definitions, Zod schemas, and the `DeploymentSpec` export
188
+ - **CLI reference** -- all commands with flags (`check`, `deploy`, `exec`, `resources`, `executions`, `execution`, `deployments`, `env list/set/remove`)
189
+ - **Development rules** -- conventions the agent should enforce (source in `src/`, docs in `docs/`, use `@elevasis/sdk` types only)
190
+
191
+ Do not remove or heavily edit `CLAUDE.md`. It is the primary context source that makes the slash commands work well.
192
+
193
+ ### `.claude/settings.json`
194
+
195
+ Configures Claude Code for the workspace: registers a PostToolUse formatting/type-check hook (runs after Write, Edit, and MultiEdit) and a PostToolUseFailure error recovery hook (runs after Bash failures).
196
+
197
+ ### `.claude/memory/`
198
+
199
+ Created when you run `/meta init` in Claude Code. The agent asks six onboarding questions about your organization, project goals, integrations, and experience level. Answers are stored here as markdown files and used to personalize subsequent sessions.
200
+
201
+ ```
202
+ .claude/memory/
203
+ ├── index.md # Root index linking all memory topics
204
+ ├── profile/ # Developer profile (created by /meta init)
205
+ │ ├── index.md
206
+ │ ├── identity.md # Organization, goals, integrations
207
+ │ ├── skills.md # Skill dimensions and Growth Log
208
+ │ └── preferences.md # Verbosity and guidance style
209
+ ├── deployment-state.md # Latest deployment outcomes
210
+ ├── decisions.md # Architecture decisions recorded over time
211
+ └── errors/ # Error patterns and resolutions
212
+ ```
213
+
214
+ This directory is gitignored -- it is personal to you and not shared with collaborators. All cross-session knowledge (profile, errors, deployment state, decisions) lives here as plain markdown.
215
+
216
+ ---
217
+
218
+ ## Slash Commands
219
+
220
+ The `.claude/skills/` directory contains skills covering the core development loop:
221
+
222
+ - **`/setup`** -- First-time project setup: placeholder replacement, deps, verification
223
+ - **`/deploy`** -- Full deploy pipeline: test, build, commit, push
224
+ - **`/elevasis`** -- SDK operations: check, deploy, exec
225
+ - **`/work`** -- Task tracking across sessions: auto-detects intent (create, save, resume); suggests complete
226
+ - **`/status`** -- Quick project health check
227
+ - **`/save`** -- Auto-manage docs from conversation context
228
+ - **`/explore`** -- Codebase exploration anchored to docs
229
+ - **`/continue`** -- Resume in-progress work from docs
230
+ - **`/project`** -- Routes project management to the canonical `elevasis-sdk project:*` commands
231
+ - **`/dsp`** -- Parallel agent dispatch for implementation tasks
232
+ - **`/sync`** -- Pull latest, wipe caches, fresh reinstall
233
+
234
+ Boundary summary:
235
+
236
+ - `/project` updates shared project records
237
+ - `/work` manages docs-backed work tracking
238
+ - `/adev` handles implementation and execution work
239
+
240
+ For detailed command documentation, see [Agent System](agent).
241
+
242
+ ---
243
+
244
+ ## File Classification
245
+
246
+ Not all scaffolded files participate in template updates. Files fall into two categories:
247
+
248
+ **SCAFFOLD_FILES total: 32**
249
+
250
+ **INIT_ONLY** -- Written once during initial scaffold, never overwritten by updates:
251
+
252
+ - `package.json`, `pnpm-workspace.yaml`, `tsconfig.json`
253
+ - `.env`, `.npmrc`
254
+ - `operations/src/index.ts`, `operations/src/email-notification/index.ts`, `operations/src/email-notification/exports.ts`, `operations/src/example/echo.ts`, `operations/src/example/index.ts`, `core/`
255
+ - `docs/index.md`, `docs/in-progress/.gitkeep`
256
+
257
+ **MANAGED** -- Written during initial scaffold and updated when the template evolves:
258
+
259
+ - `operations/elevasis.config.ts`, `.gitignore`, `CLAUDE.md`, `.claude/settings.json`
260
+ - Two hooks: `.claude/hooks/post-edit-validate.mjs`, `.claude/hooks/tool-failure-recovery.mjs`
261
+ - Skills: `.claude/skills/work/SKILL.md`, `.claude/skills/elevasis/SKILL.md`, `.claude/skills/deploy/skill.md`, `.claude/skills/setup/SKILL.md`
262
+ - Rule files: `.claude/rules/task-tracking.md`, `.claude/rules/platform.md`, `.claude/rules/error-handling.md`, `.claude/rules/docs.md`, `.claude/rules/execution.md`, `.claude/rules/observability.md`
263
+ - One script: `.claude/scripts/statusline-command.js`
264
+
265
+ ---
266
+
267
+ ## File Reference
268
+
269
+ | File | When You Edit It |
270
+ | ------------------------------- | ------------------------------------------------------------------- |
271
+ | `operations/src/index.ts` | Adding or removing resources |
272
+ | `operations/src/<domain>/*.ts` | Writing and modifying workflow logic (organized by business domain) |
273
+ | `docs/index.md` | Updating project documentation |
274
+ | `docs/resources.md` | Never -- auto-generated by `/deploy` and `/elevasis deploy` |
275
+ | `operations/elevasis.config.ts` | Changing project-level settings |
276
+ | `.env` | Adding environment variables |
277
+ | `CLAUDE.md` | Rarely -- only to add project-specific context |
278
+ | `.claude/skills/*/SKILL.md` | Rarely -- skills work well as scaffolded |
279
+
280
+ ---
281
+
282
+ **Last Updated:** 2026-04-17
@@ -8,12 +8,12 @@ loadWhen: "Working with resource documentation or the /docs command"
8
8
 
9
9
  ## Directory Structure
10
10
 
11
- Create `.mdx` files inside a `docs/` directory at your project root. `elevasis-sdk init` scaffolds a starter structure:
11
+ Create `.mdx` files inside a `docs/` directory at your project root. Your Elevasis SDK project includes a starter structure:
12
12
 
13
13
  ```
14
14
  my-project/
15
15
  ├── docs/
16
- │ └── index.mdx # Resource overview (scaffolded by init)
16
+ │ └── index.mdx # Resource overview (included by default)
17
17
  ├── src/
18
18
  │ └── index.ts # Resource definitions
19
19
  └── elevasis.config.ts
@@ -1,23 +1,23 @@
1
1
  ---
2
2
  title: Getting Started
3
- description: Install the Elevasis SDK, scaffold a project, and run your first deployment
3
+ description: Set up your Elevasis SDK project and run your first deployment
4
4
  ---
5
5
 
6
6
  **Prerequisites:** Node.js 20+ and pnpm (`npm install -g pnpm`).
7
7
 
8
- ## Create a Project
8
+ ## Your Project
9
9
 
10
- Scaffold a new project and install dependencies:
10
+ Your Elevasis project is a standalone git repo containing your platform workflows, frontend, and configuration. Clone the repo and install dependencies:
11
11
 
12
12
  ```bash
13
- pnpm dlx @elevasis/sdk init my-project
13
+ git clone <your-project-repo-url>
14
14
  cd my-project
15
15
  pnpm install
16
16
  ```
17
17
 
18
- `pnpm dlx` downloads the SDK temporarily to run `elevasis-sdk init`, which scaffolds your project with a working echo workflow, TypeScript config, and Claude Code integration. `pnpm install` then installs the SDK and its dependencies locally -- after that, all `elevasis-sdk` commands work directly via the scripts in `package.json` or `pnpm exec elevasis-sdk <command>`.
18
+ After `pnpm install`, all `elevasis-sdk` commands work via the scripts in `package.json` or `pnpm exec elevasis-sdk <command>`.
19
19
 
20
- The command scaffolds 30 files covering configuration, source, documentation, and Claude Code integration:
20
+ The project ships with 30 files covering configuration, source, documentation, and Claude Code integration:
21
21
 
22
22
  ```
23
23
  my-project/
@@ -134,7 +134,7 @@ Replace `<execution-id>` with the ID returned from the executions list.
134
134
  - [CLI Reference](cli.mdx) -- Full command reference with flags
135
135
  - [Deployment](deployment/index.mdx) -- Deployment lifecycle and environment variables
136
136
 
137
- When a new SDK version is released, run `/meta fix` in Claude Code for an interactive upgrade that includes SDK update, drift repair, and documentation verification. Alternatively, run `elevasis-sdk update` from the terminal to update managed files (CLAUDE.md, slash commands, `.gitignore`) without agent interaction. To update the SDK package itself, run `pnpm update @elevasis/sdk`.
137
+ When a new SDK version is released, run `/meta fix` in Claude Code for an interactive upgrade that includes SDK update, drift repair, and documentation verification. To update the SDK package itself directly, run `pnpm update @elevasis/sdk`.
138
138
 
139
139
  ---
140
140
 
@@ -70,7 +70,7 @@ See [Platform Tools](platform-tools/index.mdx) for the full catalog, adapter ref
70
70
  - [Agent Configuration](framework/agent.mdx) - Agent capabilities, tool access, model config, and Claude Code integration patterns
71
71
  - [Memory](framework/memory.mdx) - Agent memory system, session state, developer profiles, and workspace conventions
72
72
  - [Interaction Guidance](framework/interaction-guidance.mdx) - Skill dimension adaptation rules for platform navigation, API integration, and automation concepts
73
- - [Tutorial System](framework/tutorial-system.mdx) - 21-item tutorial menu, skill-adaptive lesson variants, progress tracking, and module contents
73
+ - [Tutorial System](framework/tutorial-system.mdx) - Two-track onboarding (8 vibe-coder + 19 technical lessons), skill-adaptive lesson variants, progress tracking, and module contents
74
74
  - [Resource Documentation](framework/resource-documentation.mdx) - Docs directory structure, frontmatter schema, size limits, deploy behavior, and /docs command reference
75
75
 
76
76
  ### Resources Subpages
@@ -85,6 +85,7 @@ See [Platform Tools](platform-tools/index.mdx) for the full catalog, adapter ref
85
85
 
86
86
  ### More
87
87
 
88
+ - [Export Catalog](exports.mdx) - Auto-generated catalog of all published @elevasis/sdk subpath exports
88
89
  - [Troubleshooting](troubleshooting.mdx) - Static error catalog for CLI, deployment, schema, and runtime failures
89
90
  - [Roadmap](roadmap.mdx) - Planned features including error taxonomy, retry semantics, circuit breaker, and metrics
90
91