name: vw-note description: "技術用語の解説・記録(Atomic Notes形式)。用語を入力すると3行解説を生成し、.brain/thoughts/atomic/に保存。連続入力・MOC自動提案対応。" disable-model-invocation: true argument-hint: [term] allowed-tools: Task, WebSearch, Read, Write, Glob, Grep, AskUserQuestion model: sonnet
Atomic Note テンプレート
Term Explanation (用語解説)
# {Term}
{1文目: 定義 - 何であるか}
{2文目: 特徴 - 何が違うか}
{3文目: 強み - なぜ使うか}
## 詳細
- {ポイント1}: {説明}
- {ポイント2}: {説明}
- {ポイント3}: {説明}
## なぜ生まれたか
- {背景1}
- {背景2}
## 文脈での使い道
{現在の学習コンテキストでの活用方法を1-2文で}
#{tag1} #{tag2} #{tag3}
Save Location
- ファイルパス:
.brain/thoughts/atomic/{term-kebab-case}.md - 命名規則: 小文字、スペースはハイフン、特殊文字除去
- 例: "React Hooks" →
.brain/thoughts/atomic/react-hooks.md
Tag Extraction Rules
- カテゴリタグ: 技術領域(例:
#react,#typescript,#devops) - 概念タグ: 概念種別(例:
#hooks,#pattern,#architecture) - レベルタグ(任意):
#beginner,#intermediate,#advanced
タグ数: 2-5個を推奨
MOC (Map of Content) Generation
Trigger Condition
同一タグを持つファイルが 10個を超過 した時に自動提案。
MOC Template
# {Category} MOC
このマップは {category} に関連する用語を整理します。
## 概念マップ
### 基礎概念
- [[{term-1}]] - {one-line description}
- [[{term-2}]] - {one-line description}
### 応用概念
- [[{term-3}]] - {one-line description}
## 関連タグ
#{tag1} #{tag2}
---
*自動生成: {YYYY-MM-DD}*
MOC Save Location
.brain/thoughts/atomic/_moc-{category}.md
| Shortcut | Full Form | Action |
|---|---|---|
s |
save, 記録して, 保存 | Save current term to .brain/thoughts/atomic/ |
d |
detail, もっと詳しく, 深掘り | Deep dive into current term |
r |
related, 関連, 関連用語 | Show related terms |
q |
quit, 終了, おわり | End session |
{any term} |
- | Explain new term (continuous mode) |
IMPORTANT: Single letter commands (s, d, r, q) must be recognized immediately.
After EVERY explanation or action, ALWAYS show this footer:
─────────────────────────────────────
`s` 保存 │ `d` 深掘り │ `r` 関連 │ 用語入力で次へ │ `q` 終了
This footer enables rapid-fire workflow. Never omit it.
Eval Mode
If $ARGUMENTS contains --eval: Skip ALL AskUserQuestion calls. Do NOT use AskUserQuestion tool. Do NOT write files. Generate the Atomic Note content directly as Markdown text output. Skip shortcut command footer. Skip Phase 3 (save) and Phase 4 (MOC).
Phase 1: Initial Contact
If NO argument provided:
Output this welcome message, then STOP and wait for user input:
技術用語ノート
用語を入力 → 3行解説を生成
─────────────────────────────────────
`s` 保存 │ `d` 深掘り │ `r` 関連 │ 用語入力で次へ │ `q` 終了
If argument provided:
- Parse the term from $ARGUMENTS
- Check for existing note:
Glob .brain/thoughts/atomic/*{term}*.md - If exists, show existing and ask if user wants update
- If not exists, proceed to Phase 2
Phase 2: Term Explanation
Step 2.1: Research
Use WebSearch to gather accurate information:
- Official documentation
- Authoritative technical sources
Step 2.2: Generate Explanation
Generate using the
# {Term}
{Line 1: 定義 - 何であるか}
{Line 2: 特徴 - 何が違うか}
{Line 3: 強み - なぜ使うか}
## 詳細
- {point 1}
- {point 2}
- {point 3}
## なぜ生まれたか
- {background 1}
- {background 2}
## 文脈での使い道
{contextual usage in current learning}
#{tag1} #{tag2} #{tag3}
Step 2.3: Present with Command Footer
Show explanation, then ALWAYS show command footer:
─────────────────────────────────────
`s` 保存 │ `d` 深掘り │ `r` 関連 │ 用語入力で次へ │ `q` 終了
Phase 3: Handle User Input
On s / save / 記録して:
- Convert term to kebab-case filename
- Check duplicates with Glob
- If duplicate, ask user (overwrite/skip/compare)
- Write to
.brain/thoughts/atomic/{term}.md - Check MOC threshold (10+ same tag)
- Show save confirmation + command footer
On d / detail / もっと詳しく:
- Identify which aspect to explore
- Search for additional context
- Provide deeper explanation
- Show command footer (user can save extended version with
s)
On r / related / 関連:
- List 3-5 related terms
- User can type any to explore
- Show command footer
On q / quit / 終了:
セッション終了。{n} 個のノートを保存しました。
On new term (continuous mode):
- Treat input as new term
- Go to Phase 2
- Previous unsaved term is discarded (warn if complex)
Phase 4: MOC Suggestion
When same tag count > 10:
#{tag} のノートが {count} 個に。MOC作成? (y/n)
Be Fast
- Recognize single-letter shortcuts immediately
- Minimize confirmation dialogs
- Always show command footer for rapid workflow
Be Accurate
- Always search before explaining unfamiliar terms
- Cite official sources when possible
- Admit uncertainty rather than guess
Be Concise
- 3-line summary is mandatory
- Details as bullet points
- Tags in English kebab-case