@elevasis/sdk 0.5.12 → 0.5.13
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.
- package/dist/cli.cjs +92 -81
- package/dist/index.d.ts +11 -253
- package/dist/index.js +5 -9
- package/dist/templates.js +26 -23
- package/dist/types/worker/adapters/index.d.ts +0 -1
- package/dist/worker/index.js +47 -53
- package/package.json +1 -1
- package/reference/_navigation.md +13 -57
- package/reference/concepts.mdx +203 -0
- package/reference/deployment/{command-center-ui.mdx → command-center.mdx} +229 -151
- package/reference/deployment/index.mdx +158 -153
- package/reference/framework/agent.mdx +168 -151
- package/reference/framework/index.mdx +182 -103
- package/reference/framework/memory.mdx +347 -347
- package/reference/framework/tutorial-system.mdx +253 -0
- package/reference/{getting-started/index.mdx → getting-started.mdx} +4 -4
- package/reference/index.mdx +117 -114
- package/reference/platform-tools/adapters.mdx +175 -32
- package/reference/platform-tools/index.mdx +354 -195
- package/reference/resources/index.mdx +5 -0
- package/reference/{roadmap/index.mdx → roadmap.mdx} +1 -1
- package/reference/{runtime/index.mdx → runtime.mdx} +196 -141
- package/dist/types/worker/adapters/trello.d.ts +0 -14
- package/reference/concepts/index.mdx +0 -203
- package/reference/deployment/command-view.mdx +0 -154
- package/reference/framework/documentation.mdx +0 -92
- package/reference/platform-tools/examples.mdx +0 -170
- package/reference/runtime/limits.mdx +0 -75
- package/reference/security/credentials.mdx +0 -141
- /package/reference/{cli/index.mdx → cli.mdx} +0 -0
- /package/reference/{developer → framework}/interaction-guidance.mdx +0 -0
- /package/reference/{troubleshooting/common-errors.mdx → troubleshooting.mdx} +0 -0
|
@@ -1,151 +1,168 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Agent System
|
|
3
|
-
description: CLAUDE.md drives all agent behavior -- project instructions, slash commands, memory-based developer profile, and three-tier adaptive guidance
|
|
4
|
-
loadWhen: "Configuring agent behavior or capabilities"
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The agent system is the set of files that shape how Claude Code behaves in your SDK project. It consists of four parts: `CLAUDE.md` (the instruction file), slash commands (structured task entry points), the developer profile stored in `memory/profile/`, and the adaptive guidance rules that translate profile data into concrete agent behavior.
|
|
8
|
-
|
|
9
|
-
Nothing here requires configuration. The agent reads these files at session start and adapts automatically.
|
|
10
|
-
|
|
11
|
-
## CLAUDE.md
|
|
12
|
-
|
|
13
|
-
`CLAUDE.md` is the project instruction file for Claude Code. It is read at the start of every session and governs all agent behavior. In an Elevasis SDK project, it is generated by `elevasis-sdk init` and lives at the project root.
|
|
14
|
-
|
|
15
|
-
The file is instruction-driven by design. Non-technical developers should never need to edit it. When the agent learns a new rule worth preserving -- such as an error pattern that recurs three times -- it promotes that rule into `CLAUDE.md` automatically.
|
|
16
|
-
|
|
17
|
-
### Sections
|
|
18
|
-
|
|
19
|
-
The generated `CLAUDE.md` contains these sections:
|
|
20
|
-
|
|
21
|
-
- **Session Initialization** -- Checks the `<!-- initialized: false -->` auto-init flag; if false, runs `/meta init` automatically. Otherwise reads `memory/profile/skills.md` for adaptive behavior, reads `memory/index.md` for project context, checks if the template version is current, and suggests `/tutorial` for users with no Platform Navigation experience.
|
|
22
|
-
- **Identity** -- Project orientation: what an Elevasis SDK project is, the developer's role, and how to adapt to non-technical users.
|
|
23
|
-
- **Navigation** -- A table mapping concepts to file paths with load conditions (when to load each file). Includes SDK reference docs, credential model, error history, `docs/project-map.mdx`, and `docs/priorities.mdx`.
|
|
24
|
-
- **Rules** -- Points to auto-loaded rule files in `.claude/rules/`. SDK patterns load automatically; project-specific patterns live in `workspace-patterns.md`. Includes error handling protocol.
|
|
25
|
-
- **Interaction Guidance** -- Per-dimension behavior rules derived from `memory/profile/skills.md`. Covers vocabulary, code completeness, explanation depth, and growth logging.
|
|
26
|
-
- **Commands** -- Table of the 4 slash commands (`/meta`, `/docs`, `/work`, `/tutorial`) with one-line purpose descriptions.
|
|
27
|
-
- **Skills** -- Auto-trigger conditions for the `creds` skill.
|
|
28
|
-
- **Maintaining Memory** -- Hierarchical structure, pruning rules, and what belongs in memory vs. `docs/` vs. `.claude/rules/`.
|
|
29
|
-
|
|
30
|
-
### Session Initialization
|
|
31
|
-
|
|
32
|
-
At the start of every session the agent runs these steps silently before responding:
|
|
33
|
-
|
|
34
|
-
0. Check the `<!-- initialized: ... -->` flag at the top of `CLAUDE.md`. If `false`, run the `/meta init` flow automatically. If `true`, proceed with steps below.
|
|
35
|
-
1. Read `.claude/memory/profile/skills.md` -- adapt all responses to the user's assessed skill levels (see Interaction Guidance below).
|
|
36
|
-
2. Read `.claude/memory/index.md` if it exists -- drill into relevant topic files as needed, balancing context relevance against token usage.
|
|
37
|
-
3. Check the installed `@elevasis/sdk` template version against `templateVersion` in `elevasis.config.ts`. If the SDK has a newer version, notify the user and suggest running `/meta fix`.
|
|
38
|
-
4. If `.claude/memory/` does not exist, suggest running `/meta init` to set up the project.
|
|
39
|
-
5. If the user's Platform Navigation level is none (from skills.md) and `.claude/memory/tutorial-progress.md` does not exist, suggest `/tutorial`.
|
|
40
|
-
|
|
41
|
-
## Slash Commands
|
|
42
|
-
|
|
43
|
-
Slash commands are short Markdown instruction files in `.claude/commands/`. When you type `/command-name` in a Claude Code session, the agent reads the corresponding file and follows its instructions.
|
|
44
|
-
|
|
45
|
-
Four commands and one skill are scaffolded by `elevasis-sdk init` and committed to version control so collaborators get the same experience:
|
|
46
|
-
|
|
47
|
-
| Command
|
|
48
|
-
|
|
|
49
|
-
| `/meta`
|
|
50
|
-
| `/docs`
|
|
51
|
-
| `/work`
|
|
52
|
-
| `/tutorial` | `tutorial.md` | Progressive learning path -- 3 tracks, menu-driven
|
|
53
|
-
|
|
54
|
-
The `/creds` skill (`.claude/skills/creds/SKILL.md`) is also scaffolded. It auto-triggers when the agent detects credential-related context and manages credential storage and retrieval.
|
|
55
|
-
|
|
56
|
-
### `/meta` Command
|
|
57
|
-
|
|
58
|
-
The `/meta` command namespace manages the full project lifecycle. It has five operations:
|
|
59
|
-
|
|
60
|
-
- **`/meta init`** -- First-run guided setup. Runs after `elevasis-sdk init` to install dependencies, configure `.env`, run the competency assessment onboarding flow, seed `memory/profile/`, verify the project, and optionally do a first deploy.
|
|
61
|
-
- **`/meta`** (no arguments) -- Project health status. Shows current template version, SDK version, profile summary, a quick drift check, and last deployment status.
|
|
62
|
-
- **`/meta fix`** -- SDK upgrade check and drift repair. Step 0 offers to run `pnpm update @elevasis/sdk` and merge template changes. Steps 1-8 repair drift: missing managed files, gitignore entries, CLAUDE.md sections, memory structure, doc cross-references, settings, rules health, and project map freshness.
|
|
63
|
-
- **`/meta deploy`** -- Full 9-step deploy pipeline: validate, type-check, verify docs, commit, deploy (auto-regenerates `docs/project-map.mdx`), verify platform, update deployment state, and optionally push.
|
|
64
|
-
- **`/meta health`** -- Execution debugging and resource status; shows recent executions, analyzes failures, and checks environment connectivity.
|
|
65
|
-
|
|
66
|
-
### `/docs` Command
|
|
67
|
-
|
|
68
|
-
The `/docs` command manages the permanent `docs/` tree -- everything except `docs/in-progress/` (owned by `/work`) and auto-generated files (`project-map.mdx`, `resource-map.mdx`). Three operations:
|
|
69
|
-
|
|
70
|
-
- **`/docs`** (no arguments) -- Browse. Scans `docs/` recursively and displays a numbered list of user-maintained docs with auto-generated files shown separately as read-only. Pick a number to read and discuss, or say "create" or "verify."
|
|
71
|
-
- **`/docs create [description]`** -- Interview-driven reference doc creation. If the doc is about a specific resource, the agent scans `src/` and pre-populates from code (config, schemas, step names, platform tools). Scaffolds sections appropriate to the doc type (resource guide, integration guide, architecture notes, process doc, or general reference).
|
|
72
|
-
- **`/docs verify [file?]`** -- Interactive standalone version of `/meta fix` step 5. Cross-references resource IDs, schema fields, and platform tools in docs against `src/`. Shows a summary, then guides fixes interactively. Can be scoped to a single file.
|
|
73
|
-
|
|
74
|
-
### `/work` Command
|
|
75
|
-
|
|
76
|
-
The `/work` command manages in-progress task tracking across sessions. It uses `docs/in-progress/` for task documents with standardized frontmatter (`status: planned | in-progress | complete`). Operations:
|
|
77
|
-
|
|
78
|
-
- **`/work`** (no arguments) -- Numbered list sorted by status (`in-progress` first) with last-saved date and current step. Pick by number to auto-resume.
|
|
79
|
-
- **`/work create`** -- Guided interview (
|
|
80
|
-
- **`/work save`** -- Comprehensive snapshot: progress markers, files modified table, key docs to read on resume, and a "To continue" prompt. Proactively suggested before context pressure builds.
|
|
81
|
-
- **`/work resume [<name>]`** -- Load a task by number, keyword, or auto-detect. No file paths required.
|
|
82
|
-
- **`/work complete`** -- Seven-step pipeline: validate readiness, clean doc, determine destination in `docs/`, confirm with user, move, verify.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
1
|
+
---
|
|
2
|
+
title: Agent System
|
|
3
|
+
description: CLAUDE.md drives all agent behavior -- project instructions, slash commands, memory-based developer profile, and three-tier adaptive guidance
|
|
4
|
+
loadWhen: "Configuring agent behavior or capabilities"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The agent system is the set of files that shape how Claude Code behaves in your SDK project. It consists of four parts: `CLAUDE.md` (the instruction file), slash commands (structured task entry points), the developer profile stored in `memory/profile/`, and the adaptive guidance rules that translate profile data into concrete agent behavior.
|
|
8
|
+
|
|
9
|
+
Nothing here requires configuration. The agent reads these files at session start and adapts automatically.
|
|
10
|
+
|
|
11
|
+
## CLAUDE.md
|
|
12
|
+
|
|
13
|
+
`CLAUDE.md` is the project instruction file for Claude Code. It is read at the start of every session and governs all agent behavior. In an Elevasis SDK project, it is generated by `elevasis-sdk init` and lives at the project root.
|
|
14
|
+
|
|
15
|
+
The file is instruction-driven by design. Non-technical developers should never need to edit it. When the agent learns a new rule worth preserving -- such as an error pattern that recurs three times -- it promotes that rule into `CLAUDE.md` automatically.
|
|
16
|
+
|
|
17
|
+
### Sections
|
|
18
|
+
|
|
19
|
+
The generated `CLAUDE.md` contains these sections:
|
|
20
|
+
|
|
21
|
+
- **Session Initialization** -- Checks the `<!-- initialized: false -->` auto-init flag; if false, runs `/meta init` automatically. Otherwise reads `memory/profile/skills.md` for adaptive behavior, reads `memory/index.md` for project context, checks if the template version is current, and suggests `/tutorial` for users with no Platform Navigation experience.
|
|
22
|
+
- **Identity** -- Project orientation: what an Elevasis SDK project is, the developer's role, and how to adapt to non-technical users.
|
|
23
|
+
- **Navigation** -- A table mapping concepts to file paths with load conditions (when to load each file). Includes SDK reference docs, credential model, error history, `docs/project-map.mdx`, and `docs/priorities.mdx`.
|
|
24
|
+
- **Rules** -- Points to auto-loaded rule files in `.claude/rules/`. SDK patterns load automatically; project-specific patterns live in `workspace-patterns.md`. Includes error handling protocol.
|
|
25
|
+
- **Interaction Guidance** -- Per-dimension behavior rules derived from `memory/profile/skills.md`. Covers vocabulary, code completeness, explanation depth, and growth logging.
|
|
26
|
+
- **Commands** -- Table of the 4 slash commands (`/meta`, `/docs`, `/work`, `/tutorial`) with one-line purpose descriptions.
|
|
27
|
+
- **Skills** -- Auto-trigger conditions for the `creds` skill.
|
|
28
|
+
- **Maintaining Memory** -- Hierarchical structure, pruning rules, and what belongs in memory vs. `docs/` vs. `.claude/rules/`.
|
|
29
|
+
|
|
30
|
+
### Session Initialization
|
|
31
|
+
|
|
32
|
+
At the start of every session the agent runs these steps silently before responding:
|
|
33
|
+
|
|
34
|
+
0. Check the `<!-- initialized: ... -->` flag at the top of `CLAUDE.md`. If `false`, run the `/meta init` flow automatically. If `true`, proceed with steps below.
|
|
35
|
+
1. Read `.claude/memory/profile/skills.md` -- adapt all responses to the user's assessed skill levels (see Interaction Guidance below).
|
|
36
|
+
2. Read `.claude/memory/index.md` if it exists -- drill into relevant topic files as needed, balancing context relevance against token usage.
|
|
37
|
+
3. Check the installed `@elevasis/sdk` template version against `templateVersion` in `elevasis.config.ts`. If the SDK has a newer version, notify the user and suggest running `/meta fix`.
|
|
38
|
+
4. If `.claude/memory/` does not exist, suggest running `/meta init` to set up the project.
|
|
39
|
+
5. If the user's Platform Navigation level is none (from skills.md) and `.claude/memory/tutorial-progress.md` does not exist, suggest `/tutorial`.
|
|
40
|
+
|
|
41
|
+
## Slash Commands
|
|
42
|
+
|
|
43
|
+
Slash commands are short Markdown instruction files in `.claude/commands/`. When you type `/command-name` in a Claude Code session, the agent reads the corresponding file and follows its instructions.
|
|
44
|
+
|
|
45
|
+
Four commands and one skill are scaffolded by `elevasis-sdk init` and committed to version control so collaborators get the same experience:
|
|
46
|
+
|
|
47
|
+
| Command | File | Purpose |
|
|
48
|
+
| ----------- | ------------- | -------------------------------------------------------------------------------- |
|
|
49
|
+
| `/meta` | `meta.md` | Project lifecycle -- init, status, fix (incl. docs verification), deploy, health |
|
|
50
|
+
| `/docs` | `docs.md` | Browse, create, and verify permanent documentation |
|
|
51
|
+
| `/work` | `work.md` | Task tracking -- list, create, save, resume, complete |
|
|
52
|
+
| `/tutorial` | `tutorial.md` | Progressive learning path -- 3 tracks, menu-driven |
|
|
53
|
+
|
|
54
|
+
The `/creds` skill (`.claude/skills/creds/SKILL.md`) is also scaffolded. It auto-triggers when the agent detects credential-related context and manages credential storage and retrieval.
|
|
55
|
+
|
|
56
|
+
### `/meta` Command
|
|
57
|
+
|
|
58
|
+
The `/meta` command namespace manages the full project lifecycle. It has five operations:
|
|
59
|
+
|
|
60
|
+
- **`/meta init`** -- First-run guided setup. Runs after `elevasis-sdk init` to install dependencies, configure `.env`, run the competency assessment onboarding flow, seed `memory/profile/`, verify the project, and optionally do a first deploy.
|
|
61
|
+
- **`/meta`** (no arguments) -- Project health status. Shows current template version, SDK version, profile summary, a quick drift check, and last deployment status.
|
|
62
|
+
- **`/meta fix`** -- SDK upgrade check and drift repair. Step 0 offers to run `pnpm update @elevasis/sdk` and merge template changes. Steps 1-8 repair drift: missing managed files, gitignore entries, CLAUDE.md sections, memory structure, doc cross-references, settings, rules health, and project map freshness.
|
|
63
|
+
- **`/meta deploy`** -- Full 9-step deploy pipeline: validate, type-check, verify docs, commit, deploy (auto-regenerates `docs/project-map.mdx`), verify platform, update deployment state, and optionally push.
|
|
64
|
+
- **`/meta health`** -- Execution debugging and resource status; shows recent executions, analyzes failures, and checks environment connectivity.
|
|
65
|
+
|
|
66
|
+
### `/docs` Command
|
|
67
|
+
|
|
68
|
+
The `/docs` command manages the permanent `docs/` tree -- everything except `docs/in-progress/` (owned by `/work`) and auto-generated files (`project-map.mdx`, `resource-map.mdx`). Three operations:
|
|
69
|
+
|
|
70
|
+
- **`/docs`** (no arguments) -- Browse. Scans `docs/` recursively and displays a numbered list of user-maintained docs with auto-generated files shown separately as read-only. Pick a number to read and discuss, or say "create" or "verify."
|
|
71
|
+
- **`/docs create [description]`** -- Interview-driven reference doc creation. If the doc is about a specific resource, the agent scans `src/` and pre-populates from code (config, schemas, step names, platform tools). Scaffolds sections appropriate to the doc type (resource guide, integration guide, architecture notes, process doc, or general reference).
|
|
72
|
+
- **`/docs verify [file?]`** -- Interactive standalone version of `/meta fix` step 5. Cross-references resource IDs, schema fields, and platform tools in docs against `src/`. Shows a summary, then guides fixes interactively. Can be scoped to a single file.
|
|
73
|
+
|
|
74
|
+
### `/work` Command
|
|
75
|
+
|
|
76
|
+
The `/work` command manages in-progress task tracking across sessions. It uses `docs/in-progress/` for task documents with standardized frontmatter (`status: planned | in-progress | complete`). Operations:
|
|
77
|
+
|
|
78
|
+
- **`/work`** (no arguments) -- Numbered list sorted by status (`in-progress` first) with last-saved date and current step. Pick by number to auto-resume.
|
|
79
|
+
- **`/work create`** -- Guided interview (5 questions) covering objective, acceptance criteria, relation to existing work, investigation needed, and placement. New docs start with `status: planned`. Placement is determined intelligently: related directory, new directory for multi-file tasks, flat file for small tasks.
|
|
80
|
+
- **`/work save`** -- Comprehensive snapshot: progress markers, files modified table, key docs to read on resume, and a copy-pasteable "To continue" prompt. Proactively suggested before context pressure builds.
|
|
81
|
+
- **`/work resume [<name>]`** -- Load a task by number, keyword, or auto-detect. Loads key docs in parallel and verifies referenced files exist. No file paths required.
|
|
82
|
+
- **`/work complete`** -- Seven-step pipeline: resolve target, validate readiness, clean doc (strip resume context, remove progress markers, target 200-400 lines), determine destination in `docs/`, confirm with user, move, verify.
|
|
83
|
+
|
|
84
|
+
When all plan steps for a task are marked COMPLETE and the user appears to be moving on, the agent proactively suggests running `/work complete`.
|
|
85
|
+
|
|
86
|
+
**Directory conventions for `docs/in-progress/`:**
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
docs/in-progress/
|
|
90
|
+
├── crm-integration/
|
|
91
|
+
│ ├── index.mdx # Main task doc
|
|
92
|
+
│ └── attio-schema.mdx # Supporting analysis
|
|
93
|
+
├── email-templates.mdx # Small standalone task
|
|
94
|
+
└── ui-dashboard/
|
|
95
|
+
├── index.mdx # Main task doc
|
|
96
|
+
└── component-list.mdx # Supporting analysis
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
The numbered list is derived from scanning this directory. `index.mdx` is treated as the primary task doc for a directory. On complete, destination in `docs/` is determined by scanning for related existing directories.
|
|
100
|
+
|
|
101
|
+
### `/tutorial` Command
|
|
102
|
+
|
|
103
|
+
The `/tutorial` command shows a track menu on every invocation and runs a progressive learning path adapted to the user's skill profile. Three tracks: Orchestration Concepts (7 lessons), Examples & Advanced Modules (9 standalone modules), and Meta-Framework (5 lessons). Two skill dimensions tracked: `automation` (none / low-code / custom) and `platformNavigation` (none / oriented / comfortable).
|
|
104
|
+
|
|
105
|
+
## Developer Profile
|
|
106
|
+
|
|
107
|
+
The developer profile is stored in `.claude/memory/profile/` as a set of markdown files. It is gitignored -- personal to each developer, not shared with collaborators. Profile data lives in the memory system alongside error patterns, deployment state, and decisions.
|
|
108
|
+
|
|
109
|
+
### Onboarding Flow
|
|
110
|
+
|
|
111
|
+
Profile data is created during `/meta init`. The command runs a 6-question assessment and writes the responses to `memory/profile/`:
|
|
112
|
+
|
|
113
|
+
- **Identity & Goals (3 questions):** What the business does, what to automate, which tools are already in use.
|
|
114
|
+
- **Competency (2 questions):** Command Center familiarity (maps to `platformNavigation`), automation tool familiarity (maps to `automation`). Two additional dimensions (`apiIntegration`, `domainExpertise`) are inferred from these answers.
|
|
115
|
+
- **Communication (1 question):** Step-by-step explanations vs. concise answers.
|
|
116
|
+
|
|
117
|
+
### Profile Structure
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
.claude/memory/profile/
|
|
121
|
+
├── index.md # Profile summary with links to sub-files
|
|
122
|
+
├── identity.md # Organization, industry, goals, integrations
|
|
123
|
+
├── skills.md # Skill dimensions (platformNavigation, apiIntegration, automation, domainExpertise)
|
|
124
|
+
└── preferences.md # Verbosity, guidance style, interaction patterns
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`identity.md` records the organization name, industry, size, project goals, and known tool integrations. `skills.md` stores four skill dimensions as structured values (`platformNavigation`, `apiIntegration`, `automation`, `domainExpertise`) along with a Growth Log table. See [Interaction Guidance](interaction-guidance.mdx) for the full set of per-dimension adaptation rules. `preferences.md` stores verbosity (`detailed / concise`) and proactive guidance preference.
|
|
128
|
+
|
|
129
|
+
### Auto-Update Triggers
|
|
130
|
+
|
|
131
|
+
The agent updates `memory/profile/` files when it observes:
|
|
132
|
+
|
|
133
|
+
- The user successfully completes an advanced task (level upgrade candidate in `skills.md`)
|
|
134
|
+
- The user mentions new tools or integrations not in `identity.md`
|
|
135
|
+
- The user explicitly asks to change preferences
|
|
136
|
+
|
|
137
|
+
The agent does not prompt for confirmation on minor updates. Major changes (level upgrades) are surfaced to the user before writing.
|
|
138
|
+
|
|
139
|
+
## Rules System
|
|
140
|
+
|
|
141
|
+
Six rule files are scaffolded in `.claude/rules/`. Rule files are auto-injected by Claude Code when their path patterns match the current file being edited -- no manual loading needed.
|
|
142
|
+
|
|
143
|
+
| File | Type | When Injected | What It Covers |
|
|
144
|
+
| ----------------------- | --------- | ------------------------------- | ------------------------------------------------------------------- |
|
|
145
|
+
| `sdk-patterns.md` | MANAGED | Any file in `src/` | SDK imports, source structure, runtime, typed adapter patterns |
|
|
146
|
+
| `docs-authoring.md` | MANAGED | Any `.mdx` file in `docs/` | MDX escaping, frontmatter requirements, doc structure |
|
|
147
|
+
| `memory-conventions.md` | MANAGED | Any file in `.claude/memory/` | What belongs in memory, structure, pruning |
|
|
148
|
+
| `project-map.md` | MANAGED | `docs/project-map.mdx` | Auto-generated map conventions, do not edit manually |
|
|
149
|
+
| `task-tracking.md` | MANAGED | Any file in `docs/in-progress/` | `/work` command, task doc format, status values |
|
|
150
|
+
| `workspace-patterns.md` | INIT_ONLY | Any file in the project | Project-specific patterns (starts empty, grows via error promotion) |
|
|
151
|
+
|
|
152
|
+
MANAGED rules are updated by `elevasis-sdk update` when the SDK ships a new version. `workspace-patterns.md` is INIT_ONLY -- it belongs to the project and is never overwritten. When an error recurs 3+ times, the agent promotes a fix into this file so future sessions learn from past mistakes.
|
|
153
|
+
|
|
154
|
+
## Interaction Guidance
|
|
155
|
+
|
|
156
|
+
The `CLAUDE.md` Interaction Guidance section translates skill dimensions from `memory/profile/skills.md` into concrete behavior rules. Rather than fixed tiers, the agent adapts per dimension:
|
|
157
|
+
|
|
158
|
+
- **Match vocabulary to level.** Avoid jargon for beginners; be precise for experts. Define technical terms in parentheses the first time they appear.
|
|
159
|
+
- **Show complete code for lower-programming users.** Users below intermediate programming level get full working files, never fragments they can't place.
|
|
160
|
+
- **Explain "why" before "how" for users new to automation.** Users comfortable with code get SDK-specific pattern focus instead.
|
|
161
|
+
- **Leverage domain expertise.** If the user knows sales but not code, ask for business process descriptions and translate.
|
|
162
|
+
- **Log observed growth.** When the agent observes the user doing something they previously needed help with, add an entry to `skills.md` Growth Log.
|
|
163
|
+
|
|
164
|
+
For detailed per-dimension adaptation rules, read `reference/developer/interaction-guidance.mdx`.
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
**Last Updated:** 2026-03-03
|