[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78AT0AZJ7WFY73766NBA1EC":3,"skill-same:01M78AT0AZJ7WFY73766NBA1EC":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M78AT0AZJ7WFY73766NBA1EC","notebooklm-mode",null,"Source-grounded research pipeline inspired by NotebookLM. Collect verbatim source extracts into a temporary workspace, then answer questions and create deliverables grounded in those sources. Two grounding modes: strict (vault-only) and augmented (vault + labeled [background] knowledge). Trigger when the user asks to research a topic from sources, wants NotebookLM-style grounded answers, asks to build a resource vault, or says \"notebooklm mode\".","moonlight-lupin\u002Fagent-skills","moonlight-lupin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F136997773?v=4","01M78AEDSH1N62R0RNWPWMWVQY","01M78AEDT8ZF85MTK6XYBQBTNT",123,"MIT","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm-mode\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: notebooklm-mode\ndescription: >\n  Source-grounded research pipeline inspired by NotebookLM. Collect verbatim\n  source extracts into a temporary workspace, then answer questions and create\n  deliverables grounded in those sources. Two grounding modes: strict\n  (vault-only) and augmented (vault + labeled [background] knowledge).\n  Trigger when the user asks to research a topic from sources, wants\n  NotebookLM-style grounded answers, asks to build a resource vault, or\n  says \"notebooklm mode\".\nlicense: MIT\nmetadata:\n  version: 1.0.0\n  author: moonlight-lupin\n  platforms: [linux, macos, windows]\n---\n\n# NotebookLM-Grounded Research Pipeline\n\nResearch a topic from sources — collect verbatim extracts, index them for\nsemantic search, then answer questions and create deliverables grounded in\nthose sources. Inspired by NotebookLM.\n\n## Trigger\n\n- User asks to research a topic \"from sources\" or \"grounded in sources\"\n- User mentions \"notebooklm mode\", \"source-grounded\", or \"vault mode\"\n- User wants responses that cite collected sources, not general knowledge\n- User asks to create deliverables from collected sources\n\n---\n\n## Modes\n\n### Direct mode (default)\n\nThe orchestrator runs all roles inline — no subagents. Use for most topics.\n\n### Subagent mode (optional)\n\nSpawn agents via `delegate_task` only when genuinely needed: parallel research\nacross distinct sub-topics, or user explicitly requests it. Not triggered by\nsource count alone — escalate when the work is genuinely parallel or the user\nasks for isolation.\n\n```\ndelegate_task(\n  goal=\"\u003Cuser's request>\",\n  context=\"You are the [Research|Response|Output] Agent in a NotebookLM\n           pipeline. Vault path: \u003Cvault_path>. Load skill 'notebooklm-mode'.\n           Your role: [Research|Response|Output]. Topic: \u003Ctopic>.\n           Grounding mode: [strict|augmented].\",\n  toolsets=[\u003Cappropriate toolsets per role>]\n)\n```\n\nSequential: Research → (user reviews) → Response → (user requests) → Output.\nNever dispatch a dependent agent before the previous one returns and files are verified.\n\n### Grounding modes\n\n| Mode | Behavior |\n|------|----------|\n| **Strict** (default) | Vault only. If it's not in the vault, you don't know it. Gaps are identified, never bridged with inference. |\n| **Augmented** | Vault first. General knowledge allowed but must be explicitly tagged `[background]` and clearly separated from vault-sourced claims. User requests this explicitly. |\n\nAugmented mode example:\n\n> According to Source #3: \"The LTCI system covers 95% of seniors\" [vault]\n>\n> [background] LTCI was introduced in 2000 as part of Japan's long-term care insurance reform.\n\n---\n\n## Shared Rules (all roles, both modes)\n\n- **Verbatim only** in source files — copy exact wording. Mark `[paraphrased]` only if paywalled and only abstract is available. Mark `[reconstructed from search snippets]` if full-page fetch failed.\n- **Cite everything** — every factual claim from the vault references a specific source file and, where possible, a verbatim quote with attribution.\n- **Present contradictions honestly** — when sources disagree, present both with attribution. Do not arbitrate.\n- **Gap identification ≠ conclusion** — \"the vault lacks info on X\" is fine; \"therefore X is probably Y\" is forbidden (strict) or must be tagged `[background]` (augmented).\n- **Strip secrets** — scan source content for API keys, tokens, or credentials before saving to vault or outputs.\n- **No pre-existing knowledge in source files** — record sources as-is, even if you believe they're wrong. Assessment happens in Response role.\n\n---\n\n## Workspace Vault\n\nThe vault is a temporary workspace directory created specifically for the\nuser's research — **not** part of the permanent library. It holds source\nextracts, a per-corpus RAG index, and outputs for one research topic. Clean\nup when research is complete, or archive if the user wants to keep it.\n\n**Always confirm the vault location on first interaction:**\n\n> \"Where should I create the workspace? Default: `\u003Cproject_folder>\u002Fresearch-\u003Ctopic>\u002F`\"\n\nThe workspace serves as the working directory for the research session. The\nuser may provide source materials through any connected channel (Telegram,\nWhatsApp, etc.) — the agent saves them into `sources\u002F` and indexes them on\nthe next interaction. The user does not need direct VM filesystem access.\n\nDelivery of outputs works the same way — the agent sends finished deliverables\nback through the channel the user requested them on (e.g., Telegram MEDIA:\nfor files, inline markdown for notes).\n\n### Structure\n\n```\n\u003Cvault_path>\u002F\n├── vault_index.md          # Catalog of sources + outputs\n├── sources\u002F                # Verbatim source extracts (one file per source)\n│   └── 001_title.md\n├── rag_index.db            # Per-corpus sqlite-vec DB (semantic search)\n└── outputs\u002F                # Agent-generated deliverables\n    └── notes_YYYY-MM-DD.md\n```\n\n### Source file format\n\n```markdown\n# Source Title\n\n| Field    | Value                     |\n|----------|---------------------------|\n| URL      | https:\u002F\u002Fexample.com\u002Fpage  |\n| Author   | Author Name (if known)    |\n| Date     | Publication date (if known) |\n| Retrieved| YYYY-MM-DD                |\n| Type     | web \u002F pdf \u002F user-provided \u002F youtube |\n\n## Extracts\n\n> \"Verbatim quote from the source.\"\n> — Section: Introduction\n\n## Key Data Points\n\n- Statistic: 42% of respondents... (Section: Results)\n```\n\n- For websites, extract the **actual content**, not just the URL\n- If too long, extract relevant passages and note what was skipped\n- Number files sequentially: `001_`, `002_`, etc.\n- User-provided files: set Type to `user-provided`, leave URL blank\n- Markers for non-verbatim extracts: `[paraphrased]` (paywalled, abstract only), `[reconstructed from search snippets]` (full-page fetch failed)\n\n### vault_index.md\n\n```markdown\n# Workspace Vault Index\n**Topic:** [topic] | **Created:** YYYY-MM-DD | **Sources:** N | **Mode:** [strict|augmented]\n\n## Sources\n| # | File | Type | Title | Retrieved |\n|---|------|------|-------|-----------|\n| 1 | 001_title.md | web | Article Title | YYYY-MM-DD |\n\n## Coverage Notes\n- Well covered: [list] | Gaps: [list]\n\n## Outputs\n| File | Type | Created |\n|------|------|---------|\n| notes_YYYY-MM-DD.md | notes | YYYY-MM-DD |\n```\n\n### User-provided materials\n\nUsers can provide files through any connected channel (Telegram, WhatsApp,\netc.) at any time. The agent saves them into `sources\u002F`, indexes them, updates\n`vault_index.md`, and confirms with the user — no direct VM access needed.\n\n---\n\n## Per-Corpus Semantic Search (optional)\n\nA **new** `rag_index.db` is created fresh inside each workspace — a standalone\nsqlite-vec database using the same bge-m3 embeddings as `library-rag`, but\nscoped to this research corpus only. Separate research topics get separate\nworkspace folders, each with its own isolated DB. **Never** indexes into the\nmain library DB at `~\u002F.hermes\u002Flibrary\u002Frag_index.db`.\n\n**This is optional.** The skill works without it — for small vaults, direct\nfile reading is sufficient. Semantic search adds value as the corpus grows\n(20+ sources). If library-rag is not available, `ingest_source.py` writes\nfiles only and skips indexing.\n\n### Atomic ingest (write + index in one call)\n\nUse the bundled `ingest_source.py` script to write a source file AND index it\ninto the vault's RAG DB atomically (if RAG is available). This eliminates the\nsave-then-index two-step that can silently fail on weaker local models.\n\n**Python API:**\n\n```python\nimport sys; sys.path.insert(0, \"\u003Cskill_dir>\u002Fscripts\")\nfrom ingest_source import ingest, search_vault, reindex_vault\n\n# Write + index atomically\nresult = ingest(vault_path, \"001_title.md\", content)\nprint(f\"Indexed {result['chunks_indexed']} chunks\")\n\n# Semantic search over the vault\nresults = search_vault(vault_path, \"your query\", top_k=5)\nfor r in results:\n    print(f\"[{r['similarity']:.0%}] {r['source_file']} — {r['section_title']}\")\n    print(f\"  {r['chunk_text'][:200]}\")\n\n# Reindex all sources (e.g., after user drops files manually)\nreindex_vault(vault_path)\n```\n\n**CLI:**\n\n```bash\n# Write + index\npython3 \u003Cskill_dir>\u002Fscripts\u002Fingest_source.py \\\n  --vault \u003Cvault_path> --file 001_title.md --content \"...\"\n\n# Reindex all sources\npython3 \u003Cskill_dir>\u002Fscripts\u002Fingest_source.py --vault \u003Cvault_path> --reindex\n\n# Search\npython3 \u003Cskill_dir>\u002Fscripts\u002Fingest_source.py \\\n  --vault \u003Cvault_path> --search \"query\" --top-k 5\n```\n\nThe script resolves the library-rag scripts in order: the `LIBRARY_RAG_SCRIPTS`\nenv var, then the Hermes skills layout, then repo-relative fallbacks (e.g. a\nsibling `library-rag\u002Fscripts` or `research\u002Flibrary-rag\u002Fscripts`). So a plain\nclone of this repo works without any env var. No MCP dependency — imports\ndirectly.\n\n### When to use\n\n- **Response** — query the vault semantically instead of loading all source\n  files into context. Especially valuable for large vaults (20+ sources).\n- **Output** — find all passages related to a theme before creating a deliverable.\n\nFor small vaults (\u003C5 sources, short documents), direct file reading is fine —\nsemantic search adds more value as the corpus grows.\n\n---\n\n## Roles\n\n### Research (Gatherer)\n\n**Purpose:** Research online, find sources, extract verbatim passages, populate vault.\n\n**Tools:** `web_search`, `web_extract`, `browser`, `terminal` (for `ingest_source.py`)\n\n**Behavior:**\n1. Clarify scope if topic is broad\n2. **Plan the research** — break the topic into 3-6 sub-questions and define success criteria (what would comprehensive coverage look like?). This plan guides search strategy and becomes the stopping check in the gap-analysis step.\n3. **Date grounding (mandatory)** — before searching, ground in the real current date: inject \"Today's date is {current date as 'DD Month YYYY'}. When a search query needs a year or refers to 'latest'\u002F'current'\u002F'this year', use {current year} — never a year inferred from training data.\" This prevents stale training-cutoff year references in queries.\n4. Search for authoritative, diverse, recent sources — generate queries targeting the sub-questions from step 2\n5. **Quality filter** — before extracting, discard low-quality results:\n   - Thin content: landing pages, aggregator stubs, \u003C100 words of substantive text\n   - Irrelevant: keyword overlap without topical relevance (word-boundary match, not substring)\n   - Duplicate URLs: same page appearing in multiple results\n   - Non-text: video-only pages, image boards, login walls with no preview\n6. Fetch full content, select relevant passages, copy **verbatim** into source content\n7. **Atomic ingest** — use `ingest_source.py` to write + index each source in one call. Update `vault_index.md` after each addition.\n8. **Gap analysis** — after the first pass, review findings against the research plan:\n   - Which sub-questions are unanswered? Which have thin coverage?\n   - Generate targeted follow-up queries for the gaps and run another search pass\n   - Repeat up to 3 passes total. Document any remaining gaps in `vault_index.md` under Coverage Notes\n9. **Stopping criteria** — stop searching when:\n   - All sub-questions have ≥1 source addressing them, OR\n   - 3 search passes completed, OR\n   - 20 sources collected (breadth limit)\n   - If stopping with gaps: document them explicitly in Coverage Notes — never paper over with inference\n10. Report themes found (not content), ask if user wants deeper research\n11. Stop after 5–20 sources (depending on breadth); confirm coverage is adequate\n\n### Response (Grounded Responder)\n\n**Purpose:** Answer questions from the vault. The vault is the knowledge base.\n\n**Tools:** `read_file`, `terminal` (for `search_vault`)\n\n**Behavior:**\n1. Read `vault_index.md` first. For large vaults, use `search_vault()` instead of loading all files.\n2. Answer using vault content. Cite: *\"According to Source #3:...\"*\n3. Check for unindexed user-provided files before each response (run `reindex_vault` if new files found)\n4. If vault doesn't cover the question:\n   - **Strict mode**: state the gap, suggest a research prompt. Never insinuate a conclusion.\n   - **Augmented mode**: state the gap, suggest a research prompt, and optionally provide `[background]` context clearly separated from vault claims.\n5. If sources contradict, present both — do not arbitrate\n6. Save substantial responses to `outputs\u002Fnotes_YYYY-MM-DD.md` with citations\n\n### Output (Creator)\n\n**Purpose:** Create deliverables from vault content using available tools.\n\n**Tools:** `file`, `terminal`, + any needed for output format\n\n**Behavior:**\n1. Receive: what to create, scope, format, which sources to draw from\n2. Read relevant vault sources (use `search_vault()` for large vaults)\n3. Create output using appropriate tools — chain to whatever specialized\n   skills your agent runtime has installed (none of these ship in this repo):\n   - `.md` → write the file directly\n   - `.docx`\u002F`.pptx`\u002F`.xlsx` → an office-document skill, if available\n   - Infographics \u002F slides \u002F magazine layouts \u002F data reports \u002F posters → the\n     equivalent design or authoring skill, if available; otherwise produce\n     structured markdown the user can hand to their own tooling\n4. Include source citations (footnotes or inline) and a \"Sources\" section\n5. Save to `outputs\u002F`, update `vault_index.md`\n6. Verify output file exists and is valid\n\n---\n\n## Source Feeders\n\nOther skills can feed source files into a vault:\n\n| Skill | How it feeds | Source type |\n|-------|-------------|-------------|\n| Manual research | Agent saves web extracts directly into `sources\u002F` | `web`, `pdf`, `user-provided` |\n\nWhen a feeder skill writes sources, run `reindex_vault()` to index them into the vault's RAG DB before Response\u002FOutput roles use the vault.\n\n## Orchestrator Routing\n\n| User intent | Role | Mode |\n|-------------|------|------|\n| \"Research [topic]\", \"Find sources on...\" | Research | Direct |\n| \"What does the vault say about...\", \"Summarize...\" | Response | Direct |\n| \"Create slides\u002Fnotes\u002Finfographic from the vault\" | Output | Direct |\n| \"Check what's in the vault\" | Response | Direct |\n| \"Study John 3:16\", \"Study Genesis 5 with Calvin\", \"What does {commentator} say about {passage}\" | Research → Response | Direct + `references\u002Fbook-study.md` |\n| Ambiguous — research vs answer | Ask: new sources, or answer from existing vault? | — |\n\nDefault to direct mode. Only escalate to subagent mode when the work is\ngenuinely parallel or the user explicitly requests isolation.\n\n---\n\n## Pitfalls\n\n- **Vault path must be confirmed every new session** — never assume location\n- **Vault is temporary** — not part of the permanent library. Clean up when done, or archive if the user wants to keep it. Never index vault sources into the main library RAG unless the user explicitly asks.\n- **Subagent file writes are unreliable** — always `ls` the sources directory after a subagent returns; re-create files yourself if missing\n- **Bot detection blocks many sites** — prefer Wikipedia, government sites; use `browser_console` for extraction; mark reconstructed extracts as `[reconstructed from search snippets]`\n- **Large vaults** — use `search_vault()` instead of loading all source files into context\n- **Verbatim means verbatim** — keep source typos, add `[sic]` if it matters\n- **Augmented mode discipline** — `[background]` tags are mandatory for any non-vault knowledge. When in doubt, use strict mode.\n- **Stale year in queries** — always inject date grounding before searching. Models default to training-cutoff years, producing irrelevant results for time-sensitive topics.\n- **Skipping the research plan** — without sub-questions and success criteria, the collection phase has no direction and gap analysis has no baseline. Always plan before searching.\n- **Skipping gap analysis** — a single search pass misses follow-up questions. Always review coverage against the plan after the first pass and run targeted follow-up queries for gaps.\n- **Papering over gaps** — if a sub-question can't be answered from sources, document it as a gap in `vault_index.md` Coverage Notes. Never bridge with inference (strict) or untagged background knowledge (augmented).\n- **Book study needs parse_reference.py** — resolving \"John 3:16\" to exact text requires the reference parser script (`scripts\u002Fparse_reference.py`). If it's missing, fall back to semantic search (less precise — may return the wrong chapter or verse range). See `references\u002Fbook-study.md` for the full workflow.","# NotebookLM-Grounded Research Pipeline\n\nResearch a topic from sources — collect verbatim extracts, index them for\nsemantic search, then answer questions and create deliverables grounded in\nthose sources. Inspired by NotebookLM.\n\n## Trigger\n\n- User asks to research a topic \"from sources\" or \"grounded in sources\"\n- User mentions \"notebooklm mode\", \"source-grounded\", or \"vault mode\"\n- User wants responses that cite collected sources, not general knowledge\n- User asks to create deliverables from collected sources\n\n---\n\n## Modes\n\n### Direct mode (default)\n\nThe orchestrator runs all roles inline — no subagents. Use for most topics.\n\n### Subagent mode (optional)\n\nSpawn agents via `delegate_task` only when genuinely needed: parallel research\nacross distinct sub-topics, or user explicitly requests it. Not triggered by\nsource count alone — escalate when the work is genuinely parallel or the user\nasks for isolation.\n\n```\ndelegate_task(\n  goal=\"\u003Cuser's request>\",\n  context=\"You are the [Research|Response|Output] Agent in a NotebookLM\n           pipeline. Vault path: \u003Cvault_path>. Load skill 'notebooklm-mode'.\n           Your role: [Research|Response|Output]. Topic: \u003Ctopic>.\n           Grounding mode: [strict|augmented].\",\n  toolsets=[\u003Cappropriate toolsets per role>]\n)\n```\n\nSequential: Research → (user reviews) → Response → (user requests) → Output.\nNever dispatch a dependent agent before the previous one returns and files are verified.\n\n### Grounding modes\n\n| Mode | Behavior |\n|------|----------|\n| **Strict** (default) | Vault only. If it's not in the vault, you don't know it. Gaps are identified, never bridged with inference. |\n| **Augmented** | Vault first. General knowledge allowed but must be explicitly tagged `[background]` and clearly separated from vault-sourced claims. User requests this explicitly. |\n\nAugmented mode example:\n\n> According to Source #3: \"The LTCI system covers 95% of seniors\" [vault]\n>\n> [background] LTCI was introduced in 2000 as part of Japan's long-term care insurance reform.\n\n---\n\n## Shared Rules (all roles, both modes)\n\n- **Verbatim only** in source files — copy exact wording. Mark `[paraphrased]` only if paywalled and only abstract is available. Mark `[reconstructed from search snippets]` if full-page fetch failed.\n- **Cite everything** — every factual claim from the vault references a specific source file and, where possible, a verbatim quote with attribution.\n- **Present contradictions honestly** — when sources disagree, present both with attribution. Do not arbitrate.\n- **Gap identification ≠ conclusion** — \"the vault lacks info on X\" is fine; \"therefore X is probably Y\" is forbidden (strict) or must be tagged `[background]` (augmented).\n- **Strip secrets** — scan source content for API keys, tokens, or credentials before saving to vault or outputs.\n- **No pre-existing knowledge in source files** — record sources as-is, even if you believe they're wrong. Assessment happens in Response role.\n\n---\n\n## Workspace Vault\n\nThe vault is a temporary workspace directory created specifically for the\nuser's research — **not** part of the permanent library. It holds source\nextracts, a per-corpus RAG index, and outputs for one research topic. Clean\nup when research is complete, or archive if the user wants to keep it.\n\n**Always confirm the vault location on first interaction:**\n\n> \"Where should I create the workspace? Default: `\u003Cproject_folder>\u002Fresearch-\u003Ctopic>\u002F`\"\n\nThe workspace serves as the working directory for the research session. The\nuser may provide source materials through any connected channel (Telegram,\nWhatsApp, etc.) — the agent saves them into `sources\u002F` and indexes them on\nthe next interaction. The user does not need direct VM filesystem access.\n\nDelivery of outputs works the same way — the agent sends finished deliverables\nback through the channel the user requested them on (e.g., Telegram MEDIA:\nfor files, inline markdown for notes).\n\n### Structure\n\n```\n\u003Cvault_path>\u002F\n├── vault_index.md          # Catalog of sources + outputs\n├── sources\u002F                # Verbatim source extracts (one file per source)\n│   └── 001_title.md\n├── rag_index.db            # Per-corpus sqlite-vec DB (semantic search)\n└── outputs\u002F                # Agent-generated deliverables\n    └── notes_YYYY-MM-DD.md\n```\n\n### Source file format\n\n```markdown\n# Source Title\n\n| Field    | Value                     |\n|----------|---------------------------|\n| URL      | https:\u002F\u002Fexample.com\u002Fpage  |\n| Author   | Author Name (if known)    |\n| Date     | Publication date (if known) |\n| Retrieved| YYYY-MM-DD                |\n| Type     | web \u002F pdf \u002F user-provided \u002F youtube |\n\n## Extracts\n\n> \"Verbatim quote from the source.\"\n> — Section: Introduction\n\n## Key Data Points\n\n- Statistic: 42% of respondents... (Section: Results)\n```\n\n- For websites, extract the **actual content**, not just the URL\n- If too long, extract relevant passages and note what was skipped\n- Number files sequentially: `001_`, `002_`, etc.\n- User-provided files: set Type to `user-provided`, leave URL blank\n- Markers for non-verbatim extracts: `[paraphrased]` (paywalled, abstract only), `[reconstructed from search snippets]` (full-page fetch failed)\n\n### vault_index.md\n\n```markdown\n# Workspace Vault Index\n**Topic:** [topic] | **Created:** YYYY-MM-DD | **Sources:** N | **Mode:** [strict|augmented]\n\n## Sources\n| # | File | Type | Title | Retrieved |\n|---|------|------|-------|-----------|\n| 1 | 001_title.md | web | Article Title | YYYY-MM-DD |\n\n## Coverage Notes\n- Well covered: [list] | Gaps: [list]\n\n## Outputs\n| File | Type | Created |\n|------|------|---------|\n| notes_YYYY-MM-DD.md | notes | YYYY-MM-DD |\n```\n\n### User-provided materials\n\nUsers can provide files through any connected channel (Telegram, WhatsApp,\netc.) at any time. The agent saves them into `sources\u002F`, indexes them, updates\n`vault_index.md`, and confirms with the user — no direct VM access needed.\n\n---\n\n## Per-Corpus Semantic Search (optional)\n\nA **new** `rag_index.db` is created fresh inside each workspace — a standalone\nsqlite-vec database using the same bge-m3 embeddings as `library-rag`, but\nscoped to this research corpus only. Separate research topics get separate\nworkspace folders, each with its own isolated DB. **Never** indexes into the\nmain library DB at `~\u002F.hermes\u002Flibrary\u002Frag_index.db`.\n\n**This is optional.** The skill works without it — for small vaults, direct\nfile reading is sufficient. Semantic search adds value as the corpus grows\n(20+ sources). If library-rag is not available, `ingest_source.py` writes\nfiles only and skips indexing.\n\n### Atomic ingest (write + index in one call)\n\nUse the bundled `ingest_source.py` script to write a source file AND index it\ninto the vault's RAG DB atomically (if RAG is available). This eliminates the\nsave-then-index two-step that can silently fail on weaker local models.\n\n**Python API:**\n\n```python\nimport sys; sys.path.insert(0, \"\u003Cskill_dir>\u002Fscripts\")\nfrom ingest_source import ingest, search_vault, reindex_vault\n\n# Write + index atomically\nresult = ingest(vault_path, \"001_title.md\", content)\nprint(f\"Indexed {result['chunks_indexed']} chunks\")\n\n# Semantic search over the vault\nresults = search_vault(vault_path, \"your query\", top_k=5)\nfor r in results:\n    print(f\"[{r['similarity']:.0%}] {r['source_file']} — {r['section_title']}\")\n    print(f\"  {r['chunk_text'][:200]}\")\n\n# Reindex all sources (e.g., after user drops files manually)\nreindex_vault(vault_path)\n```\n\n**CLI:**\n\n```bash\n# Write + index\npython3 \u003Cskill_dir>\u002Fscripts\u002Fingest_source.py \\\n  --vault \u003Cvault_path> --file 001_title.md --content \"...\"\n\n# Reindex all sources\npython3 \u003Cskill_dir>\u002Fscripts\u002Fingest_source.py --vault \u003Cvault_path> --reindex\n\n# Search\npython3 \u003Cskill_dir>\u002Fscripts\u002Fingest_source.py \\\n  --vault \u003Cvault_path> --search \"query\" --top-k 5\n```\n\nThe script resolves the library-rag scripts in order: the `LIBRARY_RAG_SCRIPTS`\nenv var, then the Hermes skills layout, then repo-relative fallbacks (e.g. a\nsibling `library-rag\u002Fscripts` or `research\u002Flibrary-rag\u002Fscripts`). So a plain\nclone of this repo works without any env var. No MCP dependency — imports\ndirectly.\n\n### When to use\n\n- **Response** — query the vault semantically instead of loading all source\n  files into context. Especially valuable for large vaults (20+ sources).\n- **Output** — find all passages related to a theme before creating a deliverable.\n\nFor small vaults (\u003C5 sources, short documents), direct file reading is fine —\nsemantic search adds more value as the corpus grows.\n\n---\n\n## Roles\n\n### Research (Gatherer)\n\n**Purpose:** Research online, find sources, extract verbatim passages, populate vault.\n\n**Tools:** `web_search`, `web_extract`, `browser`, `terminal` (for `ingest_source.py`)\n\n**Behavior:**\n1. Clarify scope if topic is broad\n2. **Plan the research** — break the topic into 3-6 sub-questions and define success criteria (what would comprehensive coverage look like?). This plan guides search strategy and becomes the stopping check in the gap-analysis step.\n3. **Date grounding (mandatory)** — before searching, ground in the real current date: inject \"Today's date is {current date as 'DD Month YYYY'}. When a search query needs a year or refers to 'latest'\u002F'current'\u002F'this year', use {current year} — never a year inferred from training data.\" This prevents stale training-cutoff year references in queries.\n4. Search for authoritative, diverse, recent sources — generate queries targeting the sub-questions from step 2\n5. **Quality filter** — before extracting, discard low-quality results:\n   - Thin content: landing pages, aggregator stubs, \u003C100 words of substantive text\n   - Irrelevant: keyword overlap without topical relevance (word-boundary match, not substring)\n   - Duplicate URLs: same page appearing in multiple results\n   - Non-text: video-only pages, image boards, login walls with no preview\n6. Fetch full content, select relevant passages, copy **verbatim** into source content\n7. **Atomic ingest** — use `ingest_source.py` to write + index each source in one call. Update `vault_index.md` after each addition.\n8. **Gap analysis** — after the first pass, review findings against the research plan:\n   - Which sub-questions are unanswered? Which have thin coverage?\n   - Generate targeted follow-up queries for the gaps and run another search pass\n   - Repeat up to 3 passes total. Document any remaining gaps in `vault_index.md` under Coverage Notes\n9. **Stopping criteria** — stop searching when:\n   - All sub-questions have ≥1 source addressing them, OR\n   - 3 search passes completed, OR\n   - 20 sources collected (breadth limit)\n   - If stopping with gaps: document them explicitly in Coverage Notes — never paper over with inference\n10. Report themes found (not content), ask if user wants deeper research\n11. Stop after 5–20 sources (depending on breadth); confirm coverage is adequate\n\n### Response (Grounded Responder)\n\n**Purpose:** Answer questions from the vault. The vault is the knowledge base.\n\n**Tools:** `read_file`, `terminal` (for `search_vault`)\n\n**Behavior:**\n1. Read `vault_index.md` first. For large vaults, use `search_vault()` instead of loading all files.\n2. Answer using vault content. Cite: *\"According to Source #3:...\"*\n3. Check for unindexed user-provided files before each response (run `reindex_vault` if new files found)\n4. If vault doesn't cover the question:\n   - **Strict mode**: state the gap, suggest a research prompt. Never insinuate a conclusion.\n   - **Augmented mode**: state the gap, suggest a research prompt, and optionally provide `[background]` context clearly separated from vault claims.\n5. If sources contradict, present both — do not arbitrate\n6. Save substantial responses to `outputs\u002Fnotes_YYYY-MM-DD.md` with citations\n\n### Output (Creator)\n\n**Purpose:** Create deliverables from vault content using available tools.\n\n**Tools:** `file`, `terminal`, + any needed for output format\n\n**Behavior:**\n1. Receive: what to create, scope, format, which sources to draw from\n2. Read relevant vault sources (use `search_vault()` for large vaults)\n3. Create output using appropriate tools — chain to whatever specialized\n   skills your agent runtime has installed (none of these ship in this repo):\n   - `.md` → write the file directly\n   - `.docx`\u002F`.pptx`\u002F`.xlsx` → an office-document skill, if available\n   - Infographics \u002F slides \u002F magazine layouts \u002F data reports \u002F posters → the\n     equivalent design or authoring skill, if available; otherwise produce\n     structured markdown the user can hand to their own tooling\n4. Include source citations (footnotes or inline) and a \"Sources\" section\n5. Save to `outputs\u002F`, update `vault_index.md`\n6. Verify output file exists and is valid\n\n---\n\n## Source Feeders\n\nOther skills can feed source files into a vault:\n\n| Skill | How it feeds | Source type |\n|-------|-------------|-------------|\n| Manual research | Agent saves web extracts directly into `sources\u002F` | `web`, `pdf`, `user-provided` |\n\nWhen a feeder skill writes sources, run `reindex_vault()` to index them into the vault's RAG DB before Response\u002FOutput roles use the vault.\n\n## Orchestrator Routing\n\n| User intent | Role | Mode |\n|-------------|------|------|\n| \"Research [topic]\", \"Find sources on...\" | Research | Direct |\n| \"What does the vault say about...\", \"Summarize...\" | Response | Direct |\n| \"Create slides\u002Fnotes\u002Finfographic from the vault\" | Output | Direct |\n| \"Check what's in the vault\" | Response | Direct |\n| \"Study John 3:16\", \"Study Genesis 5 with Calvin\", \"What does {commentator} say about {passage}\" | Research → Response | Direct + `references\u002Fbook-study.md` |\n| Ambiguous — research vs answer | Ask: new sources, or answer from existing vault? | — |\n\nDefault to direct mode. Only escalate to subagent mode when the work is\ngenuinely parallel or the user explicitly requests isolation.\n\n---\n\n## Pitfalls\n\n- **Vault path must be confirmed every new session** — never assume location\n- **Vault is temporary** — not part of the permanent library. Clean up when done, or archive if the user wants to keep it. Never index vault sources into the main library RAG unless the user explicitly asks.\n- **Subagent file writes are unreliable** — always `ls` the sources directory after a subagent returns; re-create files yourself if missing\n- **Bot detection blocks many sites** — prefer Wikipedia, government sites; use `browser_console` for extraction; mark reconstructed extracts as `[reconstructed from search snippets]`\n- **Large vaults** — use `search_vault()` instead of loading all source files into context\n- **Verbatim means verbatim** — keep source typos, add `[sic]` if it matters\n- **Augmented mode discipline** — `[background]` tags are mandatory for any non-vault knowledge. When in doubt, use strict mode.\n- **Stale year in queries** — always inject date grounding before searching. Models default to training-cutoff years, producing irrelevant results for time-sensitive topics.\n- **Skipping the research plan** — without sub-questions and success criteria, the collection phase has no direction and gap analysis has no baseline. Always plan before searching.\n- **Skipping gap analysis** — a single search pass misses follow-up questions. Always review coverage against the plan after the first pass and run targeted follow-up queries for gaps.\n- **Papering over gaps** — if a sub-question can't be answered from sources, document it as a gap in `vault_index.md` Coverage Notes. Never bridge with inference (strict) or untagged background knowledge (augmented).\n- **Book study needs parse_reference.py** — resolving \"John 3:16\" to exact text requires the reference parser script (`scripts\u002Fparse_reference.py`). If it's missing, fall back to semantic search (less precise — may return the wrong chapter or verse range). See `references\u002Fbook-study.md` for the full workflow.",{"name":5,"license":14,"metadata":23,"description":29},{"author":9,"version":24,"platforms":25},"1.0.0",[26,27,28],"linux","macos","windows","Source-grounded research pipeline inspired by NotebookLM. Collect verbatim source extracts into a temporary workspace, then answer questions and create deliverables grounded in those sources. Two grounding modes: strict (vault-only) and augmented (vault + labeled [background] knowledge). Trigger when the user asks to research a topic from sources, wants NotebookLM-style grounded answers, asks to build a resource vault, or says \"notebooklm mode\".\n","main","e943e3285cd03c44b2c762a9a52328e3d16444b1","research\u002Fnotebooklm-mode",22,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills","https:\u002F\u002Fhermes-agent.nousresearch.com","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin","Accounting\u002FFP&A\u002FM&A\u002FPERE guy by day, AI\u002Fself-host\u002Fprogramming hobbyist by night. \r\n\r\nPassionate in solving practical business issues.","2026-11-13 19:46:18",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add moonlight-lupin\u002Fagent-skills --skill notebooklm-mode",{"tool":45,"command":46},"bunx","bunx skills add moonlight-lupin\u002Fagent-skills --skill notebooklm-mode",{"tool":48,"command":49},"pnpm","pnpm dlx skills add moonlight-lupin\u002Fagent-skills --skill notebooklm-mode","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm-mode\u002FSKILL.md",true,[53,59,65,69,73],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fbook-study.md","REFERENCE","参考文档",7907,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm-mode\u002Freferences\u002Fbook-study.md",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fbible-book-names.json","SCRIPT","脚本",1644,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm-mode\u002Fscripts\u002Fbible-book-names.json",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fingest_source.py",10888,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm-mode\u002Fscripts\u002Fingest_source.py",{"path":70,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fparse_reference.py",11601,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm-mode\u002Fscripts\u002Fparse_reference.py",{"path":74,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":75,"sourceHtmlUrl":76},"tests\u002Ftest_parse_reference.py",15098,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm-mode\u002Ftests\u002Ftest_parse_reference.py",[78,85,92,99,106,113],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M78ATNRV7RYQ8M314V0QZX18","website-scraping","Generic playbook for extracting structured data from any website — hotel prices, flight fares, e-commerce listings, real estate, jobs, competitor product catalogues, anything where the goal is to turn one or more URLs into clean records on disk. Use this skill whenever the user mentions scraping, harvesting, extracting, or pulling data from a website; names a specific site or competitor they want data from; asks how to handle JavaScript-rendered pages, Cloudflare blocks, bot detection, Turnstile challenges, or Playwright; wants to monitor prices over time; needs to automate a copy-paste research task; or says things like \"just get the data from X\" or \"I need a script that grabs N from site Y\". Covers recon, picking the lightest extraction tool that works, surviving anti-bot defences, and writing clean JSONL output with a run manifest. Scope is scraping only — landing data in a database, scheduling, and downstream pipeline work are explicitly out of scope and live in other tools.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fweb-scraping\u002Fwebsite-scraping\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M78ATK9XGEKSH3QRN7P2MEER","greet","Greets a named person warmly.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fclaude_plugin_sample\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M78ATEAQB5CK2D4MKPCW4YHQ","skill-quality-review","Use when auditing or reviewing skill quality — batch checks across a library, deep per-skill grep methodology, usage stats, efficacy testing, or fix planning. Single consolidated home for the writing-for-agents review framework and the 3-surface review methodology.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fsoftware-development\u002Fskill-quality-review\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M78AT58EM57023QSC79S8R6D","people-enrichment","Use when the user has a list of names or companies and wants their job, employer, work history, LinkedIn URLs or company profiles looked up, or wants to find people or companies matching criteria — trigger on phrases like \"enrich these contacts\", \"find their LinkedIn\", \"look up these people\", \"who works at X\", \"find directors at Y\", \"enrich these companies\", or \"get firmographics for\". Enrich and search People Data Labs (PDL) Person and Company data, writing results to .xlsx. Five operations: enrich named PEOPLE into a profile, employment history and LinkedIn URL; IDENTIFY an ambiguous person as several scored candidates; SEARCH people by criteria (company, title, location); enrich COMPANIES into firmographics (industry, size, employees, HQ, founded, LinkedIn); and SEARCH companies by criteria. Do not scrape LinkedIn directly — this uses a licensed data aggregator (PDL) instead, for legal and reliability reasons.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fpeople-enrichment\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M78ASTJVZ9G5JY6GM40SF909","news-monitoring","Use when a topic or news stream needs recurring monitoring — cover it with web search, multi-language sources, digest formatting, and automated delivery via Hermes cron jobs. Covers search strategy, source selection, Chinese-language platforms, and digest templates.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnews-monitoring\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":117,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":18},"01M78ASMNTB40PY7WPXKP6X72K","library-rag","Semantic search over a personal library using Nemotron-3-Embed-1B embeddings + sqlite-vec. Index books, documents, any text corpus; query by meaning. Includes EPUB→Markdown conversion and MCP server for auto-available search tools.","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Flibrary-rag\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Flibrary-rag\u002FSKILL.md",[],[]]