agentleFS
ElliotJLTElliotJLT/Claude-Skill-Potions/skills/granola-sync/SKILL.md

granola-sync

Skill60 starsChanged 10 months agoMITView on GitHub

Syncs Granola meeting notes to Obsidian vault. Reads from Granola's local cache to extract meeting metadata and notes, then creates properly formatted markdown files with frontmatter. Also handles manual transcript formatting when cache doesn't have content.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When local cache has no notes, ask user to copy from Granola app.

    line 44
  2. Distinctive:

    When user pastes a transcript without cache data:

    line 131
  3. Distinctive:

    Ask for metadata: if not obvious:

    line 133
  4. Distinctive:

    When syncing from cache:

    line 183
  5. Distinctive:

    When no notes in cache:

    line 195
  6. Distinctive:

    Create duplicate files for same meeting

    line 208
  7. Distinctive:

    Use kebab-case lowercase filenames

    line 212
  8. Distinctive:

    Add frontmatter with proper metadata

    line 213
  9. Distinctive:

    Check for existing files before creating

    line 214
  10. Distinctive:

    Ask which project folder to use if unclear

    line 215

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Granola Sync

<purpose> Granola captures meeting transcripts and notes, but they live in the app. This skill bridges Granola → Obsidian, creating searchable, linked meeting notes that persist in your knowledge base. Works with both auto-sync from local cache and manual paste when transcripts aren't cached locally. </purpose>

When To Activate

<triggers> **Auto-sync from cache:** - User says "sync granola" or "granola-sync" - User asks to import meeting notes - Beginning of session when reviewing recent meetings

Manual formatting:

  • User pastes a meeting transcript
  • User shares Granola export content
  • User says "format this meeting" with pasted content</triggers>

Important Limitation

<limitation> Granola stores most content **server-side only**. The local cache contains: - Meeting metadata (title, date, attendees) for all meetings - `notes_markdown` for only **some** meetings (user-edited notes) - Transcripts are NOT stored locally

When local cache has no notes, ask user to copy from Granola app. </limitation>

Instructions

Granola Cache Location

~/Library/Application Support/Granola/cache-v3.json

Cache Structure

{
  "cache": "{\"state\":{\"documents\":{...}}}"  // nested JSON string
}

Each document contains:

  • id - unique meeting ID
  • title - meeting title
  • notes_markdown - notes content (often empty)
  • notes_plain - plain text version
  • google_calendar_event.start.dateTime - meeting time
  • google_calendar_event.attendees - list with email fields

Reading the Cache

<read_cache>

cat ~/Library/Application\ Support/Granola/cache-v3.json | python3 -c "
import json,sys
d=json.load(sys.stdin)
cache=json.loads(d['cache'])
docs=cache['state']['documents']

# List meetings with notes
for doc in docs.values():
    md = doc.get('notes_markdown', '')
    if md and len(md) > 50:
        title = doc.get('title', 'Untitled')
        cal = doc.get('google_calendar_event') or {}
        start = cal.get('start') or {}
        dt = start.get('dateTime', '')[:10]
        print(f'{dt} | {title[:40]} | {len(md)} chars')
"

</read_cache>

Output File Format

<file_format> Filename: YYYY-MM-DD-kebab-case-title.md Location: Project meetings folder (e.g., Projects/project-name/meetings/)

---
type: meeting
project: <project-name>
status: active
date: YYYY-MM-DD
attendees:
  - name1
  - name2
source: granola
granola-id: <meeting-id>
tags:
  - meeting
---

# Meeting Title

**Date**: YYYY-MM-DD
**Attendees**: Name1, Name2

---

## Notes

<notes_markdown content>

</file_format>

Manual Transcript Formatting

<manual_format> When user pastes a transcript without cache data:

  1. Ask for metadata if not obvious:
    • Meeting date
    • Attendees
    • Topic/title
  2. Structure the content:
---
type: meeting
project: <project>
status: active
date: YYYY-MM-DD
attendees:
  - name1
  - name2
source: granola-manual
tags:
  - meeting
---

# Topic Name

**Date**: YYYY-MM-DD
**Attendees**: Name1, Name2

---

## Summary

<2-3 sentence summary>

## Key Decisions

- Decision 1
- Decision 2

## Discussion Notes

<cleaned transcript, organized by topic>

## Action Items

- [ ] Action 1 (owner)
- [ ] Action 2 (owner)

</manual_format>

Output Format

When syncing from cache:

📥 **Granola Sync**

Found X meetings with notes:
- YYYY-MM-DD: Meeting Title (XXX chars)

Syncing to `Projects/project/meetings/`...

✓ Created: 2025-01-28-meeting-title.md

When no notes in cache:

📥 **Granola Sync**

Found X meetings but none have local notes cached.
Paste transcript content and I'll format it.

NEVER

  • Sync meetings without notes content
  • Overwrite existing meeting files without asking
  • Include sensitive attendee details beyond names
  • Create duplicate files for same meeting

ALWAYS

  • Use kebab-case lowercase filenames
  • Add frontmatter with proper metadata
  • Check for existing files before creating
  • Ask which project folder to use if unclear
  • Include granola-id to prevent duplicates

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.