my
GitHub用于管理 Agent 运行时状态,包括检查模型、上下文窗口、Token 用量及迭代限制。支持诊断故障、设定资源预算及跨轮次记忆偏好,帮助优化任务执行效率与配置适应性。
触发场景
诊断 Agent 行为异常或功能不可用原因
复杂任务前检查资源限制与预算
用户询问当前模型、设置或 Token 使用情况
需要跨轮次记住用户偏好或临时状态
安装
npx skills add jd-opensource/JoyAI-Echo --skill my -g -y
SKILL.md
Frontmatter
{
"name": "my",
"always": true,
"description": "Check and set the agent's own runtime state (model, iterations, context window, token usage, web config). Use when diagnosing why something doesn't work (\"why can't you search the web?\", \"why did you stop?\"), checking resource limits before complex tasks, adapting configuration for long or simple tasks, or remembering user preferences across turns. Also use when the user asks what model you are running, how many tokens you've used, or what your settings are."
}
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 (model, iterations)
- For detailed examples, read references/examples.md
When to check
When to set
| Situation | Command |
|---|---|
| Large codebase analysis | my(action="set", key="context_window_tokens", value=131072) |
| Repetitive simple tasks | my(action="set", key="model", value="<fast-model>") |
| 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
Constraints
- All modifications in-memory only — restart resets everything
- 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.
版本历史
- 75c504c 当前 2026-08-28 02:23


