Setup
Interactive first-run wizard. Verifies paper-wiki's Python environment, walks the user through five questions to build their personal recipe (vault path, topics, S2 API key, auto-ingest preference), writes the config files, and surfaces optional MCP servers. Use when the user invokes /paper-wiki:setup, when no personal recipe exists yet at ~/.config/paper-wiki/recipes/, or when downstream paperwiki SKILLs report missing config.From its SKILL.md
npx -y skills add kaneyxx/paper-wiki --skill setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
28.7 KB, as published. Nobody here has run it
paper-wiki Setup
Overview
Setup is the first-run onboarding wizard. It does three things:
- Verifies the environment (Python venv, diagnostics output, optional MCP servers like paperclip).
- Asks five questions to build the user's personal
daily.yamlrecipe — vault path, topics, S2 API key, auto-ingest depth, and whether to add paperclip. - Writes three files that downstream SKILLs and CLI commands read:
~/.config/paper-wiki/recipes/daily.yaml— the personal recipe~/.config/paper-wiki/config.toml— D-V resolver default (vault- recipe path) so
paperwiki dedup-list/wiki-graph/extract-paper-imageswork without an explicit--vaultflag
- recipe path) so
~/.config/paper-wiki/secrets.env— the API keys (chmod 600)
After setup, the user runs /paper-wiki:digest and everything Just
Works — Claude finds the personal recipe, sources the secrets, runs
the pipeline, and (if auto_ingest_top > 0) folds top papers into
concept articles.
When to Use
- The user types
/paper-wiki:setup. - A paper-wiki SKILL fails because no personal recipe exists at
~/.config/paper-wiki/recipes/daily.yaml. - The user reports broken Python imports inside the shared paper-wiki
venv (default
~/.config/paper-wiki/venv/). - The user asks "how do I configure paper-wiki?", "where do I point it at my vault?", "do I need an API key?", "walk me through setup".
Do not use when the user is asking about a specific recipe, a specific paper, or pipeline output — those route to other SKILLs. Do not re-run unprompted on a vault that already has a personal recipe; use AskUserQuestion to ask the user whether to reconfigure first.
Process
Step 0 — Verify the venv
Run this exact bash to bootstrap (or refresh) the shared venv.
paperwiki_bootstrap (from the v0.3.38 shared helper) ensures
~/.local/bin is on PATH and resolves $CLAUDE_PLUGIN_ROOT from the
highest-version paper-wiki plugin cache, so the subsequent bash "$CLAUDE_PLUGIN_ROOT/hooks/ensure-env.sh" invocation always sees a
non-empty value (D-9.38.2).
source "$HOME/.local/lib/paperwiki/bash-helpers.sh" 2>/dev/null || {
echo "ERROR: paper-wiki bash-helpers missing at ~/.local/lib/paperwiki/bash-helpers.sh." >&2
echo " Fix: exit Claude Code and re-open — the SessionStart hook installs the helper." >&2
echo " Persistent failures: ~/.local/lib/ may be unwritable; re-run \$CLAUDE_PLUGIN_ROOT/hooks/ensure-env.sh." >&2
exit 1
}
paperwiki_bootstrap
bash "$CLAUDE_PLUGIN_ROOT/hooks/ensure-env.sh"
The source-or-die stanza is mandatory per D-9.38.4 — there is no silent fallback. A stale Claude Code session that predates the helper install fails loud with a restart instruction; restart → SessionStart hook installs the helper → SKILL works.
Confirm the next step (paperwiki diagnostics) runs without error —
that exit-0 IS the readiness gate (no separate .installed stamp
check; v0.3.34+ collapses the gate into the shim).
Step 1 — Run diagnostics
Run this exact bash to call the diagnostics runner via the shim and
parse the JSON. Sourcing the helper is mandatory — fresh-install
users may not have ~/.local/bin on PATH yet (D-9.34.6 → D-9.38.4).
source "$HOME/.local/lib/paperwiki/bash-helpers.sh" 2>/dev/null || {
echo "ERROR: paper-wiki bash-helpers missing at ~/.local/lib/paperwiki/bash-helpers.sh." >&2
echo " Fix: exit Claude Code and re-open — the SessionStart hook installs the helper." >&2
echo " Persistent failures: ~/.local/lib/ may be unwritable; re-run \$CLAUDE_PLUGIN_ROOT/hooks/ensure-env.sh." >&2
exit 1
}
paperwiki_ensure_path
paperwiki diagnostics
Note the mcp_servers field for the paperclip step later.
Step 2 — Detect existing config (Branch 1)
Check whether ~/.config/paper-wiki/recipes/daily.yaml already exists.
If it exists, use AskUserQuestion to prompt:
AskUserQuestion call:
- question: "Paper-wiki is already configured. What would you like to do?"
- header: "Setup mode"
- multiSelect: false
- options:
- label: "Keep current config" description: "Verify health (venv + diagnostics), then exit without changes."
- label: "Reconfigure from scratch" description: "Re-run the 5-question wizard and overwrite daily.yaml."
- label: "Edit one piece" description: "Drill into a specific field — vault path, topics, key, or auto-ingest."
Note: Claude Code automatically appends a Cancel option — do NOT add one manually.
If user chooses "Keep current config": run Step 0 + Step 1, confirm health, then run the migration heuristic check before exiting:
-
Read
~/.config/paper-wiki/recipes/daily.yaml. -
Look for any keyword listed in
STALE_MARKERSin the corresponding topic. Use this exact import (D-9.36.6 — pinning the literal collapses Claude's confabulation surface):from paperwiki.config.recipe_migrations import STALE_MARKERSThe primary check: does
foundation modelappear in thebiomedical-pathologytopic's keyword list? -
If yes, surface a 5th option via AskUserQuestion:
AskUserQuestion call (migration check):
- question: "Your recipe predates v0.3.17 keyword updates (contains 'foundation model' in biomedical-pathology, which matches unrelated ML papers). Would you like to migrate?"
- header: "Recipe stale"
- multiSelect: false
- options:
- label: "Migrate now" description: "Run /paper-wiki:migrate-recipe to apply the surgical keyword update."
- label: "Show me the diff first" description: "Preview what would change without applying."
- label: "Keep stale — I know what I'm doing" description: "Leave the recipe as-is and exit."
If "Migrate now": hand off to /paper-wiki:migrate-recipe.
If "Show me the diff first": run the runner in dry-run mode, show
the diff, re-ask.
If "Keep stale": exit without changes.
If the heuristic returns clean (no stale markers found): confirm health, show a summary, and exit normally.
If user chooses "Reconfigure from scratch": proceed to Q1 wizard below.
If user chooses "Edit one piece": go to Branch 2 (drill-down) below.
If user chooses Cancel (auto-provided): exit immediately without changes.
Branch 2 — Edit one piece (drill-down)
Use AskUserQuestion to prompt:
AskUserQuestion call:
- question: "Which piece would you like to edit?"
- header: "Edit field"
- multiSelect: false
- options:
- label: "Vault path" description: "Change the Obsidian vault directory location."
- label: "Topics" description: "Add or remove research areas used for filtering."
- label: "S2 API key" description: "Rotate or add your Semantic Scholar API key."
- label: "Auto-ingest" description: "Change how many top papers are auto-ingested after each digest."
Note: Claude Code automatically appends a Cancel option — do NOT add one manually.
For each option, collect only that field via the relevant wizard step
(Q1 through Q4 below), then merge it into the existing daily.yaml
and write. Show a confirmation summary after saving.
If user chooses Cancel (auto-provided): return to the previous menu (re-run Branch 1).
Q1 — Vault path (Branch 3)
Run the following to collect candidates:
ls -d ~/Documents/*Vault* ~/Documents/*Wiki* ~/Documents/Paper-Wiki ~/Obsidian* 2>/dev/null
Use AskUserQuestion to prompt:
AskUserQuestion call:
- question: "Where should paper-wiki put your Obsidian vault?"
- header: "Vault"
- multiSelect: false
- options: (pre-populate with up to 3 paths found above; always include the creation option)
- label: "~/Documents/Paper-Wiki" (if that path exists) description: "Existing folder detected at this location."
- label: "~/Documents/Obsidian-Vault" (if that path exists) description: "Existing folder detected at this location."
- label: "Create new" description: "Create a fresh vault at ~/Documents/Paper-Wiki/ with mkdir -p."
Cap at 4 total options. Claude Code automatically appends an Other option for custom paths — do NOT add a manual "Other" option. If the user selects the auto-provided Other, follow up with a free-form question to capture the path.
Validate the path. If it does not exist, offer to mkdir -p it.
Save as the vault path used throughout the recipe.
Q2 — Topics (Branch 4)
Use AskUserQuestion to prompt using multiSelect: true. The user can
select multiple themes in a single interaction — there is no need to
re-prompt until "Done". Claude Code automatically appends an Other option
for custom keywords — do NOT add a manual "Other" option and do NOT add
a "Done" option; multiSelect handles submission.
AskUserQuestion call:
- question: "Which research areas interest you? Select all that apply."
- header: "Topics"
- multiSelect: true
- options:
- label: "Vision & Multimodal" description: "Vision-language, VLM, multimodal, VQA, diffusion models."
- label: "Biomedical & Pathology" description: "Pathology, WSI, foundation models for medicine, clinical AI."
- label: "Agents & Reasoning" description: "Tool use, planning, agents, reasoning, RL."
- label: "NLP & Language" description: "LLMs, language models, instruction tuning, alignment."
If the user selects the auto-provided Other, treat the free-form text as custom keywords and create a 5th topic entry in the recipe.
Theme → keywords mapping
When writing the recipe YAML, expand each selected theme using this table:
Vision & Multimodal:
keywords: [vision-language, vision language model, VLM, foundation model,
multimodal, multi-modal, cross-modal, VQA, visual question answering,
diffusion model, denoising diffusion, latent diffusion]
categories: [cs.CV, cs.LG, cs.MM]
Biomedical & Pathology:
keywords: [pathology, histopathology, WSI, whole slide image,
digital pathology, medical imaging, clinical AI]
categories: [cs.CV, eess.IV, q-bio.QM]
Agents & Reasoning:
keywords: [agent, tool use, reasoning, planning, ReAct, chain-of-thought,
reinforcement learning, RLHF]
categories: [cs.AI, cs.MA, cs.LG]
NLP & Language:
keywords: [language model, LLM, large language model, instruction tuning,
alignment, RLHF, prompt engineering]
categories: [cs.CL, cs.LG]
If the user provided custom keywords via auto-Other, append them as a 5th
topic with categories: [cs.CV, cs.LG] as the catch-all default.
Q3 — Semantic Scholar API key (Branch 5)
v0.3.36 privacy contract: NEVER capture the API key value through
AskUserQuestion or any free-form follow-up. A pasted key would enter
the Claude session transcript, the tool-call logs, and the auto-memory
store. Instead, the wizard always writes a commented placeholder to
~/.config/paper-wiki/secrets.env (Step 9 below), and the user pastes
the real key out of band with their own editor (Step 10 guidance).
Use AskUserQuestion to prompt:
AskUserQuestion call:
- question: "Semantic Scholar API key — bumps rate limit from ~1 req/s to ~100 req/s. paper-wiki works fine without one. Either way, setup writes a commented placeholder you can fill in later."
- header: "S2 API key"
- multiSelect: false
- options:
- label: "I'll add a key later" description: "Write the placeholder template; emphasize the post-setup nano flow at Step 10."
- label: "Skip — no key" description: "Same placeholder template; mention the nano flow only briefly."
Both options route to the SAME Step 9 logic (always write the
placeholder template — never capture the key value). The choice only
affects how prominently Step 10 surfaces the post-setup guidance.
Record the answer as s2_key_intent: later | skip for use in the
final confirmation summary and Step 10.
Note: Claude Code automatically appends a Cancel option — do NOT add one manually. Do NOT add a third "Paste key now" option, and do NOT follow up with a free-form question to capture the key — that is the exact privacy regression v0.3.36 closes.
Q4 — auto-ingest depth (Branch 6)
Use AskUserQuestion to prompt:
AskUserQuestion call:
- question: "Auto-chain wiki-ingest for top-N papers after every digest?"
- header: "Auto-ingest"
- multiSelect: false
- options:
- label: "None" description: "Digest only — no auto wiki-ingest."
- label: "Top 3 (recommended)" description: "Ingest top 3 papers after each digest."
- label: "Top 5" description: "Ingest top 5 — heavier compute."
Claude Code automatically appends an Other option for custom values — do NOT add a manual "Custom" option. If the user selects auto-Other, follow up with a free-form question to capture an integer (1-20).
Save the result as auto_ingest_top: <n> in the recipe. Default 3.
Q5 — paperclip / biomedical (Branch 7)
Consult the mcp_servers field from diagnostics (Step 1).
Use AskUserQuestion to prompt:
AskUserQuestion call:
- question: "Do you have paperclip CLI installed for biomedical search?"
- header: "Paperclip"
- multiSelect: false
- options:
- label: "Yes — installed" description: "paperclip is on PATH and logged in; biomedical recipe will be written."
- label: "Skip" description: "No biomedical sources; skip this step."
- label: "How to install" description: "Show docs/paperclip-setup.md and the registration command verbatim."
If "How to install": show docs/paperclip-setup.md and the
registration command verbatim:
claude mcp add --transport http paperclip https://paperclip.gxl.ai/mcp
Do NOT auto-run this command — emit it for the user to run themselves.
Auth is sensitive. Then re-prompt this question.
If paperclip is already listed in mcp_servers: confirm cheerfully
that paperclip MCP is registered, mention
recipes/biomedical-weekly.yaml as a starting point, and skip to
the confirmation step.
Final confirmation (Branch 8)
Display a summary of all values collected:
- Vault path
- Topics selected
- S2 API key: placeholder template (fill in later via Step 10 nano flow) / placeholder template (skipped — public 1 req/s rate)
- auto_ingest_top value
- paperclip: registered / not registered / declined
Then use AskUserQuestion to prompt:
AskUserQuestion call:
- question: "Ready to save? Here's what I'll write to ~/.config/paper-wiki/:"
- header: "Save?"
- multiSelect: false
- options:
- label: "Save and exit" description: "Write the recipe and secrets files, then show next steps."
- label: "Edit before save" description: "Go back to Branch 2 to change a specific field."
Note: Claude Code automatically appends a Cancel option — do NOT add one manually.
If "Save and exit": write the recipe (Step 9) and show the next-step suggestion.
If "Edit before save": return to Branch 2 — Edit one piece.
If Cancel (auto-provided): exit without saving.
Step 9 — Write the recipe and secrets template
Step 9a — Write the recipe
Build the YAML from the wizard answers:
name: personal-daily
sources:
- {name: arxiv, config: {categories: [...], lookback_days: 3, max_results: 200}}
- {name: semantic_scholar, config: {query: "<first topic keyword>",
lookback_days: 7, limit: 50, api_key_env: PAPERWIKI_S2_API_KEY,
api_key_env_optional: true}}
filters:
- {name: recency, config: {max_days: 7}}
- {name: relevance, config: {topics: [...]}}
- {name: dedup, config: {vault_paths: ["<vault>/Daily", "<vault>/Sources",
"<vault>/Wiki/papers", "<vault>/Wiki/concepts"]}}
scorer: {name: composite, config: {topics: [...], weights: {...}}}
reporters:
- {name: markdown, config: {output_dir: "<vault>/.digest-archive"}}
- {name: obsidian, config: {vault_path: "<vault>", daily_subdir: Daily,
wiki_backend: true}}
top_k: 10
auto_ingest_top: <n>
The api_key_env_optional: true flag is mandatory on the
semantic_scholar source. With it set, the recipe loader degrades
gracefully (logger.warning + api_key=None) when
PAPERWIKI_S2_API_KEY is unset, so the digest pipeline runs at the
public 1 req/s rate from a fresh install. Drop it ONLY if the user
explicitly insists on loud-failing when the key is absent.
Recipe location (ask once). Use AskUserQuestion to let the user
choose where the recipe file lives:
- Home config (recommended default) —
~/.config/paper-wiki/recipes/daily.yaml(or$PAPERWIKI_CONFIG_DIR/recipes/daily.yamlwhen that env var is set, e.g.~/dotfiles/paper-wiki/). Keeps config separate from notes; the standard XDG location. - Inside the vault —
<vault>/.paperwiki/recipes/daily.yaml. The recipe then travels with the vault (Obsidian Sync / Git / Syncthing) and stays Obsidian-invisible under the leading-dot.paperwiki/directory — the same hidden namespace as the dedup, run-status, and wiki-log files. The Semantic Scholar key is not written here (it stays in~/.config/paper-wiki/secrets.env), so a synced or committed vault never leaks it.
Both work because resolve-recipe consults config.toml::default_recipe
(written in Step 9c) to find the recipe wherever it lives. Note: only
the default recipe can live in the vault this way; named recipes
(weekly, bio) still resolve from ~/.config/paper-wiki/recipes/ or
the bundled templates. Call the chosen path $RECIPE_PATH.
Use the Write tool to save the recipe to $RECIPE_PATH (create the
parent dir first with mkdir -p).
Step 9b — Write the secrets.env placeholder template
Always write the template — regardless of whether the user picked "I'll add a key later" or "Skip — no key" at Q3. The wizard never captures the key value itself; the file's job is to be a correct, runnable placeholder the user can populate out of band.
If ~/.config/paper-wiki/secrets.env already exists (e.g. a prior
install left a populated file), DO NOT overwrite it — assume the
user has already configured it and skip Step 9b silently. Only
write when the file is missing.
When writing, use the Write tool with the following literal
content:
# paper-wiki secrets — sourced by the runner before pipeline build.
#
# Optional: Semantic Scholar API key
# Without a key: S2 source still works at ~1 req/s rate limit.
# With a key: ~100 req/s, fewer 429 retries on busy days.
#
# To enable:
# 1. Get a free key at https://www.semanticscholar.org/product/api
# 2. Uncomment the line below and paste your key in place of the placeholder.
# 3. (No restart needed — every digest run sources this file fresh.)
#
# export PAPERWIKI_S2_API_KEY="paste-your-key-here"
After writing, set mode 600 so the file is only readable by the
user (chmod 600 ~/.config/paper-wiki/secrets.env). The chmod runs
unconditionally — even on a placeholder-only file — because the
file's purpose is to become the canonical secrets store the moment
the user adds anything to it.
Step 9c — Write config.toml (D-V resolver default)
Write ~/.config/paper-wiki/config.toml (or
$PAPERWIKI_CONFIG_DIR/config.toml if the env var is set) with the
two keys the resolver consults at Rung 4:
default_vault = "<vault path from Q1 — emit verbatim, no tilde expansion>"
default_recipe = "<$RECIPE_PATH from Step 9a — the home or vault path the user chose>"
Use the Write tool. Quote the values exactly — the resolver
re-expands tildes at read time so emitting ~/Documents/Paper-Wiki
verbatim is correct.
Overwrite policy — mirror the Step 9a recipe-overwrite handling:
- If
config.tomldoes NOT exist: write it. - If
config.tomlalready exists AND the user chose "Reconfigure from scratch" in Branch 1: write it (overwriting is the explicit user intent). - If
config.tomlalready exists AND the user is on the drill-down edit path (Branch 2 — only changing one Q): leave it alone unless Q1 (vault path) was the field they edited; in that case, rewrite it to keep config.toml in sync with the recipe.
Why this matters: without config.toml, the D-V resolver falls
through to Rung 5 (UserError) for every CLI command that does NOT
load a recipe — paperwiki dedup-list, paperwiki wiki-graph,
paperwiki extract-paper-images, etc. The recipe rung only fires
for paperwiki digest, so users who run anything else first see
"No vault specified" until config.toml is written.
Step 10 — Confirm + next step
Show the user a summary:
- Recipe saved to
~/.config/paper-wiki/recipes/daily.yaml - Resolver default at
~/.config/paper-wiki/config.toml(D-V Rung 4 — read bypaperwiki dedup-list,paperwiki wiki-graph,paperwiki extract-paper-images, etc. when--vaultis omitted) - Secrets template at
~/.config/paper-wiki/secrets.env(mode 600, commented placeholder — fill in to enable the 100 req/s S2 rate) - paperclip MCP: registered / not registered / declined
Then print the post-setup guidance block verbatim (same wording for
both s2_key_intent: later and s2_key_intent: skip — the latter
just gets it as informational context):
Setup complete. Recipe saved to ~/.config/paper-wiki/recipes/daily.yaml.
Optional next step — Semantic Scholar API key
paper-wiki works without it (1 req/s rate limit). To bump to 100 req/s:
1. Get a free key: https://www.semanticscholar.org/product/api
2. Edit secrets: $EDITOR ~/.config/paper-wiki/secrets.env
(or nano / vim / code — whatever you use)
3. Uncomment the line and paste your key in place of the placeholder.
4. Verify (optional): grep PAPERWIKI_S2_API_KEY ~/.config/paper-wiki/secrets.env
Run /paper-wiki:digest to pull your first morning digest.
Print the block as a literal preformatted/quoted region so the
$EDITOR line and the indented commands render as plain text — do
NOT execute the $EDITOR invocation, do NOT shell out to nano,
and do NOT prompt the user with another AskUserQuestion to capture
their key. The whole point of this step is to hand the key entry
back to the user's own terminal session.
If s2_key_intent was later, end with the /paper-wiki:digest
suggestion. If skip, still suggest /paper-wiki:digest (it works
fine without a key) and add: "you can flip the comment in
secrets.env any time later."
Common Rationalizations
| Excuse | Why it's wrong |
|---|---|
| "The user just wants to skip setup." | Without a personal recipe, every digest invocation falls back to bundled templates that point at the wrong vault. Walk through the five questions; it's three minutes. |
| "I'll trust whatever the user says about their vault path." | Validate that the path exists and is writable; an invalid path silently breaks every later SKILL. Offer to mkdir -p it explicitly. |
| "The venv is probably fine; no need to verify." | Stale or partial venvs are the most common silent failure. Run ensure-env.sh and confirm the .installed stamp every time. |
| "The user gave me their API key — I'll just inline it in the recipe." | NEVER inline secrets in YAML files that may be shared. Always go through api_key_env: PAPERWIKI_S2_API_KEY + ~/.config/paper-wiki/secrets.env. The recipe stays shareable; the secret stays secret. |
| "I'll just have the user paste the key inline — it's faster." | Never. The key enters the Claude transcript, the auto-memory, and tool logs. Always write a commented template and let the user edit secrets.env with their own editor. v0.3.36 closes this exact regression — do not re-introduce a Paste key now branch in Q3 or any free-form follow-up that captures the key value. |
| "All five questions in one message — fast for the user!" | Walk through them one at a time using AskUserQuestion. Multi-question prompts get half-answered and the SKILL ends up guessing the rest. |
| "Default everything; the user can edit later." | The user came to setup specifically to make decisions. Defaults are a fallback for "I don't know", not a substitute for asking. |
| "I can just render the options as markdown bullet points." | Use AskUserQuestion for every choice point. Rendering options as prose leaves Claude to guess which one the user picked; AskUserQuestion gives a structured selection UI. |
| "I should add an 'Other' or 'Cancel' option myself." | Claude Code injects these automatically. Manually adding them violates the AskUserQuestion schema and causes UI bugs like duplicate options or split tabs. |
| "Topics need 10 fine-grained options." | AskUserQuestion hard-caps at 4 options; exceeding this causes Claude Code to auto-split them into multiple tabs (the 'Topics (1)/(2)' bug). Use 4 themed buckets with multiSelect: true instead. |
| "I'll include broad terms like 'foundation model' in every topic." | Generic cross-domain keywords cause false positives from unrelated fields. Keep topic keyword sets domain-specific; 'foundation model' matches every ML paper regardless of domain and inflates relevance scores across all topics. |
| "I'll skip the header field — the question text is clear enough." | The header field is REQUIRED. Omitting it causes Claude Code to truncate the question text into a garbage label like 'Custom kw'. Always provide header (max 12 chars). |
Red Flags
ensure-env.shexits non-zero or the.installedstamp is missing — the venv is broken; rerun the script and inspect the output before asking any wizard question.- The diagnostics runner emits empty or non-JSON output — Python
imports are broken; nuke
.venvand rerunensure-env.sh. - The user already has
~/.config/paper-wiki/recipes/daily.yamland you are about to overwrite without asking — always confirm via AskUserQuestion (Branch 1). - The user mentions Chinese vault paths or templates — surface the locales option but keep English as the default for the wizard.
- The user asks you to "register paperclip for me" or similar —
explain that paperclip auth is sensitive; emit the command for them
to run themselves. Never auto-run
claude mcp addwithout explicit consent. Do not auto-run the registration command — show it verbatim without auto-running it. mcp_serversalready listspaperclipbut the user wants it registered again — surface the existing registration and ask whether to remove it first; do not stack duplicates.- Claude is about to capture the user's API key inline (via AskUserQuestion, free-form follow-up, or Write into secrets.env with a real key value) — STOP. v0.3.36 closes this regression. Always write the commented placeholder and route the user to the Step 10 nano flow. The key must never enter the Claude transcript.
- Claude renders choice options as markdown prose instead of calling AskUserQuestion — this breaks the structured selection UI and is the primary failure mode this SKILL is designed to prevent.
- An AskUserQuestion call is missing a
headerfield — Claude Code truncates the question text into a garbage chip label. Every call must specifyheader(≤ 12 chars). - An AskUserQuestion call has more than 4 options — Claude Code auto-splits them across tabs (producing "Topics (1)" / "Topics (2)" style bugs). Hard cap is 4 options; use multiSelect: true + themed buckets for multi-pick scenarios.
- A manual "Other", "Cancel", or "Done" option was added to an AskUserQuestion call — Claude Code injects these automatically. Adding them manually produces duplicates and schema violations.
Verification
paperwiki diagnosticsexits 0 and emits a parseable JSON report (the v0.3.34 readiness gate; replaces the legacy.installedstamp check).~/.config/paper-wiki/recipes/daily.yamlexists and parses as a validRecipeSchema(the digest runner will reject it loudly if not).~/.config/paper-wiki/secrets.envexists with mode600after Step 9b. The file always contains the commented-placeholder template by default; the user populates it out of band per the Step 10 guidance. The wizard NEVER captures the key value itself.- Claude called AskUserQuestion for each branch (Branches 1–8) rather than rendering options as markdown bullet points. If options appear only as prose with no AskUserQuestion call, the SKILL has failed its primary UX contract.
- Every AskUserQuestion call includes a
headerfield (≤ 12 chars). - No AskUserQuestion call has more than 4 options.
- No AskUserQuestion call includes a manually-added "Other", "Cancel", or "Done" option — Claude Code provides these automatically.
- The topics question uses
multiSelect: trueso users can select multiple themes in a single interaction without re-prompting. /paper-wiki:digest(the next-step command) loads the recipe successfully — confirm by running it once at the end of setup if the user is willing.