save-note

star 0

Save a key concept to a material's manifest immediately, during or outside a session. Use when the user wants to record something important they just learned. Appends to keyConcepts[] in the manifest.

HayatullahFarahi By HayatullahFarahi schedule Updated 2/27/2026

name: save-note description: Save a key concept to a material's manifest immediately, during or outside a session. Use when the user wants to record something important they just learned. Appends to keyConcepts[] in the manifest. argument-hint: [in ]

Save a Key Concept

Read .github/copilot-instructions.md for full behavior rules.

Steps

  1. Parse the input:
    • Concept text: everything before in <slug> (or the full input if no in keyword)
    • Slug: if provided after in, use it; if there is an active session, use that session's slug; otherwise ask the user which material this belongs to
  2. Read temp/progress/<slug>/manifest.json
  3. Determine the order number: count the existing entries in keyConcepts[] and add 1 (first note = 1, second = 2, …)
  4. Determine the chapter: if unit is set (e.g. "1.4"), derive chapter as "Chapter <major>" (e.g. "Chapter 1"); otherwise use "General"
  5. Append to keyConcepts[]:
    {
        "order": <next integer>,
        "concept": "<short name derived from the text>",
        "unit": "<current active unit id, or null>",
        "chapter": "<Chapter N or General>",
        "summary": "<one-line definition / what was said>",
        "learnedOn": "<today YYYY-MM-DD>"
    }
    
  6. Save the manifest
  7. Create or update the note file at temp/Notes/<slug>/<order>-<chapter-slug>-<concept-slug>.md:
    • <order>: zero-padded 2-digit number matching the order field (e.g. 01, 02, 12)
    • <chapter-slug>: "General"general; "Chapter 1"ch1; "Chapter 10"ch10
    • <concept-slug>: concept name lowercased and hyphenated (e.g. "Decision Ladder"decision-ladder)
    • Full example: temp/Notes/ai-engineering/02-ch1-decision-ladder.md
    • If the file does not exist: create it with the full rich note template (see Note File Format below)
    • If the file already exists: append a new dated section at the bottom (see Append Format below)
  8. Confirm: "Saved concept: [concept name] (Note #) → temp/Notes/<slug>/<order>-<chapter-slug>-<concept-slug>.md"

Note File Format (new file)

# <Concept Name>

> 📋 **Note #<order>** | **Chapter**: <Chapter N or General> | **Unit**: <unit id or "General"> | **Material**: <material title> | **Added**: <YYYY-MM-DD>

---

🎯 **Why It Matters**
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
<1-2 sentences: what problem this solves / why you need to know it>

📌 **Key Concept**
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
<core explanation — one idea at a time>

<ASCII diagram illustrating the concept — always include one>


💡 **Analogy**
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
<real-world parallel in 2-3 sentences>

🔧 **In Practice**
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
<code snippet or real-world usage example with inline comments>

⚠️ **Common Mistake**
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
<frequent misunderstanding to avoid>

🧠 **Mental Model**
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
<one sticky-note sentence that captures the entire concept>

---
*Last updated: <YYYY-MM-DD>*

Append Format (existing file — add at bottom)

---

## Update — <YYYY-MM-DD> | Unit: <unit id or "General">

<new insight, clarification, or additional detail about this concept>
```

Last updated:


> ⚠️ Always update the `*Last updated:*` line at the very bottom of the file whenever appending.
Install via CLI
npx skills add https://github.com/HayatullahFarahi/study-agent --skill save-note
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator
HayatullahFarahi
HayatullahFarahi Explore all skills →