/google-foresight:foresightfrom google-foresight
Reads meeting transcripts, summaries, and notes from the Google AI Edge Foresight macOS app, drafts meeting notes, and writes them back with an undo journal.
Ships in google-foresight. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Foresight records meetings on-device and keeps everything in one SQLite file. The
bundled foresight.py is the only way in: it reads with mode=ro, checks the schema
first, and guards its one write. macOS only (the app is).
Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
python3 "$SKILL_DIR/scripts/foresight.py" doctor
Every command takes --json. Exit 3 means the app's schema changed under the tool —
report it to the user and stop; do not query the database by hand to get around it.
Exit 4 is a missing or ambiguous meeting (the message lists candidates).
Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
python3 "$SKILL_DIR/scripts/foresight.py" meetings --today --transcribed
python3 "$SKILL_DIR/scripts/foresight.py" meetings --since 2026-10-19 --until 2026-10-22 --name standup
Windows: --today, --yesterday, --date D, --since D [--until D] (local dates,
inclusive). Each row shows start, duration, flags (T transcript, S the app's own
summary, N user notes, E enhanced notes), the event_id, and the title. Meetings
without T are empty "[New Meeting]" shells the app creates — skip them.
A meeting reference is its event_id, its note id, or a title substring that matches
exactly one meeting.
Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
python3 "$SKILL_DIR/scripts/foresight.py" show <ref> # metadata, app summary, notes, enhanced notes
python3 "$SKILL_DIR/scripts/foresight.py" transcript <ref> # header + full transcript
python3 "$SKILL_DIR/scripts/foresight.py" notes <ref> --json # user notes + content_sha256 (needed to write)
python3 "$SKILL_DIR/scripts/foresight.py" search "pricing" --since 2026-10-01
How to read a transcript:
[Microphone] is the user's own mic;
[Remote] is everyone else on the call, merged. Attribute a [Remote] line to a named
person only when the text itself makes it clear ("thanks, Sam"), and say so when you
can't. attendees (calendar emails, when present) tell you who could have spoken.S) and enhanced notes (E) are model output; use them as a
cross-check, not as the source.Default shape, in markdown — adjust to what the user asks for:
# <Title> — <YYYY-MM-DD>
**Attendees:** <from attendees, or "not recorded">
## Summary
2–4 sentences: what the meeting was for and where it landed.
## Decisions
- <decision> — <who, if known>
## Action items
- [ ] <owner or "unassigned">: <task> (<due date if stated>)
## Discussion
- <topic>: <the substance, with numbers and names as spoken>
## Open questions
- <unresolved item>
Put only what the transcript supports. Mark inferences ("likely", "unclear who").
When the user already has notes (N), build on them rather than contradicting them.
Show the draft to the user, or save it to a file they name; writing it into the app is
a separate step they ask for.
This updates the meeting's notes pane (notes_table.content). It never touches the
transcript or the app's enhanced notes, and it never creates a row.
What is known: a write shows up in the running app after navigating back to that
meeting. What is not known: whether the app overwrites the write from memory when
the same note is open or being edited, and whether writing during an active recording
is safe. So the tool refuses unless the notes are unchanged since you read them, and,
while the app runs, unless you pass --allow-app-running; and always unless the
database has been quiet for 60 seconds (the app's helper process can outlive the app).
Read the current notes and keep content_sha256:
Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
python3 "$SKILL_DIR/scripts/foresight.py" notes <ref> --json
Save the draft to a file. If the user has notes there, use --append unless they
asked you to replace them.
Ask the user to confirm the meeting is not open in Foresight and nothing is
recording. That confirmation is what --allow-app-running asserts.
Dry run, then write:
Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
python3 "$SKILL_DIR/scripts/foresight.py" write-notes <ref> --file draft.md --expect-sha256 <sha> --append --allow-app-running --dry-run
python3 "$SKILL_DIR/scripts/foresight.py" write-notes <ref> --file draft.md --expect-sha256 <sha> --append --allow-app-running
The write reads itself back before reporting success. Ask the user to open the
meeting in the app, then run notes <ref> --json again: if content_sha256 no
longer matches the write's new_sha256, the app replaced it — tell the user.
Refusals (exit 5) say which guard fired and what to do; follow that rather than adding
override flags. --ignore-recent-activity is for a user who has confirmed the app is
idle; never pass it on your own. A "database is locked" refusal means the app was
writing at that moment and nothing was written — wait and retry.
Writes and restores also refuse when the database's PRAGMA user_version is not the
tested one (doctor shows both): the app was updated and may store notes differently.
Reads only warn. Tell the user; pass --allow-untested-schema only if they decide to
write anyway.
Before every write the note's prior row goes to an undo journal
(~/.local/state/google-foresight/undo.jsonl, mode 600, in a 700 directory). It keeps
the last 50 writes across all meetings, not 50 per meeting, so an old meeting's
entry ages out once 50 later writes happen anywhere. FORESIGHT_UNDO_LIMIT=<n>
(positive integer) changes the 50. It holds note text, so it is as
private as the app's own data. Entries are tied to the database file they were written
to; history and restore ignore entries from any other copy.
Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
python3 "$SKILL_DIR/scripts/foresight.py" history <ref>
python3 "$SKILL_DIR/scripts/foresight.py" restore <ref> --undo-id <id> --expect-sha256 <current sha> --allow-app-running
restore goes through the same guards and journals the version it replaces, so a
restore can itself be undone. Without --undo-id it takes the newest entry for that
note. It refuses (exit 5) unless the notes are exactly what that entry's write left —
so it will not clobber edits made since, or skip past a later write. To step back
more than once, restore one entry at a time, newest first: after a restore, the newest
entry is the version the restore just replaced, so pass --undo-id for the next older
one. --force overrides the check; use it only when the user wants to discard the
newer edits. It restores content, timestamp, and last_manual_edit; enhanced
notes stay as the app has them.
--full-backup additionally copies the whole database (tens of MB, mode 600) under the
state dir before writing. Use it only when the user asks.
What SKILL.md sets; muted values are Claude Code's defaults
Use when the user says "review the meeting transcripts from today and draft some meeting notes", "draft notes for the <name> meeting", "what was said about X in yesterday's call", "search my meeting transcripts", "put these notes into Foresight", "undo that notes write", or mentions Foresight / Google AI Edge Foresight meetings, transcripts, or enhanced notes.
Three short reads, in order
meeting-transcription, meeting-notes, foresight, on-device-ai
Other plugins' skills for the same job
npx claudepluginhub jtsternberg/claude-plugins --plugin google-foresight