my 精选
Inspect and optionally adjust the agent's runtime state. Use to check the current model or preset, context window and runtime limits, workspace and tool configuration, and request routing metadata such as channel, chat ID, and sender ID; diagnose unavailable capabilities; change allowed runtime settings; or store temporary session scratchpad values.
安装方式
cp -r nanobot/skills/my ~/.claude/skills/my把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/
https://raw.githubusercontent.com/HKUDS/nanobot/23941355a8932609d7fc7ba2820f162d1ea7bea5/nanobot/skills/my/SKILL.md下载后另存为 ~/.claude/skills/my/SKILL.md。链接锁定采集时的 commit,内容与本站展示一致。
整仓一次性获取:git clone --depth 1 https://github.com/HKUDS/nanobot.git
依赖与权限
- 需要 API Key —— 使用前需配置相应的密钥环境变量
- 无需联网
- 无外部命令依赖
- 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
SKILL.md 正文
Self-Awareness
How to use
- Identify the situation from the categories below
- Call the my tool with the appropriate action
- If set, warn the user before changing impactful settings such as the model or runtime limits
- For detailed examples, read [references/examples.md](references/examples.md)
When to check
<rule>
Diagnose before explaining. When something doesn't work, check your state first.
</rule>
<rule>
Check budget before complex tasks. Know your limits before committing.
</rule>
<rule>
Recall across turns. Store preferences in your scratchpad, read them back later.
</rule>
When to set
<rule>
Only set when benefit is clear and user is informed. Warn before changing model.
</rule>
| Situation | Command |
|---|---|
| Check capacity for a large task | my(action="check", key="context_window_tokens") |
| Switch model or context capacity | my(action="set", key="model_preset", value="<preset-name>") |
| Long multi-step task | my(action="set", key="max_iterations", value=80) |
Tradeoff: Bias toward stability. Only set when defaults are genuinely insufficient.
Anti-patterns
<rule>
Don't check every turn. Costs a tool call. Use when you need information, not reflexively.
</rule>
<rule>
Don't store sensitive data. No API keys, passwords, or tokens in scratchpad.
</rule>
<rule>
Don't set workspace. Does not update file tool boundaries — won't work.
</rule>
Constraints
model_presetis saved for the current session; other modifications are in-memory only- Direct
modelandcontext_window_tokenswrites are rejected during active sessions because they would change the shared instance default. Use a configuredmodel_presetinstead. - Protected params have type/range validation:
max_iterations(1–100),context_window_tokens(4096–1M),model(non-empty str) - If
tools.my.allow_setis false, check only
Related tools
| Need | Use | Persists? |
|---|---|---|
| Per-session temp state | my(action="set", key="...", value=...) | No |
| Long-term facts | Memory skill (MEMORY.md, USER.md) | Yes |
| Permanent config change | Edit config file | Yes |
Rule of thumb: Tomorrow? Memory. This turn only? My.
质量与来源
- 所属仓库
- HKUDS/nanobot
- 仓库星标
- 4.9 万
- 最近更新
- 今天
- 采集时间
- 今天
- commit
- 23941355a893
- 内容指纹
- sha256:51d04bd5aa7507e
- 文件路径
- nanobot/skills/my/SKILL.md