@bastani/atomic 0.10.14 → 0.10.15-alpha.2
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/CHANGELOG.md +31 -0
- package/README.md +1 -1
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +3 -3
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
- package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/{sdk-B5LEWGGI.js → sdk-OHKMDJ74.js} +27 -5
- package/dist/_shared/{sdk-B5LEWGGI.js.map → sdk-OHKMDJ74.js.map} +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-Q3MWKUK4.js +2 -2
- package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
- package/dist/_shared/{startup-0-2-5QHPCEON.js → startup-0-2-2HUMCPKX.js} +14 -16
- package/dist/_shared/startup-0-2-2HUMCPKX.js.map +1 -0
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
- package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
- package/dist/_shared/startup-0-5-YDW47QX6.js +3 -3
- package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +6 -30
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +3 -3
- package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/auth-cli.code.js +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +1 -1
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/compaction/compactor.d.ts +0 -8
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +2 -2
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +3 -3
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +2 -2
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +2 -2
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +1 -1
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +2 -2
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +2 -2
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +2 -2
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +1 -1
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +1 -1
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +21 -1
- package/dist/index.js +2 -2
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/print-mode.js +1 -1
- package/dist/package-manager-cli.code.js +2 -2
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/utils/startup-database-spare.code.js +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks/reference.md +182 -0
- package/docs/background-tasks.md +98 -405
- package/docs/build.md +67 -27
- package/docs/changelog.mdx +11 -1
- package/docs/codemode.md +108 -39
- package/docs/compaction/branch-summaries.md +54 -0
- package/docs/compaction/custom-compactors.md +161 -0
- package/docs/compaction/memory-compaction.md +77 -0
- package/docs/compaction/reference.md +86 -38
- package/docs/compaction.md +51 -252
- package/docs/computer-use.md +169 -321
- package/docs/containerization.md +71 -57
- package/docs/custom-provider/api-reference.md +119 -25
- package/docs/custom-provider/oauth.md +114 -132
- package/docs/custom-provider/override.md +37 -27
- package/docs/custom-provider/registration.md +107 -83
- package/docs/custom-provider/streaming.md +85 -71
- package/docs/custom-provider.md +85 -52
- package/docs/development.md +39 -29
- package/docs/docs.json +80 -67
- package/docs/environment-variables.md +94 -44
- package/docs/extensions/api-reference.md +86 -43
- package/docs/extensions/authoring.md +162 -154
- package/docs/extensions/events.md +80 -25
- package/docs/extensions/examples.md +90 -85
- package/docs/extensions/ui.md +206 -82
- package/docs/extensions.md +79 -108
- package/docs/getting-started/authentication.md +67 -36
- package/docs/getting-started/first-session.md +53 -43
- package/docs/getting-started/installation.md +117 -90
- package/docs/getting-started/project-instructions.md +48 -34
- package/docs/guides/configuration.md +82 -20
- package/docs/guides/non-interactive.md +66 -24
- package/docs/guides/resume-on-any-machine.md +135 -82
- package/docs/guides/team-setup.md +114 -105
- package/docs/guides.md +76 -32
- package/docs/herdr.md +16 -17
- package/docs/how-atomic-works.md +140 -0
- package/docs/index.md +58 -44
- package/docs/intercom/operations.md +141 -151
- package/docs/intercom/reference.md +85 -108
- package/docs/intercom.md +84 -145
- package/docs/json.md +120 -67
- package/docs/keybindings.md +85 -49
- package/docs/libraries/agent-core.md +137 -275
- package/docs/libraries/ai.md +100 -84
- package/docs/libraries/codemode.md +210 -300
- package/docs/libraries/schema.md +59 -53
- package/docs/libraries/storage-postgres.md +49 -35
- package/docs/libraries/telemetry.md +153 -354
- package/docs/libraries/tui.md +265 -393
- package/docs/libraries.md +42 -26
- package/docs/llama-cpp.md +171 -161
- package/docs/mcp-servers.md +90 -51
- package/docs/models/choose-a-model.md +188 -0
- package/docs/models/reference.md +74 -30
- package/docs/models.md +153 -88
- package/docs/orchestration/migrating-workflows.md +23 -16
- package/docs/orchestration/patterns.md +39 -44
- package/docs/orchestration.md +65 -26
- package/docs/packages/authoring.md +51 -29
- package/docs/packages/reference.md +42 -21
- package/docs/packages.md +69 -58
- package/docs/programmatic.md +118 -24
- package/docs/prompt-templates.md +84 -83
- package/docs/providers/reference.md +43 -48
- package/docs/providers.md +219 -451
- package/docs/quickstart.md +140 -120
- package/docs/reference/cli.md +135 -97
- package/docs/reference.md +20 -19
- package/docs/rpc/examples.md +76 -20
- package/docs/rpc/extension-ui.md +64 -38
- package/docs/rpc/protocol.md +361 -110
- package/docs/rpc.md +57 -17
- package/docs/sdk/reference.md +409 -534
- package/docs/sdk/storage.md +53 -13
- package/docs/sdk/structured-decisions.md +82 -56
- package/docs/sdk/web-server.md +57 -43
- package/docs/sdk.md +106 -84
- package/docs/security.md +42 -64
- package/docs/session-format.md +62 -38
- package/docs/sessions.md +99 -214
- package/docs/settings.md +165 -195
- package/docs/shell-aliases.md +9 -6
- package/docs/skills/authoring.md +69 -48
- package/docs/skills/reference.md +51 -20
- package/docs/skills.md +99 -148
- package/docs/slash-commands.md +129 -0
- package/docs/storage/custom-adapters.md +160 -85
- package/docs/storage/jsonl.md +81 -66
- package/docs/storage/postgres/pgbouncer.md +120 -126
- package/docs/storage/postgres/tuning.md +120 -143
- package/docs/storage/postgres.md +314 -330
- package/docs/storage/sqlite.md +71 -42
- package/docs/storage.md +298 -302
- package/docs/subagents/authoring.md +55 -38
- package/docs/subagents/reference.md +73 -33
- package/docs/subagents.md +119 -187
- package/docs/terminal-setup.md +51 -39
- package/docs/themes/reference.md +23 -19
- package/docs/themes.md +142 -127
- package/docs/tmux.md +47 -55
- package/docs/tools.md +147 -109
- package/docs/tui/reference.md +166 -214
- package/docs/tui.md +196 -341
- package/docs/usage.md +118 -138
- package/docs/verification.md +79 -51
- package/docs/web-access.md +121 -101
- package/docs/windows.md +26 -27
- package/docs/worktree-snapshots/reference.md +245 -0
- package/docs/worktree-snapshots.md +71 -259
- package/package.json +8 -8
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +0 -1
- package/docs/guides/intercom.md +0 -32
- package/docs/guides/orchestration.md +0 -28
- package/docs/guides/subagents.md +0 -37
- package/docs/termux.md +0 -118
package/docs/shell-aliases.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
2
|
+
title: "Enable shell aliases"
|
|
3
3
|
sidebarTitle: "Shell aliases"
|
|
4
4
|
description: "Expand Bash or Zsh aliases in Atomic shell commands with shellCommandPrefix and understand platform caveats."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Atomic runs Bash in non-interactive mode (`bash -c`), which does not expand shell aliases by default.
|
|
7
|
+
Atomic runs Bash in non-interactive mode (`bash -c`), which does not expand shell aliases by default. Set `shellCommandPrefix` in settings to load your aliases before each shell command.
|
|
8
8
|
|
|
9
9
|
## Configure `shellCommandPrefix`
|
|
10
10
|
|
|
@@ -18,12 +18,15 @@ Add `shellCommandPrefix` to `~/.atomic/agent/settings.json` or a trusted project
|
|
|
18
18
|
|
|
19
19
|
Adjust the rc file path (`~/.zshrc`, `~/.bashrc`, or another profile file) to match where your aliases are defined.
|
|
20
20
|
|
|
21
|
-
## Scope
|
|
21
|
+
## Scope and caveats
|
|
22
|
+
|
|
23
|
+
<Warning>
|
|
24
|
+
**Do not set `shellCommandPrefix` on native Windows** unless you intentionally disable one shell side (for example, by excluding `bash`). On native Windows, Atomic prepends `shellCommandPrefix` to **both** model `bash` tool calls (which run in Bash) and interactive `!`/`!!` commands (which run in PowerShell), while the model `powershell` tool ignores it. Because Bash and PowerShell use incompatible syntax, PowerShell syntax breaks every model `bash` call and Bash syntax breaks every `!`/`!!` command. Inside WSL, both run in Bash, so Bash syntax works for both.
|
|
25
|
+
</Warning>
|
|
22
26
|
|
|
23
27
|
- **Applies to both model and interactive shell commands:** Atomic prepends `shellCommandPrefix` followed by a newline (`<prefix>\n<command>`) to every model `bash` tool call and every interactive `!` and `!!` command.
|
|
24
28
|
- **Keep the prefix silent and error-free:** Any syntax error, `set -e` failure, or `exit` inside `shellCommandPrefix` aborts every shell command. Any text printed to stdout by the prefix is prepended to every command output returned to the model.
|
|
25
29
|
- **Limitations of `grep '^alias '` and Bash syntax:** `grep '^alias ' ~/.zshrc` imports only single-line alias definitions starting at column 0. It skips shell functions, exported environment variables, indented or conditional aliases, and Zsh-only syntax such as `alias -g` or `alias -s` (which fails in Bash). Because `shopt -s expand_aliases` is Bash-specific, it also fails if no `bash` binary exists on a Unix system and Atomic falls back to `/bin/sh`.
|
|
26
|
-
- **Blueprint worktrees:**
|
|
27
|
-
- **Native Windows conflict:** On native Windows, Atomic prepends `shellCommandPrefix` to **both** model `bash` tool calls (which run in Bash) and interactive `!` and `!!` commands (which run in PowerShell), while the model `powershell` tool ignores `shellCommandPrefix`. Because Bash and PowerShell have incompatible syntax, putting PowerShell syntax in `shellCommandPrefix` breaks every model `bash` tool call, and putting Bash syntax breaks every `!` and `!!` command. Leave `shellCommandPrefix` unset on native Windows unless you intentionally disable one side (for example, by excluding `bash`). Inside WSL, both `bash` tool calls and `!`/`!!` run in Bash, so Bash syntax works for both.
|
|
30
|
+
- **Blueprint worktrees:** When resuming inside a [blueprint worktree](/guides/resume-on-any-machine#set-the-environment-up-with-a-blueprint) that sets `$ENVRC`, Atomic automatically appends the blueprint environment setup after `shellCommandPrefix`.
|
|
28
31
|
|
|
29
|
-
See [Settings: Shell](/settings#shell) and [Windows
|
|
32
|
+
See [Settings: Shell](/settings#shell) and [Run Atomic on Windows](/windows) for full shell configuration details.
|
package/docs/skills/authoring.md
CHANGED
|
@@ -4,106 +4,127 @@ sidebarTitle: "Write a skill"
|
|
|
4
4
|
description: "Structure a skill directory or standalone file, write SKILL.md instructions, and follow a complete worked example."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
Create a custom skill to teach Atomic a repeatable workflow, domain convention, or script-backed procedure that loads only when relevant. Save project skills in `.atomic/skills/<name>/SKILL.md` or personal global skills in `~/.atomic/agent/skills/<name>/SKILL.md`.
|
|
8
|
+
|
|
7
9
|
## Skill structure
|
|
8
10
|
|
|
9
|
-
A skill is usually a directory containing a `SKILL.md` file plus any scripts, references, or assets it needs
|
|
11
|
+
A skill is usually a directory containing a required `SKILL.md` file plus any optional scripts, references, or assets it needs:
|
|
10
12
|
|
|
11
13
|
```text
|
|
12
14
|
my-skill/
|
|
13
|
-
├── SKILL.md # Required: frontmatter + instructions
|
|
14
|
-
├── scripts/ #
|
|
15
|
+
├── SKILL.md # Required: YAML frontmatter + instructions
|
|
16
|
+
├── scripts/ # Optional helper scripts
|
|
15
17
|
│ └── process.sh
|
|
16
|
-
├── references/ #
|
|
18
|
+
├── references/ # Optional detailed docs loaded on demand
|
|
17
19
|
│ └── api-reference.md
|
|
18
|
-
└── assets/
|
|
20
|
+
└── assets/ # Optional templates or static files
|
|
19
21
|
└── template.json
|
|
20
22
|
```
|
|
21
23
|
|
|
22
|
-
Once a directory contains `SKILL.md`, Atomic stops recursing inside it.
|
|
24
|
+
Once a directory contains `SKILL.md`, Atomic treats that directory as a single skill root and stops recursing inside it. Markdown files under `references/` are never mistaken for separate skills, and subdirectories cannot declare nested skills.
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
<Note>
|
|
27
|
+
You can also create a single-file skill directly inside `~/.atomic/agent/skills/<name>.md` or `.atomic/skills/<name>.md` (always set `name:` in frontmatter so standalone files do not default to `skills` and collide). In `~/.agents/skills/` and `.agents/skills/`, root `.md` files are ignored—place each skill inside its own subdirectory with `SKILL.md`.
|
|
28
|
+
</Note>
|
|
25
29
|
|
|
26
|
-
|
|
30
|
+
## Create your first skill
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
description: What this skill does and when to use it. Be specific.
|
|
32
|
-
---
|
|
32
|
+
<Steps>
|
|
33
|
+
<Step title="Create the skill folder">
|
|
34
|
+
Create a directory named after your skill in your project (`.atomic/skills/my-skill`) or global agent folder (`~/.atomic/agent/skills/my-skill`):
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
```bash
|
|
37
|
+
mkdir -p .atomic/skills/my-skill/scripts .atomic/skills/my-skill/references
|
|
38
|
+
```
|
|
39
|
+
</Step>
|
|
40
|
+
<Step title="Write SKILL.md">
|
|
41
|
+
Add YAML frontmatter with `name` and `description`, followed by concise Markdown instructions. Reference supporting files with relative paths and invoke helper scripts through `skill://` addresses so commands work from any working directory:
|
|
35
42
|
|
|
36
|
-
|
|
43
|
+
````markdown
|
|
44
|
+
---
|
|
45
|
+
name: my-skill
|
|
46
|
+
description: Process input files with the team validator and report schema errors. Use when validating release manifests.
|
|
47
|
+
---
|
|
37
48
|
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
cd /path/to/skill && npm install
|
|
41
|
-
```
|
|
49
|
+
# My Skill
|
|
42
50
|
|
|
43
|
-
##
|
|
51
|
+
## One-time setup
|
|
44
52
|
|
|
45
|
-
|
|
46
|
-
./scripts/process.sh <input>
|
|
47
|
-
```
|
|
48
|
-
````
|
|
53
|
+
If dependencies are not installed yet, run `npm install` once inside this skill's directory (for example `cd .atomic/skills/my-skill && npm install`).
|
|
49
54
|
|
|
50
|
-
|
|
55
|
+
## Usage
|
|
51
56
|
|
|
52
|
-
|
|
57
|
+
Run the validator from any working directory:
|
|
53
58
|
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
```
|
|
59
|
+
```bash
|
|
60
|
+
bash skill://my-skill/scripts/process.sh <input>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Read `references/api-reference.md` for full error code definitions.
|
|
64
|
+
````
|
|
65
|
+
</Step>
|
|
66
|
+
<Step title="Reload and test">
|
|
67
|
+
Run `/reload` in an active Atomic session, then test the skill with `/skill:my-skill` or ask a matching question in chat to confirm the model loads it from its description.
|
|
68
|
+
</Step>
|
|
69
|
+
</Steps>
|
|
70
|
+
|
|
71
|
+
<Warning>
|
|
72
|
+
Quote any `description` that contains a colon followed by a space (for example `description: "Search docs: fast local lookup"`). An unquoted `: ` triggers a YAML parse error and prevents the skill from loading.
|
|
73
|
+
</Warning>
|
|
57
74
|
|
|
58
|
-
|
|
75
|
+
## Referencing files and scripts
|
|
59
76
|
|
|
60
|
-
|
|
77
|
+
- **Reference documents.** Write relative paths from the skill folder in prose, such as `references/api-reference.md`. When Atomic loads a skill, it tells the model `Base directory for this skill: skill://<name>/`, so the model reads supporting files via `skill://<name>/references/api-reference.md` without ever needing an absolute path (see [Skill addresses](/skills#skill-addresses)).
|
|
78
|
+
- **Helper scripts.** Invoke scripts with unquoted `skill://` paths—such as `bash skill://my-skill/scripts/process.sh` or `node skill://my-skill/scripts/check.js`—so they work regardless of the user's current working directory. Either make scripts executable (`chmod +x`) or invoke them with an explicit interpreter (`bash`, `node`, `python3`).
|
|
61
79
|
|
|
62
|
-
|
|
63
|
-
- Give a short reason for material constraints.
|
|
64
|
-
- Use decision rules for judgment calls instead of `ALWAYS` or `NEVER` language.
|
|
65
|
-
- Put detailed or model-specific material in `references/` so it loads only when needed.
|
|
66
|
-
- Require evidence or validation results where correctness matters. Do not ask models to reproduce private reasoning or repeatedly verify their own work.
|
|
80
|
+
## Writing effective instructions
|
|
67
81
|
|
|
68
|
-
|
|
82
|
+
Keep `SKILL.md` concise and lead with the intended outcome:
|
|
83
|
+
|
|
84
|
+
- State clear completion and stop conditions so the agent knows when to finish.
|
|
85
|
+
- Give a short reason for important constraints rather than relying on blanket `ALWAYS`/`NEVER` rules.
|
|
86
|
+
- Use explicit decision rules for judgment calls.
|
|
87
|
+
- Move bulky or model-specific reference tables into `references/` so they load only when needed.
|
|
88
|
+
- Ask for observed tool output or verification results rather than reconstructed reasoning.
|
|
89
|
+
|
|
90
|
+
## Worked example
|
|
69
91
|
|
|
70
92
|
```text
|
|
71
93
|
brave-search/
|
|
72
94
|
├── SKILL.md
|
|
95
|
+
├── package.json
|
|
73
96
|
├── search.js
|
|
74
97
|
└── content.js
|
|
75
98
|
```
|
|
76
99
|
|
|
77
|
-
|
|
100
|
+
`SKILL.md`:
|
|
78
101
|
|
|
79
102
|
````markdown
|
|
80
103
|
---
|
|
81
104
|
name: brave-search
|
|
82
|
-
description: Web search and content extraction via Brave Search API. Use
|
|
105
|
+
description: Web search and content extraction via the Brave Search API. Use when searching documentation, facts, or web pages.
|
|
83
106
|
---
|
|
84
107
|
|
|
85
108
|
# Brave Search
|
|
86
109
|
|
|
87
|
-
##
|
|
110
|
+
## One-time setup
|
|
88
111
|
|
|
89
|
-
|
|
90
|
-
cd /path/to/brave-search && npm install
|
|
91
|
-
```
|
|
112
|
+
Install dependencies once from the skill folder (for example `cd ~/.atomic/agent/skills/brave-search && npm install`), and set `BRAVE_API_KEY` in your environment.
|
|
92
113
|
|
|
93
114
|
## Search
|
|
94
115
|
|
|
95
116
|
```bash
|
|
96
|
-
|
|
97
|
-
|
|
117
|
+
node skill://brave-search/search.js "query" # Basic search
|
|
118
|
+
node skill://brave-search/search.js "query" --content # Include extracted page content
|
|
98
119
|
```
|
|
99
120
|
|
|
100
|
-
## Extract page
|
|
121
|
+
## Extract a page
|
|
101
122
|
|
|
102
123
|
```bash
|
|
103
|
-
|
|
124
|
+
node skill://brave-search/content.js https://example.com
|
|
104
125
|
```
|
|
105
126
|
````
|
|
106
127
|
|
|
107
128
|
## Next steps
|
|
108
129
|
|
|
109
|
-
|
|
130
|
+
Review [Frontmatter fields](/skills/reference#frontmatter) and [Validation rules](/skills/reference#validation) before publishing your skill or bundling it in an [Atomic package](/packages/authoring).
|
package/docs/skills/reference.md
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Skill format reference"
|
|
3
|
-
sidebarTitle: "
|
|
4
|
-
description: "Reference for SKILL.md frontmatter fields, naming rules, validation behavior, and
|
|
3
|
+
sidebarTitle: "Skill format"
|
|
4
|
+
description: "Reference for SKILL.md frontmatter fields, naming rules, validation behavior, collision qualifiers, and XML expansion format."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Frontmatter
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Atomic implements the [Agent Skills specification](https://agentskills.io/specification#frontmatter-required):
|
|
10
10
|
|
|
11
11
|
| Field | Required | Used by Atomic | Description |
|
|
12
12
|
| --- | --- | --- | --- |
|
|
13
|
-
| `name` | Spec required (optional in Atomic) | Yes | Max 64
|
|
14
|
-
| `description` | Yes | Yes | Max 1,024
|
|
15
|
-
| `disable-model-invocation` | No | Yes | Strict boolean `true` hides the skill from the system prompt so it runs only
|
|
13
|
+
| `name` | Spec required (optional in Atomic) | Yes | Max 64 characters. Lowercase `a-z`, `0-9`, and hyphens. Defaults to the parent directory name if omitted. Standalone root `.md` files must set `name` explicitly or they default to `skills` and collide. |
|
|
14
|
+
| `description` | Yes | Yes | Max 1,024 characters. Non-empty summary of what the skill does and when to use it. |
|
|
15
|
+
| `disable-model-invocation` | No | Yes | Strict boolean `true` hides the skill from the automatic system prompt list so it runs only via `/skill:name`. A string `"true"` does not disable model invocation. |
|
|
16
16
|
| `license` | No | Ignored | License name or reference to a bundled file. Accepted for spec portability. |
|
|
17
17
|
| `compatibility` | No | Ignored | Environment requirements (spec max 500 chars; not enforced by Atomic). |
|
|
18
18
|
| `metadata` | No | Ignored | Arbitrary key-value mapping. Accepted for spec portability. |
|
|
19
|
-
| `allowed-tools` | No | Ignored | Space-delimited tool list from the Agent Skills spec.
|
|
19
|
+
| `allowed-tools` | No | Ignored | Space-delimited tool list from the Agent Skills spec. Parsed without error; does not grant or pre-approve tool permissions in Atomic. |
|
|
20
20
|
|
|
21
21
|
### Name rules
|
|
22
22
|
|
|
23
23
|
- 1 to 64 characters
|
|
24
|
-
- Lowercase letters,
|
|
25
|
-
- No leading or trailing hyphens
|
|
26
|
-
- No consecutive hyphens
|
|
24
|
+
- Lowercase ASCII letters (`a-z`), digits (`0-9`), and hyphens (`-`) only
|
|
25
|
+
- No leading or trailing hyphens, and no consecutive hyphens (`--`)
|
|
27
26
|
- Match the parent directory name for portability with the Agent Skills specification (Atomic does not warn when `name` differs from the parent directory)
|
|
28
27
|
|
|
29
28
|
Valid: `pdf-processing`, `data-analysis`, `code-review`
|
|
@@ -32,23 +31,19 @@ Invalid: `PDF-Processing`, `-pdf`, `pdf--processing`
|
|
|
32
31
|
|
|
33
32
|
### Description best practices
|
|
34
33
|
|
|
35
|
-
The description
|
|
36
|
-
|
|
37
|
-
Good:
|
|
34
|
+
The description controls when the model chooses to load the skill. Be concrete about triggers and quote any value containing `: ` so YAML parses it cleanly.
|
|
38
35
|
|
|
39
36
|
```yaml
|
|
37
|
+
# Good
|
|
40
38
|
description: Extracts text and tables from PDF files, fills PDF forms, and merges multiple PDFs. Use when working with PDF documents.
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Poor:
|
|
44
39
|
|
|
45
|
-
|
|
40
|
+
# Poor
|
|
46
41
|
description: Helps with PDFs.
|
|
47
42
|
```
|
|
48
43
|
|
|
49
44
|
## Validation
|
|
50
45
|
|
|
51
|
-
Atomic validates `name` and `description` against the Agent Skills standard. Most
|
|
46
|
+
Atomic validates `name` and `description` against the Agent Skills standard. Most constraint violations emit warnings while still loading the skill:
|
|
52
47
|
|
|
53
48
|
- `name` exceeds 64 characters or contains invalid characters
|
|
54
49
|
- `name` starts or ends with a hyphen, or contains consecutive hyphens
|
|
@@ -56,6 +51,42 @@ Atomic validates `name` and `description` against the Agent Skills standard. Mos
|
|
|
56
51
|
|
|
57
52
|
Unknown frontmatter fields are ignored.
|
|
58
53
|
|
|
59
|
-
Declared skills (`SKILL.md` files and root `.md` files with skill frontmatter) with a missing, empty, or whitespace-only `description`
|
|
54
|
+
Declared skills (`SKILL.md` files and root `.md` files with skill frontmatter) with a missing, empty, or whitespace-only `description` emit a warning and are skipped. Malformed YAML frontmatter in `SKILL.md` also emits a warning and skips that file. Non-skill Markdown files without valid skill frontmatter (such as `README.md`) are ignored silently.
|
|
55
|
+
|
|
56
|
+
Symlinks pointing to the same real file are deduplicated silently. Name collisions (the same `name` declared by two or more distinct real files) emit diagnostics, keep the first skill in [resource precedence order](/packages/reference#resource-precedence-order) for bare `/skill:name`, and generate `@source` qualified aliases for the colliding candidates.
|
|
57
|
+
|
|
58
|
+
## Collision qualifiers and expansion
|
|
59
|
+
|
|
60
|
+
### Source-qualifier resolution
|
|
61
|
+
|
|
62
|
+
Qualified aliases (`<name>@<qualifier>`) exist only when two or more distinct files share the same skill name. Atomic assigns qualifiers in this order until every candidate is unique:
|
|
63
|
+
|
|
64
|
+
1. **Source family:** `project`, `user`, or `builtin` when that family has only one colliding candidate.
|
|
65
|
+
2. **Package name:** If one family has multiple candidates from packages, use the npm package name without leading `@` or the git `owner/repo` path.
|
|
66
|
+
3. **Shortest unique parent path:** If multiple candidates remain in the same family, use the shortest unique parent directory suffix.
|
|
67
|
+
4. **Hash fallback:** If paths still collide, fall back to `<family>-<8-hex-hash>`.
|
|
68
|
+
5. **Cross-family disambiguation:** If two different families produce the same qualifier, Atomic prefixes each as `<family>/<qualifier>`.
|
|
69
|
+
|
|
70
|
+
Aliases recalculate on `/reload`, so a qualified alias disappears as soon as its name collision is resolved.
|
|
71
|
+
|
|
72
|
+
### Expansion format and error behavior
|
|
73
|
+
|
|
74
|
+
When a `/skill:<selector>` command expands, Atomic wraps the skill body (with frontmatter stripped) in a `<skill>` XML block recording the selector, its `skill://` address, a stable candidate ID, and the base folder for relative paths:
|
|
75
|
+
|
|
76
|
+
```xml
|
|
77
|
+
<skill name="brave-search" location="skill://brave-search" candidate="skill_0123456789abcdef0123">
|
|
78
|
+
References are relative to skill://brave-search/.
|
|
79
|
+
|
|
80
|
+
...skill instructions...
|
|
81
|
+
</skill>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Any arguments after `/skill:<selector>` are trimmed and appended after `</skill>`, separated by a blank line with no `User:` prefix.
|
|
85
|
+
|
|
86
|
+
Qualified selectors are exact: an unknown or ambiguous `/skill:<name>@<qualifier>` never falls back to the bare winner. Atomic reports an expansion diagnostic and returns the original prompt text unchanged (sending it verbatim to the model).
|
|
87
|
+
|
|
88
|
+
### Programmatic and RPC catalog access
|
|
60
89
|
|
|
61
|
-
|
|
90
|
+
- **Extensions:** `ctx.getSkillCatalog()` exposes the loaded catalog, and `atomic.getCommands()` returns the advertised `/skill:name` and `/skill:name@qualifier` command names (see [Extension API reference](/extensions/api-reference)).
|
|
91
|
+
- **RPC:** `get_commands` returns the same advertised skill command names (see [RPC protocol](/rpc/protocol)).
|
|
92
|
+
- **SDK:** Use `DefaultResourceLoader` (`additionalSkillPaths`, `noSkills`, `skillsOverride`) to inspect or override loaded skills (see [SDK skills](/sdk/reference#skills)).
|