金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

note

note 是面向效率工具的 Agent Skill,来自 Yeachan-Heo/oh-my-claudecode。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Save notes to notepad.md for compaction resilience

SKILL.md

下载 MD ↓
namenote
descriptionSave notes to notepad.md for compaction resilience
user-invocableTrue

Note Skill

Save important context to .omc/notepad.md that survives conversation compaction.

Usage

Command Action
/note <content> Add to Working Memory with timestamp
/note --priority <content> Add to Priority Context (always loaded)
/note --manual <content> Add to MANUAL section (never pruned)
/note --show Display current notepad contents
/note --prune Remove entries older than 7 days
/note --clear Clear Working Memory (keep Priority + MANUAL)

Sections

Priority Context (500 char limit)

  • Always injected on session start
  • Use for critical facts: "Project uses pnpm", "API in src/api/client.ts"
  • Keep it SHORT - this eats into your context budget

Working Memory

  • Timestamped session notes
  • Auto-pruned after 7 days
  • Good for: debugging breadcrumbs, temporary findings

MANUAL

  • Never auto-pruned
  • User-controlled permanent notes
  • Good for: team contacts, deployment info

Examples

/note Found auth bug in UserContext - missing useEffect dependency
/note --priority Project uses TypeScript strict mode, all files in src/
/note --manual Contact: [email protected] for backend questions
/note --show
/note --prune

Behavior

  1. Creates .omc/notepad.md if it doesn't exist
  2. Parses the argument to determine section
  3. Appends content with timestamp (for Working Memory)
  4. Warns if Priority Context exceeds 500 chars
  5. Confirms what was saved

Integration

Notepad content is automatically loaded on session start: - Priority Context: ALWAYS loaded - Working Memory: Loaded if recent entries exist

This helps survive conversation compaction without losing critical context.

来源:Yeachan-Heo/oh-my-claudecode · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本