note

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Note Skill

笔记Skill

Save important context to
.omc/notepad.md
that survives conversation compaction.
将重要上下文保存至
.omc/notepad.md
,确保会话压缩后信息不会丢失。

Usage

使用方法

CommandAction
/oh-my-claudecode:note <content>
Add to Working Memory with timestamp
/oh-my-claudecode:note --priority <content>
Add to Priority Context (always loaded)
/oh-my-claudecode:note --manual <content>
Add to MANUAL section (never pruned)
/oh-my-claudecode:note --show
Display current notepad contents
/oh-my-claudecode:note --prune
Remove entries older than 7 days
/oh-my-claudecode:note --clear
Clear Working Memory (keep Priority + MANUAL)
命令操作
/oh-my-claudecode:note <content>
添加带时间戳的内容至工作内存
/oh-my-claudecode:note --priority <content>
添加至优先级上下文(始终加载)
/oh-my-claudecode:note --manual <content>
添加至MANUAL章节(永不自动清理)
/oh-my-claudecode:note --show
显示当前记事本内容
/oh-my-claudecode:note --prune
删除7天前的条目
/oh-my-claudecode:note --clear
清空工作内存(保留优先级和MANUAL内容)

Sections

章节说明

Priority Context (500 char limit)

优先级上下文(500字符限制)

  • 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
  • 始终在会话启动时加载
  • 用于记录关键信息:例如“项目使用pnpm”、“API位于src/api/client.ts”
  • 务必简短——这会占用你的上下文额度

Working Memory

工作内存

  • Timestamped session notes
  • Auto-pruned after 7 days
  • Good for: debugging breadcrumbs, temporary findings
  • 带时间戳的会话笔记
  • 7天后自动清理
  • 适用于:调试记录、临时发现

MANUAL

MANUAL

  • Never auto-pruned
  • User-controlled permanent notes
  • Good for: team contacts, deployment info
  • 永不自动清理
  • 用户可控的永久笔记
  • 适用于:团队联系方式、部署信息

Examples

示例

/oh-my-claudecode:note Found auth bug in UserContext - missing useEffect dependency
/oh-my-claudecode:note --priority Project uses TypeScript strict mode, all files in src/
/oh-my-claudecode:note --manual Contact: api-team@company.com for backend questions
/oh-my-claudecode:note --show
/oh-my-claudecode:note --prune
/oh-my-claudecode:note 发现UserContext中的认证bug - 缺少useEffect依赖项
/oh-my-claudecode:note --priority 项目使用TypeScript严格模式,所有文件位于src/
/oh-my-claudecode:note --manual 联系方式:api-team@company.com(后端问题咨询)
/oh-my-claudecode:note --show
/oh-my-claudecode: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
  1. .omc/notepad.md
    不存在则自动创建
  2. 解析参数以确定目标章节
  3. 为工作内存内容添加时间戳后追加
  4. 当优先级上下文超过500字符时发出警告
  5. 确认已保存的内容

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.
记事本内容会在会话启动时自动加载:
  • 优先级上下文:始终加载
  • 工作内存:若存在近期条目则加载
这有助于在会话压缩后仍能保留关键上下文信息。