# My

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

- Repository: https://github.com/HKUDS/nanobot (49730 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-31
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add HKUDS/nanobot --skill my -g -a claude-code -y`
Codex: `npx skills add HKUDS/nanobot --skill my -g -a codex -y`
Cursor: `npx skills add HKUDS/nanobot --skill my -g -a cursor -y`
Gemini CLI: `npx skills add HKUDS/nanobot --skill my -g -a gemini-cli -y`

## Description

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

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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](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

The rest: https://github.com/HKUDS/nanobot/blob/HEAD/nanobot/skills/my/SKILL.md
