跳到正文
Skillpedia
智能体50k · #3600

my

它能做什么

这个技能教你的智能体在出现异常时检查自身的容量和设置,并保存简短的笔记供以后使用。适合排查运行缓慢或频繁触及上限的智能体的人。

适用场景

  • ✓当你的智能体似乎卡住或失败,需要检查其运行状态的时候。
  • ✓当一项大型任务可能需要更多上下文空间或更多步骤的时候。
  • ✓当你希望智能体记住某个偏好,并在之后的对话中沿用的时候。

技能链接

https://github.com/HKUDS/nanobot/blob/main/nanobot/skills/my/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/nanobot/blob/main/nanobot/skills/my/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“开始之前,你能检查一下是否有足够的空间处理这份大型文档吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会调用内置工具,读取或修改少量运行设置。在更改重要内容(例如模型)之前,它会先提醒你。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Self-Awareness

How to use

  1. Identify the situation from the categories below
  2. Call the my tool with the appropriate action
  3. If set, warn the user before changing impactful settings such as the model or runtime limits
  4. For detailed examples, read 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_preset is saved for the current session; other modifications are in-memory only
  • Scratchpad values survive across turns until the agent runtime restarts and are shared by its sessions; do not treat them as private per-session storage.
  • Use my(action="check", key="workspace_sandbox") for the current project and file restriction. workspace is only a legacy agent-directory display.
  • Direct model and context_window_tokens writes are rejected during active sessions because they would change the shared instance default. Use a configured model_preset instead.
  • Protected params have type/range validation: max_iterations (1–100), context_window_tokens (4096–1M), model (non-empty str)
  • If tools.my.allow_set is false, check only

Related tools

Need Use Persists?
Temporary runtime notes my(action="set", key="...", value=...) Across turns, not restarts
Long-term facts Memory skill (MEMORY.md, USER.md) Yes
Permanent config change Edit config file Yes

Rule of thumb: Durable facts? Memory. Temporary runtime notes? My.

常见问题

它能自行更换模型吗?

它应该先提醒你。该技能说明,只有在收益明确且你已知情时,才会更改影响较大的设置。

它会保存密码吗?

不会。该技能说明,不会在笔记中保存 API 密钥、密码或令牌。

它会在每一轮都检查自身状态吗?

不会。该技能说明,只在需要相关信息时才进行检查。

详情

作者的原始描述

Inspect or troubleshoot the agent's runtime state, adjust runtime settings, or keep temporary session notes.

repo: HKUDS/nanobot

热度

GitHub 星标
50k
排名
#3600
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能