@kykiles/opencode-mem 13.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +429 -0
- package/dist/npx-cli/index.js +9798 -0
- package/dist/opencode-plugin/index.js +70 -0
- package/package.json +187 -0
- package/plugin/.mcp.json +12 -0
- package/plugin/bun.lock +160 -0
- package/plugin/hooks/bugfixes-2026-01-10.md +92 -0
- package/plugin/hooks/hooks.json +87 -0
- package/plugin/modes/code--ar.json +24 -0
- package/plugin/modes/code--bn.json +24 -0
- package/plugin/modes/code--chill.json +8 -0
- package/plugin/modes/code--cs.json +24 -0
- package/plugin/modes/code--da.json +24 -0
- package/plugin/modes/code--de.json +24 -0
- package/plugin/modes/code--el.json +24 -0
- package/plugin/modes/code--es.json +24 -0
- package/plugin/modes/code--fi.json +24 -0
- package/plugin/modes/code--fr.json +24 -0
- package/plugin/modes/code--he.json +24 -0
- package/plugin/modes/code--hi.json +24 -0
- package/plugin/modes/code--hu.json +24 -0
- package/plugin/modes/code--id.json +24 -0
- package/plugin/modes/code--it.json +24 -0
- package/plugin/modes/code--ja.json +24 -0
- package/plugin/modes/code--ko.json +24 -0
- package/plugin/modes/code--nl.json +24 -0
- package/plugin/modes/code--no.json +24 -0
- package/plugin/modes/code--pl.json +24 -0
- package/plugin/modes/code--pt-br.json +24 -0
- package/plugin/modes/code--ro.json +24 -0
- package/plugin/modes/code--ru.json +24 -0
- package/plugin/modes/code--sv.json +24 -0
- package/plugin/modes/code--th.json +24 -0
- package/plugin/modes/code--tr.json +24 -0
- package/plugin/modes/code--uk.json +24 -0
- package/plugin/modes/code--ur.json +25 -0
- package/plugin/modes/code--vi.json +24 -0
- package/plugin/modes/code--zh.json +24 -0
- package/plugin/modes/code.json +139 -0
- package/plugin/modes/email-investigation.json +120 -0
- package/plugin/modes/law-study--chill.json +7 -0
- package/plugin/modes/law-study-CLAUDE.md +85 -0
- package/plugin/modes/law-study.json +120 -0
- package/plugin/modes/meme-tokens.json +125 -0
- package/plugin/package.json +45 -0
- package/plugin/scripts/bun-runner.js +238 -0
- package/plugin/scripts/context-generator.cjs +825 -0
- package/plugin/scripts/mcp-server.cjs +249 -0
- package/plugin/scripts/server-service.cjs +9939 -0
- package/plugin/scripts/statusline-counts.js +40 -0
- package/plugin/scripts/transcript-watcher.cjs +29 -0
- package/plugin/scripts/version-check.js +193 -0
- package/plugin/scripts/worker-service.cjs +2238 -0
- package/plugin/scripts/worker-wrapper.cjs +2 -0
- package/plugin/skills/babysit/SKILL.md +87 -0
- package/plugin/skills/design-is/SKILL.md +312 -0
- package/plugin/skills/do/SKILL.md +45 -0
- package/plugin/skills/how-it-works/SKILL.md +22 -0
- package/plugin/skills/how-it-works/onboarding-explainer.md +17 -0
- package/plugin/skills/knowledge-agent/SKILL.md +80 -0
- package/plugin/skills/learn-codebase/SKILL.md +21 -0
- package/plugin/skills/make-plan/SKILL.md +67 -0
- package/plugin/skills/mem-search/SKILL.md +131 -0
- package/plugin/skills/oh-my-issues/SKILL.md +226 -0
- package/plugin/skills/pathfinder/SKILL.md +111 -0
- package/plugin/skills/smart-explore/SKILL.md +193 -0
- package/plugin/skills/standup/SKILL.md +142 -0
- package/plugin/skills/standup/agent-brief.md +47 -0
- package/plugin/skills/standup/standup.mjs +662 -0
- package/plugin/skills/timeline-report/SKILL.md +211 -0
- package/plugin/skills/version-bump/SKILL.md +74 -0
- package/plugin/skills/version-bump/scripts/generate_changelog.js +34 -0
- package/plugin/skills/weekly-digests/SKILL.md +262 -0
- package/plugin/skills/what-the/SKILL.md +6 -0
- package/plugin/skills/wowerpoint/SKILL.md +205 -0
- package/plugin/sqlite/SessionStore.js +764 -0
- package/plugin/sqlite/observations/files.js +10 -0
- package/plugin/ui/assets/fonts/monaspace-radon-var.woff +0 -0
- package/plugin/ui/assets/fonts/monaspace-radon-var.woff2 +0 -0
- package/plugin/ui/claude-mem-logo-for-dark-mode.webp +0 -0
- package/plugin/ui/claude-mem-logo-stylized.png +0 -0
- package/plugin/ui/claude-mem-logomark.webp +0 -0
- package/plugin/ui/icon-thick-completed.svg +8 -0
- package/plugin/ui/icon-thick-investigated.svg +8 -0
- package/plugin/ui/icon-thick-learned.svg +12 -0
- package/plugin/ui/icon-thick-next-steps.svg +8 -0
- package/plugin/ui/viewer-bundle.js +65 -0
- package/plugin/ui/viewer.html +2402 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wowerpoint
|
|
3
|
+
description: Turn one document into a kawaii NotebookLM slide-deck PDF. Use for "wowerpoint this", "make a deck about <file>", "turn this report into slides", or any request to render a single document as shareable narrative slides.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Wowerpoint
|
|
7
|
+
|
|
8
|
+
One doc in, one PDF out. Slide-deck only — videos and podcasts from the same engine are noticeably worse and out of scope; refer the user to the `notebooklm` CLI directly if they want those.
|
|
9
|
+
|
|
10
|
+
## Triggers
|
|
11
|
+
|
|
12
|
+
- "Wowerpoint <file>"
|
|
13
|
+
- "Make a slide deck about <file>"
|
|
14
|
+
- "Turn this report into slides"
|
|
15
|
+
- "Kawaii-deck this"
|
|
16
|
+
|
|
17
|
+
## Setup (one-time per machine)
|
|
18
|
+
|
|
19
|
+
If `notebooklm auth check` returns 0 and `command -v jq` resolves, skip.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
uv tool install --with playwright --force notebooklm-py
|
|
23
|
+
$(uv tool dir)/notebooklm-py/bin/playwright install chromium
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`jq` is required by the workflow's JSON parsing; install if missing (`brew install jq` on macOS, or your distro's package manager).
|
|
27
|
+
|
|
28
|
+
Then the user authenticates interactively — do not script. Tell them to type `! notebooklm login` so the OAuth ENTER lands in their terminal.
|
|
29
|
+
|
|
30
|
+
## Workflow
|
|
31
|
+
|
|
32
|
+
### 1. The source doc
|
|
33
|
+
|
|
34
|
+
You need exactly one source doc. If it doesn't exist or is too thin to carry a deck, **write it first** — use mem-search and sequential thinking to make it comprehensive (long-form, narrative, several thousand words is normal). Do not paper over a weak source by adding more sources.
|
|
35
|
+
|
|
36
|
+
### 2. Auth pre-flight
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
notebooklm auth check 2>&1 | tail -5
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Exit 1 with `Run 'notebooklm login' to authenticate.` = halt and tell the user.
|
|
43
|
+
|
|
44
|
+
### 3. Create notebook, add the source
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
NOTEBOOK_ID=$(notebooklm create "<title>" --json | jq -r .notebook.id)
|
|
48
|
+
SOURCE_ID=$(notebooklm source add "<doc-path>" --notebook "$NOTEBOOK_ID" --json | jq -r .source.id)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Title: H1 of the source doc, or its filename stem; append a date for dated work.
|
|
52
|
+
|
|
53
|
+
JSON envelope keys differ — `create` → `.notebook.id`, `source add` → `.source.id`, `generate` → `.task_id`. Wrong key = empty string = silent downstream failure.
|
|
54
|
+
|
|
55
|
+
### 4. Spawn the subagent
|
|
56
|
+
|
|
57
|
+
Generation takes ~10 minutes; never block on it. Use the template below with `run_in_background: true`.
|
|
58
|
+
|
|
59
|
+
### 5. End your turn
|
|
60
|
+
|
|
61
|
+
Print the notebook URL so the user can watch live:
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
https://notebooklm.google.com/notebook/<NOTEBOOK_ID>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The subagent's completion notification fires when the file is on disk.
|
|
68
|
+
|
|
69
|
+
## Output path
|
|
70
|
+
|
|
71
|
+
Adjacent to the source, parallel filename:
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
<source-dir>/<source-stem>-slides.pdf
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If the source isn't somewhere that makes sense as an output location, default to `reports/<stem>-slides.pdf`.
|
|
78
|
+
|
|
79
|
+
## Share link (WOWerpoint Server)
|
|
80
|
+
|
|
81
|
+
After the PDF lands on disk, the subagent also POSTs it to the WOWerpoint Server, which converts the 16:9 deck into a 9:16 mobile twin and returns a share URL. The share URL is the primary deliverable to the user; the PDF on disk is the backup.
|
|
82
|
+
|
|
83
|
+
Required env (exported in the user's shell — the subagent inherits the parent's environment, so plain `export` is enough; no dotenv loader runs):
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
WOWERPOINT_API_BASE=https://wowerpoint-api.<subdomain>.workers.dev
|
|
87
|
+
WOWERPOINT_VIEWER_BASE=https://wowerpoint-viewer.<subdomain>.workers.dev
|
|
88
|
+
WOWERPOINT_UPLOAD_TOKEN=<token>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
If any var is missing, skip the share-link step and just hand the PDF over.
|
|
92
|
+
|
|
93
|
+
Upload pattern (run AFTER the subagent confirms the PDF exists on disk). Capture the full response so empty `id` and `error` payloads are handled — `jq -r '.id'` returns the literal string `null` on a missing key, so always pipe through `.id // empty`:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
if [ -n "$WOWERPOINT_API_BASE" ] && [ -n "$WOWERPOINT_UPLOAD_TOKEN" ] && [ -n "$WOWERPOINT_VIEWER_BASE" ]; then
|
|
97
|
+
UPLOAD_JSON=$(curl -sS --connect-timeout 10 --max-time 30 -X POST "$WOWERPOINT_API_BASE/api/decks" \
|
|
98
|
+
-H "Authorization: Bearer $WOWERPOINT_UPLOAD_TOKEN" \
|
|
99
|
+
-F "file=@<OUTPUT_PATH>" \
|
|
100
|
+
-F "title=<TITLE>")
|
|
101
|
+
DECK_ID=$(printf '%s' "$UPLOAD_JSON" | jq -r '.id // empty')
|
|
102
|
+
API_ERROR=$(printf '%s' "$UPLOAD_JSON" | jq -r '.error // empty')
|
|
103
|
+
if [ -n "$API_ERROR" ] || [ -z "$DECK_ID" ]; then
|
|
104
|
+
echo "WOWerpoint upload warning: ${API_ERROR:-missing id}"
|
|
105
|
+
else
|
|
106
|
+
echo "Share URL: $WOWERPOINT_VIEWER_BASE/d/$DECK_ID"
|
|
107
|
+
fi
|
|
108
|
+
fi
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
The returned `id` is a kebab-case slug derived from the title with a random creature suffix (e.g. `tokenrouter-quest-hawk`, or `velvet-comet-tiger` if the title is empty or non-ASCII). The share URL is:
|
|
112
|
+
|
|
113
|
+
```text
|
|
114
|
+
$WOWERPOINT_VIEWER_BASE/d/<id>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
It works immediately (shows a "still converting…" page that auto-reloads when ready). Conversion takes ~1–2 min per slide. Print the share URL in your final response.
|
|
118
|
+
|
|
119
|
+
## The prompt
|
|
120
|
+
|
|
121
|
+
One sentence. Default:
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
Use kawaii characters to tell the story of <subject>. Keep it warm and clear.
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Replace `<subject>` with a one-phrase description from the source doc's H1 or the user's framing. If the user supplies their own prompt, pass it through verbatim — don't expand it.
|
|
128
|
+
|
|
129
|
+
## Subagent template (copy-paste, parameterize)
|
|
130
|
+
|
|
131
|
+
```text
|
|
132
|
+
You're handling NotebookLM slide-deck generation. Work in `<repo-absolute-path>`.
|
|
133
|
+
|
|
134
|
+
Context:
|
|
135
|
+
- The `notebooklm` CLI is installed and authenticated (parent verified with `notebooklm auth check`).
|
|
136
|
+
- A notebook and source already exist.
|
|
137
|
+
|
|
138
|
+
Inputs:
|
|
139
|
+
- Notebook ID: `<NOTEBOOK_ID>`
|
|
140
|
+
- Source ID: `<SOURCE_ID>`
|
|
141
|
+
- Generation prompt: `<PROMPT>`
|
|
142
|
+
- Output path: `<OUTPUT_PATH>`
|
|
143
|
+
- Deck title: `<TITLE>` (the notebook title, used by the share-link step)
|
|
144
|
+
|
|
145
|
+
Steps:
|
|
146
|
+
|
|
147
|
+
1. Wait for source: `notebooklm source wait <SOURCE_ID> -n <NOTEBOOK_ID> --timeout 600`
|
|
148
|
+
Exit 0 = ready, 1 = error, 2 = timeout. On timeout, run `notebooklm source list -n <NOTEBOOK_ID> --json` and report status.
|
|
149
|
+
|
|
150
|
+
2. Generate: `notebooklm generate slide-deck "<PROMPT>" --format detailed --length default --notebook <NOTEBOOK_ID> --json --retry 2`
|
|
151
|
+
Parse `task_id` from the JSON (key is `task_id` at top level).
|
|
152
|
+
On `GENERATION_FAILED` or "No result found for RPC ID": sleep 300, retry once, then give up.
|
|
153
|
+
|
|
154
|
+
3. Wait for artifact: `notebooklm artifact wait <task_id> -n <NOTEBOOK_ID> --timeout 1800`
|
|
155
|
+
|
|
156
|
+
4. Download: `notebooklm download slide-deck <OUTPUT_PATH> -a <task_id> -n <NOTEBOOK_ID>`
|
|
157
|
+
|
|
158
|
+
5. Verify: `ls -la <OUTPUT_PATH>` confirms the file exists.
|
|
159
|
+
|
|
160
|
+
6. Upload to WOWerpoint Server for a mobile share link. Skip silently if any of `WOWERPOINT_API_BASE`, `WOWERPOINT_UPLOAD_TOKEN`, or `WOWERPOINT_VIEWER_BASE` is unset. Otherwise:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
if [ -n "$WOWERPOINT_API_BASE" ] && [ -n "$WOWERPOINT_UPLOAD_TOKEN" ] && [ -n "$WOWERPOINT_VIEWER_BASE" ]; then
|
|
164
|
+
UPLOAD_JSON=$(curl -sS --connect-timeout 10 --max-time 30 -X POST "$WOWERPOINT_API_BASE/api/decks" \
|
|
165
|
+
-H "Authorization: Bearer $WOWERPOINT_UPLOAD_TOKEN" \
|
|
166
|
+
-F "file=@<OUTPUT_PATH>" \
|
|
167
|
+
-F "title=<TITLE>")
|
|
168
|
+
DECK_ID=$(printf '%s' "$UPLOAD_JSON" | jq -r '.id // empty')
|
|
169
|
+
API_ERROR=$(printf '%s' "$UPLOAD_JSON" | jq -r '.error // empty')
|
|
170
|
+
if [ -n "$API_ERROR" ] || [ -z "$DECK_ID" ]; then
|
|
171
|
+
echo "WOWerpoint upload warning: ${API_ERROR:-missing id}"
|
|
172
|
+
else
|
|
173
|
+
echo "Share URL: $WOWERPOINT_VIEWER_BASE/d/$DECK_ID"
|
|
174
|
+
fi
|
|
175
|
+
fi
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
On warning, the PDF on disk is still a valid deliverable — do not retry the upload.
|
|
179
|
+
|
|
180
|
+
Report briefly (under 200 words):
|
|
181
|
+
- Final artifact ID
|
|
182
|
+
- Time per phase (source wait, generation, render wait, download)
|
|
183
|
+
- Output file path + size
|
|
184
|
+
- Share URL (if produced)
|
|
185
|
+
- Any retries or warnings
|
|
186
|
+
- Exact error message if any step failed
|
|
187
|
+
|
|
188
|
+
Do NOT poll status manually. The `wait` commands handle backoff.
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Failure modes
|
|
192
|
+
|
|
193
|
+
- **`pip: command not found`** — modern macOS doesn't ship pip on PATH. Use `uv tool install`.
|
|
194
|
+
- **`Playwright not installed`** — install `notebooklm-py` with `--with playwright`, then `playwright install chromium`.
|
|
195
|
+
- **`Run 'notebooklm login' to authenticate`** — only the user can complete OAuth.
|
|
196
|
+
- **`task_id` parsed as empty string** — wrong JSON envelope key. `generate` returns `{"task_id": "..."}` at top level.
|
|
197
|
+
- **Rate-limit (`GENERATION_FAILED` or "No result found for RPC ID")** — `--retry 2` handles transients; persistent failure means wait 5–10 minutes or fall back to the web UI.
|
|
198
|
+
- **Source upload denied for sensitive docs** — confirm before adding sources containing credentials, customer data, or unreleased product info. NotebookLM is a Google service.
|
|
199
|
+
- **`--length long` does not exist** — only `default|short`. If the user asks for "long slides," use `default` and explain.
|
|
200
|
+
- **No `--style` flag** — kawaii lives in the prompt text.
|
|
201
|
+
|
|
202
|
+
## Operational tips
|
|
203
|
+
|
|
204
|
+
- **Rerun cheaply** — once the notebook + source exist, regenerating with a different prompt only repeats generation + download. Reuse `NOTEBOOK_ID` and `SOURCE_ID`.
|
|
205
|
+
- **Web UI fallback** — if generation is rate-limited >30 minutes, open the notebook URL, trigger generation in the UI, then `notebooklm artifact list -n <NOTEBOOK_ID>` and `download`.
|