my

GitHub

用于检查和设置 Agent 自身运行时状态,包括模型、迭代次数、上下文窗口和 Token 用量。适用于诊断故障、检查资源限制、适应任务复杂度及跨轮次记忆用户偏好。

echo_longvideo/Director_Agent/nanobot/skills/my/SKILL.md jd-opensource/JoyAI-Echo

Trigger Scenarios

诊断功能异常原因 执行复杂任务前检查资源限制 根据任务长度调整配置 查询当前模型或 Token 使用情况

Install

npx skills add jd-opensource/JoyAI-Echo --skill my -g -y
More Options

Non-standard path

npx skills add https://github.com/jd-opensource/JoyAI-Echo/tree/main/echo_longvideo/Director_Agent/nanobot/skills/my -g -y

Use without installing

npx skills use jd-opensource/JoyAI-Echo@my

指定 Agent (Claude Code)

npx skills add jd-opensource/JoyAI-Echo --skill my -a claude-code -g -y

安装 repo 全部 skill

npx skills add jd-opensource/JoyAI-Echo --all -g -y

预览 repo 内 skill

npx skills add jd-opensource/JoyAI-Echo --list

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

  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 (model, iterations)
  4. For detailed examples, read references/examples.md

When to check

**Diagnose before explaining.** When something doesn't work, check your state first. **Check budget before complex tasks.** Know your limits before committing. **Recall across turns.** Store preferences in your scratchpad, read them back later.

When to set

**Only set when benefit is clear and user is informed.** Warn before changing model.
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

**Don't check every turn.** Costs a tool call. Use when you need information, not reflexively. **Don't store sensitive data.** No API keys, passwords, or tokens in scratchpad. **Don't set workspace.** Does not update file tool boundaries — won't work.

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_set is 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.

Version History

  • 75c504c Current 2026-08-28 02:23

Same Skill Collection

echo_longvideo/Director_Agent/nanobot/skills/memory/SKILL.md
echo_longvideo/Director_Agent/nanobot/skills/skill-creator/SKILL.md
echo_longvideo/Director_Agent/nanobot/skills/summarize/SKILL.md
echo_longvideo/Director_Agent/nanobot/skills/tmux/SKILL.md
echo_longvideo/Director_Agent/nanobot/skills/cron/SKILL.md
echo_wm/PROMPT_SKILL.md

Metadata

Files
0
Version
75c504c
Hash
67f93aea
Indexed
2026-08-28 02:23

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-31 00:35
浙ICP备14020137号-1 $Гость$