agentleFS
jackchukajackchuka/skills/p-meeting-prep/SKILL.md

p-meeting-prep

Skill15 starsChanged 9 days agoMITView on GitHub

Generate per-meeting prep briefs for today's calendar. Use when the user says "meeting prep", "prep my meetings", "prep brief", or invokes "/p-meeting-prep". Suitable for early-morning scheduled runs.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If any values are missing or the user requests changes, use:

    line 30
  2. Very specific:

    Read the attendee cache once — ~/.cache/p-meeting-prep/attendees.json (see references/attendee-cache.md) — before the loop, and pass …

    line 105
  3. Distinctive:

    Never put a real name, handle, email, or identifier into this skill file — the shape above is the contract, the values belong only in the …

    line 140
  4. Very specific:

    Not closable: a source marked UNAVAILABLE back in Phase 1.

    line 145
  5. Very specific:

    Every question offers both a paste path and a なし・このまま進める path.

    line 146
  6. Very specific:

    If the meeting belongs to a cluster of size ≥ 2, add the Related today: line referencing the sibling filenames computed in Phase 5.

    line 167
  7. Very specific:

    If OUTPUT_DAY_DIR already exists:

    line 188
  8. Very specific:

    Remove any existing <OUTPUT_DAY_DIR>.bak/.

    line 189
  9. Very specific:

    If ASCII-folding leaves fewer than 4 useful characters (typical for Japanese titles), romanize instead: kanji/kana → romaji words, katakana …

    line 196
  10. Very specific:

    If N == 0, the index body is No meetings today.

    line 223
  11. Very specific:

    Write one file per meeting using BRIEFS[event_id].

    line 225
  12. Very specific:

    If --dry-run, do NOT touch the filesystem at all.

    line 229

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Meeting Prep

<!-- skillctx:begin -->

Setup

Locate this skill's directory (the folder containing this SKILL.md), then run the resolver script from there:

python <skill-dir>/scripts/skillctx-resolve.py resolve p-meeting-prep

The resolver outputs each binding as key: value (one per line). Substitute each {binding_key} placeholder below with the resolved value.

If any values are missing or the user requests changes, use:

python <skill-dir>/scripts/skillctx-resolve.py set p-meeting-prep <key> <value>
<!-- skillctx:end -->

Generate per-meeting prep briefs for today's calendar (one markdown file per meeting + an index), writing to {output_dir}/YYYY-MM-DD/.

When to Use

  • User says "meeting prep", "prep my meetings", "prep brief"
  • User invokes /p-meeting-prep
  • A scheduled cron / launchd job triggers /p-meeting-prep (typically early morning)

Prerequisites

None are hard requirements except a reachable calendar. Phase 1 falls back rather than aborting, and records every substitution in 00-index.md.

WantUsed forIf missing
gws CLI (authenticated)Google CalendarGoogle Calendar MCP
gh CLI (gh auth status)attendee activityGitHub sections render _(unavailable)_
Slack MCPDMs, mentions, topic searchSlack sections render _(unavailable)_
Fireflies MCPprior recordingsFireflies sections render _(unavailable)_

Arguments

  • --date YYYY-MM-DD — Target date. Default: today.
  • --lang ja|en — Output language. Default: {default_lang}.
  • --dry-run — Print briefs to stdout instead of writing files.
  • --no-open — Skip auto-opening the index after generation.
  • --non-interactive — Never prompt. Fall back silently and render gaps as _(no relevant context found)_. Required for cron / launchd runs, which have no one to answer.

Workflow

Phase 1: Initialize

  1. Parse arguments:
    • --date YYYY-MM-DD (default: today, local time)
    • --lang ja|en (default: {default_lang})
    • --dry-run (default: false)
    • --no-open (default: false)
    • --non-interactive (default: false; treat as true when the invocation came from a scheduler)
  2. Compute:
    • TARGET_DATE: the date to process, YYYY-MM-DD
    • WEEKDAY: short weekday name (e.g. Tue)
    • OUTPUT_DAY_DIR: {output_dir}/{TARGET_DATE} (expand ~ and env vars)
  3. Resolve prerequisites. Never abort and never ask — substitute, then report. Run these probes in one parallel batch.

    ProbeMissing / failing → fallbackRecord as
    command -v gwsGoogle Calendar MCP list_events (startTime / endTime / orderBy: startTime / timeZone).calendar: Google Calendar MCP (gws not installed)
    gh auth statusnone — GitHub sections render _(unavailable)_github: unavailable
    slack_read_user_profilenone — Slack sections render _(unavailable)_slack: unavailable
    fireflies_get_usernone — Fireflies sections render _(unavailable)_fireflies: unavailable

    Abort only when gws and the Calendar MCP both fail; there is then no calendar at all.

  4. Record SOURCES_AVAILABLE = {calendar, github, slack, fireflies} for Phase 3, and FALLBACKS — the list of "Record as" strings that fired — for Phase 5.

Phase 2: Calendar fetch + classify

  1. Fetch the day's events. → See references/agent-gather-calendar.md
  2. Filter out junk:
    • Declined events (the user's response is declined).
    • All-day events.
    • Events with only one attendee = the user (focus blocks, holds).
  3. Classify everything else in a single LLM call. → See references/agent-classify-meetings.md
  4. Cluster meetings by topic_key. A cluster is any set of 2+ meetings sharing the same topic_key. Singletons are clusters of one and need no cross-links.
  5. Save the classified list as MEETINGS = [{event, category, topic_key, cluster_id, …}] for Phase 3.

Phase 3: Per-meeting fetch + confirm (interactive)

Read the attendee cache once — ~/.cache/p-meeting-prep/attendees.json (see references/attendee-cache.md) — before the loop, and pass relevant entries into every fetch so cached attendees skip live resolution.

Then walk the meetings one at a time, in chronological order. Do not fetch the whole day up front: the user sees and confirms each meeting before you move to the next one. other-category meetings are skipped entirely — no fetch, no prompt.

For each meeting:

1. Fetch. Pick the source set from this table and fan out that meeting's calls in a single parallel tool-use batch.

CategoryFirefliesSlack DMs/mentionsGitHub (attendees)Slack topic searchWeb (candidate)
1:1yesyesyesnono
team-syncyesnoyes (self)yesno
externalyesyesnoyesno
interviewyesnononoyes
othernonononono

Per source, follow the matching reference:

  • Fireflies → references/agent-gather-fireflies-meeting-context.md
  • Slack → references/agent-gather-slack-meeting-context.md
  • GitHub → references/agent-gather-github-attendee-context.md
  • Web (candidate) → references/agent-gather-web-candidate-context.md

Skip every call to a source whose SOURCES_AVAILABLE flag is false. Soft budget 15 s per source; on timeout treat it as unavailable for this meeting only, no retry. Reuse across a cluster: a Fireflies or Slack topic search keyed off topic_key runs once per cluster, not once per meeting.

2. Report. Print at most 5 lines — one per source — each either a one-line finding or the concrete reason it is empty. Name the gaps; do not let them slide silently into _(unavailable)_.

HH:MM <title>  [category]
  Fireflies  <one-line finding, or why it is empty>
  GitHub     <one-line finding, or why it is empty>
  Slack      <one-line finding, or why it is empty>
  <other>    <one-line finding, or why it is empty>

Never put a real name, handle, email, or identifier into this skill file — the shape above is the contract, the values belong only in the generated brief.

3. Ask. One AskUserQuestion call (max 4 questions), covering only gaps the user can actually close. Skip this step when there are none — never ask a question whose answer changes nothing.

  • Closable: things that live outside the wired sources — a link to the counterpart's public profile or résumé, notes from a meeting that was never recorded, a doc or ticket the fetch could not reach, the real subject when the calendar title is opaque, which of several same-name people the attendee is.
  • Not closable: a source marked UNAVAILABLE back in Phase 1. State it once and move on.
  • Every question offers both a paste path and a なし・このまま進める path. Never block: "no answer" is a valid answer and means render the gap as _(no relevant context found)_.

4. Fold in whatever the user pasted. If they gave a URL, fetch it before drafting. Store it as user_supplied.

5. Draft the brief for this meeting using the Phase 4 rendering rules, and store it as BRIEFS[event_id].

Under --non-interactive, run steps 1, 2 and 5 only.

Save results as MEETING_CONTEXT[event_id] = {fireflies, slack_attendees, slack_topic, github, web_candidate, user_supplied}.

Phase 4: Rendering rules + cross-scan

Pass 1 runs inside the Phase 3 loop (step 5). These are the rules that step follows, for the one meeting being drafted:

  1. Pick the template by category:
    • 1:1 → references/template-1on1.md
    • team-sync → references/template-team-sync.md
    • external → references/template-external.md
    • interview → references/template-interview.md
    • other → references/template-other.md
  2. Render the template using MEETING_CONTEXT[event_id], in language {lang}.
  3. If the meeting belongs to a cluster of size ≥ 2, add the Related today: line referencing the sibling filenames computed in Phase 5.
  4. Empty data sections render as _(no relevant context found)_ rather than being omitted, so the user can tell the skill looked.
  5. Anything the user pasted in Phase 3 step 3 outranks a fetched source that contradicts it, and is cited as (ユーザー提供) / (user-supplied) so the brief stays auditable.

Pass 2 — cross-scan (after the Phase 3 loop has drafted every brief; no user interaction):

Filenames are deterministic from Phase 2 data (chronological order + start time + title slug) — compute them before Pass 2 so both cluster links and overlap links can reference sibling files.

  1. Detect overlaps across the day's drafts:
    • (a) shared non-self attendees appearing in 2+ meetings;
    • (b) shared salient topics/entities — proper nouns, repo names, project names appearing in 2+ briefs' bodies (e.g. changelog-management).
  2. For each overlap, inject into the header block of every affected brief: Related today: [<sibling file>](<sibling file>) — <shared attendee or topic, one short clause> Multiple siblings → comma-separated. Merge with any existing cluster-based Related today: line rather than duplicating it.
  3. other-category meetings are excluded from the cross-scan (they have no body and no fetches).
  4. Record the overlap list as OVERLAPS for the index (Phase 5).

Phase 5: Write files

  1. Compute OUTPUT_DAY_DIR = {output_dir}/<TARGET_DATE> (expand ~).
  2. If OUTPUT_DAY_DIR already exists:
    • Remove any existing <OUTPUT_DAY_DIR>.bak/.
    • mv the current OUTPUT_DAY_DIR to <OUTPUT_DAY_DIR>.bak/.
  3. Create OUTPUT_DAY_DIR.
  4. Compute filenames in chronological order:
    • NN = zero-padded sequence starting at 01 (the index uses 00).
    • HHMM = local start time, 24-hour, no colon.
    • <slug> = ASCII-folded, lowercase, hyphenated title; collapse runs of non-[a-z0-9] to a single -; trim to 40 chars; strip leading/trailing -.
    • If ASCII-folding leaves fewer than 4 useful characters (typical for Japanese titles), romanize instead: kanji/kana → romaji words, katakana loanwords → their English source word. Example: 採用:グッズブレストMTG → saiyo-goods-brainstorm-mtg. Same 40-char cap and collision rule.
    • Final name: NN-HHMM-<slug>.md.
  5. Write 00-index.md first:
# Meeting prep — <TARGET_DATE> (<WEEKDAY>)
<N> meetings · <K> categories · <C> clusters
<`> ` + each FALLBACKS entry, one line — omit the block when FALLBACKS is empty>

## Today
- HH:MM **<title>** `[category]` → [NN-HHMM-slug.md](NN-HHMM-slug.md)<` · cluster: <topic_key>` if cluster size ≥ 2>
... (one bullet per meeting, chronological)

## Clusters
- `<topic_key>` — <count> meetings (HH:MM, HH:MM, ...)
... (only clusters with size ≥ 2)

## Overlaps
- <shared attendee or topic> — <count> meetings (HH:MM, HH:MM, ...)
... (from Pass 2 cross-scan; omit the section when `OVERLAPS` is empty)

## Sources
- Calendar: <✅ + how it was fetched | ❌>
- GitHub / Slack / Fireflies / Web: <✅ | ❌ reason>
- User-supplied: <what the user pasted in Phase 3, per meeting — omit the line when nothing was pasted>

If N == 0, the index body is No meetings today. and no per-meeting files are written.

  1. Write one file per meeting using BRIEFS[event_id].
  2. Merge any live attendee resolutions from this run back into ~/.cache/p-meeting-prep/attendees.json (read-modify-write; see references/attendee-cache.md).
  3. Print the absolute path to 00-index.md and a one-line summary (N meetings · K categories · C clusters).
  4. On macOS (uname -s = Darwin), unless --no-open or --dry-run, run open "<00-index.md>".
  5. If --dry-run, do NOT touch the filesystem at all. Instead, print to stdout: the index body, then each brief separated by ---.

Error Handling

ErrorAction
gws missing or unauthenticatedFall back to Google Calendar MCP; note it in FALLBACKS. Abort only if that also fails.
gh not authenticatedMark GitHub UNAVAILABLE; continue. Add a warning to the top of 00-index.md.
Slack MCP unavailableMark Slack UNAVAILABLE; continue. Slack sections render as _(unavailable)_.
Fireflies MCP unavailableMark Fireflies UNAVAILABLE; continue. Fireflies sections render as _(unavailable)_.
Classification LLM call fails / bad JSONTreat every meeting as other. Add a warning to the top of 00-index.md.
Per-meeting source fetch timeout (15s)Section renders as _(unavailable)_. No retry within this run.
OUTPUT_DAY_DIR exists from a prior runRename to <dir>.bak/ (replacing any prior backup) before writing.
Attendee cache missing / corrupt JSONTreat as empty cache; resolve live; rewrite the file at end of run.
Calendar empty for the target dateWrite 00-index.md with body No meetings today. Exit 0.
--dry-run setPrint to stdout only. Do not touch the filesystem. Do not call open.
Filename slug collision (rare)Append -2, -3, … to the slug until unique within the day's directory.
User declines to fill a gap (Phase 3)Render that section as _(no relevant context found)_; move to the next meeting.
User pastes an unreachable URLSay so in one line, re-ask once, then continue without it.
--non-interactive setNever call AskUserQuestion. Every gap renders as _(no relevant context found)_.

Scheduling

Scheduled runs must pass --non-interactive — nothing is there to answer Phase 3's questions, and an unanswered prompt stalls the whole run.

This skill is user-triggered. Two recipes for running it automatically each morning are documented in references/cron-recipes.md. Whichever you pick, ensure the scheduled environment inherits credentials for gh, gws, the Slack MCP server, and the Fireflies MCP server.

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.