/cc-skills-media:nlm-to-wikifrom cc-skills-media
Sync NotebookLM notebook content to wiki pages with provenance tracking
Ships in cc-skills-media. 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.
Syncs structured content from NotebookLM notebooks into the wiki vault. For each notebook, extracts major concepts with definitions, operational details, relationships, and specific values, then creates individual wiki pages with provenance-tracking frontmatter.
nlm via Bash for notebook queriesOBSIDIAN_VAULT_PATH from settings.jsonVault path from settings.json:
OBSIDIAN_VAULT_PATH=~/.obsidian/vaults/personal-wiki # from settings.json
Each synced notebook has a manifest at <vault_path>/.nlm-sync-manifest.json:
{
"notebook_id": "<uuid>",
"notebook_title": "<title>",
"last_synced_at": "YYYY-MM-DD",
"source_ids": ["<uuid>", "..."],
"concept_slugs": ["<slug>", "..."]
}
The manifest is written after each sync and is used to detect new sources on subsequent syncs.
| Mode | Description |
|---|---|
sync <notebook-id> | Sync a single notebook by ID |
sync all | Sync all available notebooks |
sync --dry-run | Preview what would be synced: prints concept names, slugs, and target file paths for each page that would be created. No writes performed. |
| Re-sync | Re-syncs an already-synced notebook: skips concepts with matching content hash, overwrites changed concepts, warns on slug collision from prior sync |
Parse arguments and determine mode:
all: show usage error--dry-run: set dry_run=truenlm login --check
If authentication error occurs, run nlm login immediately (auto-handler).
After running nlm login, verify with nlm login --check. If still unauthenticated after login attempt, fail with descriptive error including stderr output.
nlm notebook list --json
Show available notebooks with IDs and titles for user selection.
Before querying, snapshot current source IDs for comparison:
nlm source list <notebook-id> --json
Compare returned source_ids[] against the sync manifest (.nlm-sync-manifest.json in the vault root). If the IDs match the last-synced state and the notebook has been synced before, skip the query entirely and report "No new sources since last sync."
If no manifest exists for this notebook, proceed to Step 4. The manifest is created during Step 6.
For each notebook to sync, query for structured content:
nlm notebook query <notebook-id> "For each major concept in this notebook, extract:
1. Concept name
2. What it is (definition)
3. Specific operational details (thresholds, parameters, mechanisms)
4. How it relates to other concepts in the notebook
5. Specific values and parameters that can be verified
Extract 5-20 major concepts per notebook. A major concept is a distinct topic, technique, tool, or architectural pattern that appears in the source material. Ignore minor mentions, tangentially related topics, and generic background information.
Format as structured markdown with ## for each concept."
Parse the query response:
## headings to isolate each conceptnlm-<notebook-id-short>-<concept-name-slug>.md
Parse validation: After splitting, validate that at least one concept was extracted and each concept has a non-empty body. If zero concepts extracted, fail with descriptive error and surface the raw query response. Do not proceed to write phase.
Slug collision detection: Maintain a seen-slug set during parsing. If a colliding slug is detected, append a numeric suffix (e.g., -2). Log each collision as a warning.
Pre-write vault validation: Before any writes, validate: (1) vault path exists, (2) is a directory, (3) is writable. Fail immediately with descriptive error if any check fails. Use pathlib.Path with .expanduser().resolve() for normalization.
Atomic writes: Write pages to a staging temp directory first, then atomically move to vault. If move fails, clean up staging and report error. Alternatively, track written pages in a manifest and support resume.
For each concept, write a wiki page at:
<vault_path>/wiki/concepts/nlm-<notebook-id-short>-<concept-name-slug>.md
Frontmatter schema:
---
nlm_sync:
version: "1.0"
notebook_id: "<uuid>"
notebook_title: "<title>"
synced_at: "YYYY-MM-DD"
source_ids: []
query_prompt: "<the prompt used>"
provenance:
- claim: "<specific claim text>"
source_id: "<source uuid>"
cited_text: "<exact text from source>"
sources:
- id: "<notebook-id>"
title: "<notebook-title>"
tags:
- nlm-synced
created: YYYY-MM-DD
---
## Concept Name
<extracted content>
## Related
<auto-linked wikilinks will be added by wiki skill's auto-linking phase>
After writing all pages, invoke the wiki skill to trigger auto-linking:
/wiki ingest <vault_path>/wiki/concepts/nlm-<notebook-id-short>-*.md
This creates [[wikilinks]] between related concept pages. If the wiki skill is unavailable, print a warning listing the pages that need linking and instruct the user to run /wiki ingest manually.
Print summary: report pages created, any slug collisions detected, and linking status.
After all pages are written and linked, write the sync manifest to the vault root:
<vault_path>/.nlm-sync-manifest.json
{
"notebook_id": "<uuid>",
"notebook_title": "<title>",
"last_synced_at": "YYYY-MM-DD",
"source_ids": ["<uuid>", "..."],
"concept_slugs": ["<slug>", "..."]
}
Overwrite any existing manifest for this notebook. The manifest is the source-of-truth for the re-sync source comparison in Step 3.5.
nlm login without promptingnlm notebook list to verify IDyaml.safe_dump for all YAML serialization/nlm-to-wiki sync abc123-def456-7890
/nlm-to-wiki sync all
/nlm-to-wiki sync --dry-run
After sync completes, report:
NLM to Wiki Sync Complete
=========================
Notebook: <title> (<id>)
Concepts extracted: N
Pages created:
- wiki/concepts/nlm-abc12345-concept-one.md
- wiki/concepts/nlm-abc12345-concept-two.md
...
Total pages: N
yaml.safe_dump exclusively| Component | Role |
|---|---|
nlm CLI | Notebook queries |
| Wiki skill | Auto-linking [[wikilinks]] after ingest |
| settings.json | OBSIDIAN_VAULT_PATH configuration |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (enduser123/cc-skills-media) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-media13 skills in this plugin
/codebase-to-courseTurn any codebase into a beautiful, interactive single-page HTML course that teaches how the code works to non-technical people./frontend-devFull-stack frontend development combining premium UI design, cinematic animations,
AI-generated media assets, persuasive copywriting, and visual art. Builds complete,
visually striking web pages with real media, advanced motion, and compelling copy.
Use when: building landing pages, marketing sites, product pages, dashboards,
generating media assets (image/video/audio/music), writing conversion copy,
creating generative art, or implementing cinematic scroll animations.
/fullstack-devFull-stack backend architecture and frontend-backend integration guide.
TRIGGER when: building a full-stack app, creating REST API with frontend, scaffolding backend service,
building todo app, building CRUD app, building real-time app, building chat app,
Express + React, Next.js API, Node.js backend, Python backend, Go backend,
designing service layers, implementing error handling, managing config/auth,
setting up API clients, implementing auth flows, handling file uploads,
adding real-time features (SSE/WebSocket), hardening for production.
DO NOT TRIGGER when: pure frontend UI work, pure CSS/styling, database schema only.
/minimax-multimodal-toolkitUse mmx to generate text, images, video, speech, and music via the MiniMax AI platform. Use when the user wants to create media content, chat with MiniMax models, perform web search, or manage MiniMax API resources from the terminal./minimax-music-genUse when user wants to generate music, songs, or audio tracks. Triggers on any request involving music creation, song writing, lyrics generation, audio production, or covers. Also triggers when user provides lyrics and wants them turned into a song, or describes a mood/scene and wants background music. Supports multilingual triggers — match equivalent phrases in any language. Do NOT use for music playback of existing files, music theory questions, or music recommendation without generation.
/minimax-music-playlistGenerate personalized music playlists by analyzing the user's music taste and generation feedback history. Triggers on any request involving playlist generation, music taste profiling, or personalized music recommendations. Supports multilingual triggers — match equivalent phrases in any language.