atlas-self-configure
它能做什么
这个技能让你的 AI 查看并更新你的 Atlas 偏好设置,这些设置保存在一个可编辑的设置文件中。适合希望由 AI 替自己修改设置的 Atlas 用户。
适用场景
- ✓当你请 AI 替你修改某项 Atlas 设置时。
- ✓当你想查看当前的 Atlas 偏好设置时。
- ✓当你希望只为某一个项目修改某项设置时。
技能链接
https://github.com/pacifio/atlas/blob/main/src-tauri/resources/skills/atlas-self-configure/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请显示我当前的 Atlas 偏好设置,并修改我需要的那一项,把默认值改短一些。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会找到 Atlas 设置文件,读取它,并只进行你要求的修改。Atlas 会检查它看到的每一项修改。如果设置文件尚不存在,技能会如实告知,而不会自行创建。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Atlas self-configure
Atlas's user-facing preferences live in one human-editable file,
config.toml. This skill is how you (an agent) read and change it safely —
without touching anything else Atlas persists.
Where the file lives
~/.config/atlas/config.toml
The same path on every platform. If $XDG_CONFIG_HOME is set to an absolute
path, it's $XDG_CONFIG_HOME/atlas/config.toml instead — check that variable
before assuming.
Editing that file is the supported mechanism, and the only one available to you: Atlas's config commands are IPC endpoints reachable from its own UI, not agent tools. Atlas watches the file and validates every change you make (see step 6 below), so a direct edit is a first-class way in — not a workaround.
If the file does not exist yet, Atlas hasn't created it (a fresh install before first launch, or the user deleted it). Do not create one speculatively — report that to the user instead of guessing at defaults.
One project only: the project's own config.toml
A project can override a few keys for itself in a config.toml inside the
project's .atlas/ directory. Use it only when the user asks for a change in
this project rather than everywhere. Its header says what it is; the rules:
- It holds only the keys the project changes. The allowed keys are the ones whose comment in the global file says a project can override it. Atlas ignores any other key there.
- Some of those a project can only turn off (the comment says "never on"). If the user wants one on for a single project while it's off everywhere else, say that Atlas won't honour it and stop.
- Delete a key's line to go back to the global value.
- The same care applies as below: read first, explain, change only your
lines, write atomically. It may not exist yet; unlike the global file,
creating it is fine — start it with
schemaVersion = 1and[settings].
The schema is in the file
Atlas writes a comment above every key: what it does, its default, and any constraint on its value — a numeric range, an exact set of allowed strings, "must not be empty". Read those comments and follow them. They are generated from the same table Atlas validates against, so they cannot drift from what it will actually accept.
Do not work from a schema you remember, or from one you saw in another project. The file in front of you is authoritative, and it is the only thing guaranteed to match the Atlas build the user is running.
Two things the comments won't spell out:
- A key that isn't there. Some settings mean "unset" by being absent —
TOML has no null. The comment for such a key sits above whichever key
follows it, so read the whole
[settings]block, not just the lines with values on them. To clear one of these, delete its line; never write an empty string. - A key Atlas doesn't recognize. It's preserved untouched and reported to the user as a diagnostic. Never delete a key you don't recognize.
Making a change
Read the whole file first. You need its comments and formatting to avoid disturbing them, and you need the target key's comment to know what a valid value even is.
Explain what you're about to change to the user before writing: the key, its current value, the new value, and what it does — quoting the file's own comment. Don't silently flip a setting.
Change only the line (or few lines) you mean to change. Leave every other key, comment, and blank line exactly as it was — including the comment above the key you're editing, which is Atlas's to rewrite, not yours. Do not reformat, reorder, or re-indent anything:
# Inline git blame — a dim author/age/summary annotation trailing the # active line in the editor. (default: true) -someSetting = true +someSetting = falseValidate the value against that key's comment before writing. If the comment states a range or a fixed set of values and the user asked for something outside it, say so and stop; don't write it and let Atlas reject it.
Write atomically: write your edited content to a new file in the same directory (e.g.
config.toml.tmp.<random>), then rename/move it overconfig.toml. Never edit in place — a crash or a concurrent Atlas reload mid-write must not leave a half-written file behind.Re-read the file after writing to confirm your change landed.
Atlas re-validates the whole file whenever it notices a change
常见问题
设置文件在哪里?
在你主目录下的 Atlas 配置文件夹中,或在 XDG 配置变量所设置的文件夹中。
如果文件不存在怎么办?
技能不会创建它,而是告诉你 Atlas 尚未生成该文件。
一个项目可以有自己的设置吗?
可以。项目可以在自己的文件中覆盖少数允许的设置,且仅对该项目生效。
详情
作者的原始描述
Inspect and safely update Atlas user preferences through Atlas's config.toml.
repo: pacifio/atlas
热度
- GitHub 星标
- 9.6k
- 排名
- #12223
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …