--- name: meeting-copilot description: Use when preparing for, running, or closing a live meeting with an AI assistant dashboard. Triggers on "meeting copilot", "live copilot", "prepare for a call", "update copilot", "close the session", or requests to turn transcript chunks into meeting questions, topic maps, decisions, and follow-ups. --- # Meeting Copilot Create and maintain a local HTML dashboard for a live meeting. The dashboard gives the user a second-screen view of context, questions, topic progress, decisions, risks, and follow-ups while the call is happening. This skill is designed for private workspaces. Do not publish raw transcripts, client names, personal notes, or generated meeting artifacts unless the user explicitly asks for a sanitized export. ## Modes Use one of three modes: | Mode | When | Output | | --- | --- | --- | | CREATE | Before the meeting | A local dashboard app with prepared context and questions | | UPDATE | During the meeting | Updated questions, topics, decisions, risks, and follow-ups from transcript chunks | | CLOSE | After the meeting | Final summary, action items, CRM or notes updates, and optional sanitized export | ## CREATE Inputs: - meeting title or contact name - meeting type, for example discovery, sales, mentoring, support, hiring, partnership - date - available context files, if any - output directory Create this structure: ```text YYYY-MM-DD-meeting-copilot/ app/ index.html app.js components.js styles.css tabs/ briefing.js questions.js topics.js decisions.js followups.js state/ transcript.txt diff.py ``` Dashboard tabs: - `briefing.js`: meeting goal, known context, participants, constraints - `questions.js`: grouped live questions - `topics.js`: planned and discussed topics - `decisions.js`: decisions, risks, blockers, open loops - `followups.js`: action items, owners, due dates, next message draft If the app uses ES modules, serve it over HTTP: ```bash cd YYYY-MM-DD-meeting-copilot/app python3 -m http.server 8080 ``` Then open `http://127.0.0.1:8080`. ## UPDATE Input is usually a full transcript copied from a transcription tool. Treat it as sensitive. Use suffix diffing so the agent processes only the new part: ```python #!/usr/bin/env python3 import pathlib import sys baseline = pathlib.Path(__file__).parent / "transcript.txt" old = baseline.read_text() if baseline.exists() else "" new = sys.stdin.read() old_s = old.strip() new_s = new.strip() if not old_s: sys.stdout.write(new) elif new_s.startswith(old_s): sys.stdout.write(new_s[len(old_s):].lstrip()) else: sys.stderr.write("[diff] baseline mismatch; using full transcript\n") sys.stdout.write(new) ``` Recommended update flow: 1. Save incoming transcript to `state/transcript-new.txt`. 2. Run `python3 state/diff.py < state/transcript-new.txt > state/delta.txt`. 3. Read `state/delta.txt`. 4. Update only live tabs: `questions.js`, `topics.js`, `decisions.js`, `followups.js`. 5. Move `state/transcript-new.txt` to `state/transcript.txt`. 6. Tell the user what changed and ask them to refresh the dashboard. Do not update long-term profile or history files during UPDATE unless the user asks. Keep the live loop fast. ## Question Design Group questions by topic. Avoid one long list. Use 3 to 6 groups, with 3 to 6 questions per group: ```js function questionGroup(title, items) { if (!items.length) return ""; return card(title, `