[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78AN8H1M5TWPPHBEHNNEDG2":3,"skill-same:01M78AN8H1M5TWPPHBEHNNEDG2":198},{"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":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M78AN8H1M5TWPPHBEHNNEDG2","skill-retrieval",null,"BM25-based skill retrieval plugin for Hermes Agent. Replaces the full skill list in the system prompt with a names-only compact view (~2K tokens) and injects top-K relevant skill descriptions per turn via BM25 retrieval (~300 tokens). Saves ~9K tokens\u002Fturn. Use when system prompt token overhead from skills is a concern, or when skill discovery quality matters.","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\u002Fplugins\u002Fskill-retrieval\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: skill-retrieval\ndescription: >-\n  BM25-based skill retrieval plugin for Hermes Agent. Replaces the full skill\n  list in the system prompt with a names-only compact view (~2K tokens) and\n  injects top-K relevant skill descriptions per turn via BM25 retrieval (~300\n  tokens). Saves ~9K tokens\u002Fturn. Use when system prompt token overhead from\n  skills is a concern, or when skill discovery quality matters.\nlicense: MIT\nmetadata:\n  version: 0.7.0\n  author: moonlight-lupin\n  platforms: [linux, macos, windows]\n  tags: [bm25, skill-retrieval, system-prompt, token-optimization, plugin]\n  hermes:\n    plugin_type: hook\n    hooks: [pre_llm_call]\n---\n\n# Skill Retrieval\n\nThis is a **Hermes Agent** plugin. It is not a Claude Code plugin and will\nnot load in Claude Code — that runtime has no `pre_llm_call` event, no Python\n`register()` entry point, and reads `.claude-plugin\u002Fplugin.json` rather than\n`plugin.yaml`. Requires Hermes Agent >=0.21.1 (`requires_hermes` in\n`plugin.yaml`).\n\nBM25-based progressive disclosure for Hermes Agent skills. Instead of dumping\nevery skill description into the system prompt (~11.5K tokens), this plugin\nkeeps a compact names-only index and injects only the top-K relevant\ndescriptions per turn.\n\n## What it does\n\nTwo-phase progressive disclosure:\n\n1. **Phase 1 — System prompt compaction** (an `llm_request` middleware):\n   Rewrites the outgoing request's `\u003Cavailable_skills>` block so it lists\n   skill names only (descriptions stripped). All skills remain discoverable\n   by name (~2K tokens instead of ~11.5K). The system prompt Hermes builds\n   is never modified — prompt caching is unaffected.\n\n2. **Phase 2 — Per-turn BM25 retrieval** (`pre_llm_call` hook): Tokenizes the\n   user message, ranks active skill descriptions with BM25 Okapi, and injects\n   the top-K matches (~300 tokens) as context appended after the user\n   message.\n\n## Architecture\n\n```\nEach turn (llm_request middleware)\n    │\n    ▼\nPhase 1: rewrite \u003Cavailable_skills> → names only (~2K tokens, request only)\n\nEach turn (pre_llm_call)\n    │\n    ▼\nPhase 2: BM25Index.retrieve(user_message, top_k)\n    └── inject \"## Retrieved Skills ...\" into user message (~300 tokens)\n```\n\nThe BM25 index is built lazily on the first turn from standalone skills\n(`~\u002F.hermes\u002Fskills`) and plugin-bundled skills (`~\u002F.hermes\u002Fplugins\u002F*\u002Fskills`),\nthen cached per Hermes home, tool capability snapshot, session platform and\nresolved disabled-skill set (the same inputs Hermes keys its own skills prompt\ncache on). The cache is rebuilt without a restart when Hermes clears its skills\nprompt cache (`skill_manage` create\u002Fpatch\u002Fdelete, hub install, skill toggles)\nor when a cheap on-disk manifest changes (skill root and category dir mtimes,\ntop-level `SKILL.md` files, `config.yaml`).\nRetrieval uses a pure-stdlib inverted index (term → posting list of\nprecomputed BM25 weights) and is sub-millisecond for ~200 skills.\n\n## Token savings\n\n| Stage | Tokens (approx.) |\n|-------|------------------|\n| Before (full skill list in system prompt) | ~11.5K |\n| After — names-only system prompt | ~2.0K |\n| After — per-turn top-K descriptions | ~0.3K |\n| **Net per turn** | **~2.3K** (~9K saved) |\n\nMeasured on a Hermes install with ~300 skills; savings scale with skill count.\n\n## Installation\n\nCopy or symlink this directory into the Hermes plugins folder:\n\n```bash\n# From this repo\nln -s \"$(pwd)\u002Fplugins\u002Fskill-retrieval\" ~\u002F.hermes\u002Fplugins\u002Fskill-retrieval\n\n# Or copy\ncp -r plugins\u002Fskill-retrieval ~\u002F.hermes\u002Fplugins\u002Fskill-retrieval\n```\n\nUser plugins are opt-in: Hermes discovers the directory but does not load it\nuntil it is enabled (this adds `skill-retrieval` to `plugins.enabled` in\n`~\u002F.hermes\u002Fconfig.yaml`):\n\n```bash\nhermes plugins enable skill-retrieval\n```\n\nRestart the agent session so `register()` runs — it registers the\n`llm_request` middleware and the `pre_llm_call` hook.\n\nDependencies (install into the Hermes Python env if missing):\n\n```bash\npip install pyyaml\n```\n\nOn CPython 3.14 prefer the host's `hermes_yaml` facade (ruamel.yaml) — the\nplugin resolves it automatically at runtime, falling back to PyYAML. If both\nare missing it logs one warning and keeps running with an empty index.\n\n## Configuration\n\n| Setting | Default | How to set |\n|---------|---------|------------|\n| `TOP_K` | `6` | Env var `SKILL_RETRIEVAL_TOP_K` |\n| `INJECT_K` | `TOP_K` | Env var `SKILL_RETRIEVAL_INJECT_K`; how many of the retrieved candidates are injected. A pool wider than the injected set (e.g. `TOP_K=12`, `INJECT_K=6`) lets the Jev rerank filter, not just reorder. Values above `TOP_K` are clamped. |\n| System prompt compaction | enabled | Set `SKILL_RETRIEVAL_COMPACT=0` to disable compaction while keeping BM25 retrieval injection |\n| BM25 `k1` | `1.5` | Constant in `scripts\u002Fbm25_retriever.py` |\n| BM25 `b` | `0.75` | Constant in `scripts\u002Fbm25_retriever.py` |\n| Jev rerank | off | Set `SKILL_RETRIEVAL_RERANK=jev` to enable; key in `TYPESAFE_API_KEY` (legacy `TYPESAFE_KEY` accepted), read from `os.environ` |\n| Session rerank cache | off | Set `SKILL_RETRIEVAL_RERANK_SESSION_CACHE=1` to reuse a named session's confirmed candidate workset and skip redundant Jev calls |\n| Rerank provider | `typesafe` | `SKILL_RETRIEVAL_RERANK_PROVIDER=openrouter` uses `https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fsystemone` with `OPENROUTER_API_KEY` |\n| Rerank log path | `$HERMES_HOME\u002Fdata\u002Fjev-trial\u002Frerank_ab_log.jsonl` (rotates past 5 MB) | Env var `SKILL_RETRIEVAL_RERANK_LOG` |\n\n```bash\nexport SKILL_RETRIEVAL_TOP_K=8\nexport SKILL_RETRIEVAL_INJECT_K=6\nexport SKILL_RETRIEVAL_COMPACT=0\nexport SKILL_RETRIEVAL_RERANK=jev\nexport SKILL_RETRIEVAL_RERANK_SESSION_CACHE=1\n```\n\n### Jev rerank (optional, off by default)\n\nWhen `SKILL_RETRIEVAL_RERANK=jev`, the BM25 top-N shortlist is reranked by the\nJev system-one judgment model (`POST https:\u002F\u002Fapi.typesafe.ai\u002Fv1\u002Fsystemone`,\nmodel `jev-latest`). Behavior:\n\n- **Fail-soft** — 3.0 s timeout, no retries; on any error the request logs a\n  warning and BM25's original order stands. Retrieval never blocks on Jev.\n- **Env-only config** — all settings come from `os.environ` (never a file\n  read): `TYPESAFE_API_KEY` (legacy `TYPESAFE_KEY` accepted), or\n  `OPENROUTER_API_KEY` with `SKILL_RETRIEVAL_RERANK_PROVIDER=openrouter`\n  (same contract, served through OpenRouter). Hermes loads\n  the active profile's `.env` into environ at startup, so no cross-profile\n  file is ever read.\n- **A\u002FB log** — every query records the timestamp, session id, a 200-char\n  query excerpt, both orders, probabilities, tokens and latency to the log\n  path above; the log rotates past 5 MB; `scripts\u002Frerank_ab_report.py`\n  summarizes it locally.\n- **Outbound cap** — at most `RERANK_CANDIDATES` (default 12) descriptions\n  are sent per call, even when the caller's shortlist is longer; the\n  remainder keeps BM25 order at the tail and never leaves the machine.\n\n### Session rerank cache (optional, off by default)\n\nThis mode targets phase-continuous conversations. The first successful Jev\nrerank freezes the named session's BM25 candidate pool as a workset. Local\nBM25 still runs on every turn. When the candidates that would be injected are\nalready in the workset or in the session's confirmed fallback set, the plugin\nuses the current BM25 order and skips the external rerank. A candidate outside\nthose sets triggers Jev; it is added to the fallback set only when a successful\nJev result selects it for injection.\n\nThe state is isolated by non-empty session id, bounded to 256 sessions, and\ncleared on skill-catalog mutation. Anonymous requests never reuse it. This\noptimization does not rewrite or mutate Hermes' system prompt.\n\n## Verify it's working\n\nPhase 1 silently no-ops outside a full Hermes runtime, and the BM25 index can\nsilently empty. After restart, check the Hermes logs.\n\n**Healthy start — look for these log lines:**\n\n- `BM25 index built: N docs …`\n- `Skill retrieval plugin registered (top_k=…, compact=true, rerank_session_cache=…)`\n\n**Degraded — these warnings mean it's not working:**\n\n- `Cannot locate prompt_builder — compaction skipped` (Phase 1 failed; Phase 2\n  still runs for anonymous sessions, but named sessions skip injection because\n  no capability snapshot is recorded)\n- `No active skills found for BM25 index` (index is empty — zero retrieval injection)\n\n## How it works\n\n- **Tokenizer** — lowercases text, strips punctuation, splits on whitespace.\n  Tokens with CJK-script characters are split into bigrams (for CJK-script\n  runs; a 3+-character run is replaced by its bigrams): CJK Unified Ideographs\n  incl. Extension A and B, Japanese kana (fullwidth and halfwidth), and hangul\n  syllables — so Chinese, Japanese and Korean queries can match non-English\n  corpus text, and a mixed token like `用python写` keeps the `python` term.\n- **Corpus** — each skill becomes `\"name: description\"` plus its frontmatter\n  `triggers:` list and `metadata.hermes.tags` (when present) and — when the\n  SKILL.md body contains CJK-script characters — the space-joined CJK runs of\n  the body's first ~3000 characters, capped at 200 characters total. With the\n  body in\n  the corpus a CJK query can match skill *content*, not just the (usually\n  English) description. Trigger phrases, tags and the CJK runs participate in\n  retrieval scoring but only the\n  description is injected into the prompt. Disabled skills from\n  `~\u002F.hermes\u002Fconfig.yaml` are skipped.\n- **Index** — BM25 Okapi TF saturation + Lucene IDF\n  `log(1 + (N-df+0.5)\u002F(df+0.5))` (always positive, so small corpora and common\n  terms still score), stored as an inverted index:\n  ``dict[str, list[tuple[int, float]]]`` mapping each term to a posting list of\n  (doc_index, precomputed BM25 weight).\n- **Retrieve** — for each unique query token present in the index, walk its\n  posting list and accumulate scores; sort by descending score (score > 0 only).\n\n## Performance\n\n- Index built on first use and cached (~8 ms for 200 skills on a CPU-only\n  VM). Each later turn only stats the skill roots, their immediate\n  subdirectories and `config.yaml` to validate the cache. A zero-skill\n  install caches the empty result too (one warning, no rescans).\n- Retrieval is sub-millisecond (~0.03 ms mean for 200 skills). The inverted\n  index touches only documents that share a query term — no full-corpus scan.\n- No compiled dependencies. The plugin uses only the Python standard library\n  (plus pyyaml for config\u002Ffrontmatter parsing). This removes a 154 MB\n  numpy\u002Fscipy install and a ~573 ms import cost, which matters for subprocess\n  spawning paths (e.g. a Claude Code `UserPromptSubmit` variant).\n- Failures in the hook return `None` (no injection) so the agent keeps working.\n\n## Dependencies\n\n- `pyyaml` — declared in `plugin.yaml` (`pip_dependencies`), so\n  `hermes plugins install skill-retrieval` installs it. On CPython 3.14 the\n  host's `hermes_yaml` facade is used instead when PyYAML is unavailable.\n\n## Limitations\n\n- BM25 is **lexical**, not semantic. Paraphrased queries that share few tokens\n  with a skill's description may rank poorly even when the intent matches.\n- Descriptions longer than 200 characters are truncated in the injected block;\n  use `skill_view(name)` for the full skill body.\n- Compaction uses Hermes's read-only `agent.prompt_builder` helpers; if they\n  cannot be imported, Phase 1 is skipped and retrieval falls back to the\n  standalone loader.\n- A named session is only injected once its system prompt has been built in\n  this process (that build records the session's tool capabilities). A session\n  restored after a restart without a rebuild gets no injection rather than\n  risking skills Hermes hides from it.\n- A content-only edit of a nested `SKILL.md` (`category\u002Fskill\u002FSKILL.md`)\n  made outside Hermes (e.g. in an editor) changes no directory mtime, so it is\n  picked up only after Hermes clears its skills prompt cache or the agent\n  restarts. Edits through `skill_manage`, and any added\u002Fremoved skill or\n  config change, are picked up on the next turn.\n- Phase 1 depends on Hermes internals (`agent.prompt_builder`) and can break\n  on a Hermes upgrade.\n- BM25 top-1 precision is soft: the best-matching skill is often not rank 1,\n  though it usually lands within the first few results. Ranking depends entirely\n  on your own corpus and how its descriptions are worded, so `TOP_K` below ~5 is\n  not recommended.\n- **Compaction** rewrites the request's `\u003Cavailable_skills>` block using\n  read-only imports from `agent.prompt_builder` and `agent.skill_utils`\n  (all ten disclosed in the README); if those change signature, any\n  mid-scan exception falls back to the standalone loader, so the corpus\n  is never silently empty.\n- The stdlib index computes in float64 (the previous scipy version used\n  float32). Equal-scoring skills may order differently than before. This is\n  harmless — the scores are genuine ties (~1e-6 difference) — but it is a real\n  behaviour delta from the scipy version.\n","# Skill Retrieval\n\nThis is a **Hermes Agent** plugin. It is not a Claude Code plugin and will\nnot load in Claude Code — that runtime has no `pre_llm_call` event, no Python\n`register()` entry point, and reads `.claude-plugin\u002Fplugin.json` rather than\n`plugin.yaml`. Requires Hermes Agent >=0.21.1 (`requires_hermes` in\n`plugin.yaml`).\n\nBM25-based progressive disclosure for Hermes Agent skills. Instead of dumping\nevery skill description into the system prompt (~11.5K tokens), this plugin\nkeeps a compact names-only index and injects only the top-K relevant\ndescriptions per turn.\n\n## What it does\n\nTwo-phase progressive disclosure:\n\n1. **Phase 1 — System prompt compaction** (an `llm_request` middleware):\n   Rewrites the outgoing request's `\u003Cavailable_skills>` block so it lists\n   skill names only (descriptions stripped). All skills remain discoverable\n   by name (~2K tokens instead of ~11.5K). The system prompt Hermes builds\n   is never modified — prompt caching is unaffected.\n\n2. **Phase 2 — Per-turn BM25 retrieval** (`pre_llm_call` hook): Tokenizes the\n   user message, ranks active skill descriptions with BM25 Okapi, and injects\n   the top-K matches (~300 tokens) as context appended after the user\n   message.\n\n## Architecture\n\n```\nEach turn (llm_request middleware)\n    │\n    ▼\nPhase 1: rewrite \u003Cavailable_skills> → names only (~2K tokens, request only)\n\nEach turn (pre_llm_call)\n    │\n    ▼\nPhase 2: BM25Index.retrieve(user_message, top_k)\n    └── inject \"## Retrieved Skills ...\" into user message (~300 tokens)\n```\n\nThe BM25 index is built lazily on the first turn from standalone skills\n(`~\u002F.hermes\u002Fskills`) and plugin-bundled skills (`~\u002F.hermes\u002Fplugins\u002F*\u002Fskills`),\nthen cached per Hermes home, tool capability snapshot, session platform and\nresolved disabled-skill set (the same inputs Hermes keys its own skills prompt\ncache on). The cache is rebuilt without a restart when Hermes clears its skills\nprompt cache (`skill_manage` create\u002Fpatch\u002Fdelete, hub install, skill toggles)\nor when a cheap on-disk manifest changes (skill root and category dir mtimes,\ntop-level `SKILL.md` files, `config.yaml`).\nRetrieval uses a pure-stdlib inverted index (term → posting list of\nprecomputed BM25 weights) and is sub-millisecond for ~200 skills.\n\n## Token savings\n\n| Stage | Tokens (approx.) |\n|-------|------------------|\n| Before (full skill list in system prompt) | ~11.5K |\n| After — names-only system prompt | ~2.0K |\n| After — per-turn top-K descriptions | ~0.3K |\n| **Net per turn** | **~2.3K** (~9K saved) |\n\nMeasured on a Hermes install with ~300 skills; savings scale with skill count.\n\n## Installation\n\nCopy or symlink this directory into the Hermes plugins folder:\n\n```bash\n# From this repo\nln -s \"$(pwd)\u002Fplugins\u002Fskill-retrieval\" ~\u002F.hermes\u002Fplugins\u002Fskill-retrieval\n\n# Or copy\ncp -r plugins\u002Fskill-retrieval ~\u002F.hermes\u002Fplugins\u002Fskill-retrieval\n```\n\nUser plugins are opt-in: Hermes discovers the directory but does not load it\nuntil it is enabled (this adds `skill-retrieval` to `plugins.enabled` in\n`~\u002F.hermes\u002Fconfig.yaml`):\n\n```bash\nhermes plugins enable skill-retrieval\n```\n\nRestart the agent session so `register()` runs — it registers the\n`llm_request` middleware and the `pre_llm_call` hook.\n\nDependencies (install into the Hermes Python env if missing):\n\n```bash\npip install pyyaml\n```\n\nOn CPython 3.14 prefer the host's `hermes_yaml` facade (ruamel.yaml) — the\nplugin resolves it automatically at runtime, falling back to PyYAML. If both\nare missing it logs one warning and keeps running with an empty index.\n\n## Configuration\n\n| Setting | Default | How to set |\n|---------|---------|------------|\n| `TOP_K` | `6` | Env var `SKILL_RETRIEVAL_TOP_K` |\n| `INJECT_K` | `TOP_K` | Env var `SKILL_RETRIEVAL_INJECT_K`; how many of the retrieved candidates are injected. A pool wider than the injected set (e.g. `TOP_K=12`, `INJECT_K=6`) lets the Jev rerank filter, not just reorder. Values above `TOP_K` are clamped. |\n| System prompt compaction | enabled | Set `SKILL_RETRIEVAL_COMPACT=0` to disable compaction while keeping BM25 retrieval injection |\n| BM25 `k1` | `1.5` | Constant in `scripts\u002Fbm25_retriever.py` |\n| BM25 `b` | `0.75` | Constant in `scripts\u002Fbm25_retriever.py` |\n| Jev rerank | off | Set `SKILL_RETRIEVAL_RERANK=jev` to enable; key in `TYPESAFE_API_KEY` (legacy `TYPESAFE_KEY` accepted), read from `os.environ` |\n| Session rerank cache | off | Set `SKILL_RETRIEVAL_RERANK_SESSION_CACHE=1` to reuse a named session's confirmed candidate workset and skip redundant Jev calls |\n| Rerank provider | `typesafe` | `SKILL_RETRIEVAL_RERANK_PROVIDER=openrouter` uses `https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fsystemone` with `OPENROUTER_API_KEY` |\n| Rerank log path | `$HERMES_HOME\u002Fdata\u002Fjev-trial\u002Frerank_ab_log.jsonl` (rotates past 5 MB) | Env var `SKILL_RETRIEVAL_RERANK_LOG` |\n\n```bash\nexport SKILL_RETRIEVAL_TOP_K=8\nexport SKILL_RETRIEVAL_INJECT_K=6\nexport SKILL_RETRIEVAL_COMPACT=0\nexport SKILL_RETRIEVAL_RERANK=jev\nexport SKILL_RETRIEVAL_RERANK_SESSION_CACHE=1\n```\n\n### Jev rerank (optional, off by default)\n\nWhen `SKILL_RETRIEVAL_RERANK=jev`, the BM25 top-N shortlist is reranked by the\nJev system-one judgment model (`POST https:\u002F\u002Fapi.typesafe.ai\u002Fv1\u002Fsystemone`,\nmodel `jev-latest`). Behavior:\n\n- **Fail-soft** — 3.0 s timeout, no retries; on any error the request logs a\n  warning and BM25's original order stands. Retrieval never blocks on Jev.\n- **Env-only config** — all settings come from `os.environ` (never a file\n  read): `TYPESAFE_API_KEY` (legacy `TYPESAFE_KEY` accepted), or\n  `OPENROUTER_API_KEY` with `SKILL_RETRIEVAL_RERANK_PROVIDER=openrouter`\n  (same contract, served through OpenRouter). Hermes loads\n  the active profile's `.env` into environ at startup, so no cross-profile\n  file is ever read.\n- **A\u002FB log** — every query records the timestamp, session id, a 200-char\n  query excerpt, both orders, probabilities, tokens and latency to the log\n  path above; the log rotates past 5 MB; `scripts\u002Frerank_ab_report.py`\n  summarizes it locally.\n- **Outbound cap** — at most `RERANK_CANDIDATES` (default 12) descriptions\n  are sent per call, even when the caller's shortlist is longer; the\n  remainder keeps BM25 order at the tail and never leaves the machine.\n\n### Session rerank cache (optional, off by default)\n\nThis mode targets phase-continuous conversations. The first successful Jev\nrerank freezes the named session's BM25 candidate pool as a workset. Local\nBM25 still runs on every turn. When the candidates that would be injected are\nalready in the workset or in the session's confirmed fallback set, the plugin\nuses the current BM25 order and skips the external rerank. A candidate outside\nthose sets triggers Jev; it is added to the fallback set only when a successful\nJev result selects it for injection.\n\nThe state is isolated by non-empty session id, bounded to 256 sessions, and\ncleared on skill-catalog mutation. Anonymous requests never reuse it. This\noptimization does not rewrite or mutate Hermes' system prompt.\n\n## Verify it's working\n\nPhase 1 silently no-ops outside a full Hermes runtime, and the BM25 index can\nsilently empty. After restart, check the Hermes logs.\n\n**Healthy start — look for these log lines:**\n\n- `BM25 index built: N docs …`\n- `Skill retrieval plugin registered (top_k=…, compact=true, rerank_session_cache=…)`\n\n**Degraded — these warnings mean it's not working:**\n\n- `Cannot locate prompt_builder — compaction skipped` (Phase 1 failed; Phase 2\n  still runs for anonymous sessions, but named sessions skip injection because\n  no capability snapshot is recorded)\n- `No active skills found for BM25 index` (index is empty — zero retrieval injection)\n\n## How it works\n\n- **Tokenizer** — lowercases text, strips punctuation, splits on whitespace.\n  Tokens with CJK-script characters are split into bigrams (for CJK-script\n  runs; a 3+-character run is replaced by its bigrams): CJK Unified Ideographs\n  incl. Extension A and B, Japanese kana (fullwidth and halfwidth), and hangul\n  syllables — so Chinese, Japanese and Korean queries can match non-English\n  corpus text, and a mixed token like `用python写` keeps the `python` term.\n- **Corpus** — each skill becomes `\"name: description\"` plus its frontmatter\n  `triggers:` list and `metadata.hermes.tags` (when present) and — when the\n  SKILL.md body contains CJK-script characters — the space-joined CJK runs of\n  the body's first ~3000 characters, capped at 200 characters total. With the\n  body in\n  the corpus a CJK query can match skill *content*, not just the (usually\n  English) description. Trigger phrases, tags and the CJK runs participate in\n  retrieval scoring but only the\n  description is injected into the prompt. Disabled skills from\n  `~\u002F.hermes\u002Fconfig.yaml` are skipped.\n- **Index** — BM25 Okapi TF saturation + Lucene IDF\n  `log(1 + (N-df+0.5)\u002F(df+0.5))` (always positive, so small corpora and common\n  terms still score), stored as an inverted index:\n  ``dict[str, list[tuple[int, float]]]`` mapping each term to a posting list of\n  (doc_index, precomputed BM25 weight).\n- **Retrieve** — for each unique query token present in the index, walk its\n  posting list and accumulate scores; sort by descending score (score > 0 only).\n\n## Performance\n\n- Index built on first use and cached (~8 ms for 200 skills on a CPU-only\n  VM). Each later turn only stats the skill roots, their immediate\n  subdirectories and `config.yaml` to validate the cache. A zero-skill\n  install caches the empty result too (one warning, no rescans).\n- Retrieval is sub-millisecond (~0.03 ms mean for 200 skills). The inverted\n  index touches only documents that share a query term — no full-corpus scan.\n- No compiled dependencies. The plugin uses only the Python standard library\n  (plus pyyaml for config\u002Ffrontmatter parsing). This removes a 154 MB\n  numpy\u002Fscipy install and a ~573 ms import cost, which matters for subprocess\n  spawning paths (e.g. a Claude Code `UserPromptSubmit` variant).\n- Failures in the hook return `None` (no injection) so the agent keeps working.\n\n## Dependencies\n\n- `pyyaml` — declared in `plugin.yaml` (`pip_dependencies`), so\n  `hermes plugins install skill-retrieval` installs it. On CPython 3.14 the\n  host's `hermes_yaml` facade is used instead when PyYAML is unavailable.\n\n## Limitations\n\n- BM25 is **lexical**, not semantic. Paraphrased queries that share few tokens\n  with a skill's description may rank poorly even when the intent matches.\n- Descriptions longer than 200 characters are truncated in the injected block;\n  use `skill_view(name)` for the full skill body.\n- Compaction uses Hermes's read-only `agent.prompt_builder` helpers; if they\n  cannot be imported, Phase 1 is skipped and retrieval falls back to the\n  standalone loader.\n- A named session is only injected once its system prompt has been built in\n  this process (that build records the session's tool capabilities). A session\n  restored after a restart without a rebuild gets no injection rather than\n  risking skills Hermes hides from it.\n- A content-only edit of a nested `SKILL.md` (`category\u002Fskill\u002FSKILL.md`)\n  made outside Hermes (e.g. in an editor) changes no directory mtime, so it is\n  picked up only after Hermes clears its skills prompt cache or the agent\n  restarts. Edits through `skill_manage`, and any added\u002Fremoved skill or\n  config change, are picked up on the next turn.\n- Phase 1 depends on Hermes internals (`agent.prompt_builder`) and can break\n  on a Hermes upgrade.\n- BM25 top-1 precision is soft: the best-matching skill is often not rank 1,\n  though it usually lands within the first few results. Ranking depends entirely\n  on your own corpus and how its descriptions are worded, so `TOP_K` below ~5 is\n  not recommended.\n- **Compaction** rewrites the request's `\u003Cavailable_skills>` block using\n  read-only imports from `agent.prompt_builder` and `agent.skill_utils`\n  (all ten disclosed in the README); if those change signature, any\n  mid-scan exception falls back to the standalone loader, so the corpus\n  is never silently empty.\n- The stdlib index computes in float64 (the previous scipy version used\n  float32). Equal-scoring skills may order differently than before. This is\n  harmless — the scores are genuine ties (~1e-6 difference) — but it is a real\n  behaviour delta from the scipy version.\n",{"name":5,"license":14,"metadata":24,"description":7},{"tags":25,"author":9,"hermes":30,"version":34,"platforms":35},[26,5,27,28,29],"bm25","system-prompt","token-optimization","plugin",{"hooks":31,"plugin_type":33},[32],"pre_llm_call","hook","0.7.0",[36,37,38],"linux","macos","windows","main","e943e3285cd03c44b2c762a9a52328e3d16444b1","plugins\u002Fskill-retrieval",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":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add moonlight-lupin\u002Fagent-skills --skill skill-retrieval",{"tool":54,"command":55},"bunx","bunx skills add moonlight-lupin\u002Fagent-skills --skill skill-retrieval",{"tool":57,"command":58},"pnpm","pnpm dlx skills add moonlight-lupin\u002Fagent-skills --skill skill-retrieval","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002FSKILL.md",true,[62,68,72,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"__init__.py","SCRIPT","脚本",27883,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002F__init__.py",{"path":69,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":15},"LICENSE","许可证",2426,{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"plugin.yaml","REFERENCE","参考文档",820,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Fplugin.yaml",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"README.md",9991,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002FREADME.md",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"requirements-dev.txt",78,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Frequirements-dev.txt",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"requirements.txt",12,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Frequirements.txt",{"path":91,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002F__init__.py",98,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Fscripts\u002F__init__.py",{"path":95,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fbm25_retriever.py",54290,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Fscripts\u002Fbm25_retriever.py",{"path":99,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fjev_rerank.py",21037,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Fscripts\u002Fjev_rerank.py",{"path":103,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Frerank_ab_report.py",4670,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Fscripts\u002Frerank_ab_report.py",{"path":107,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":108,"sourceHtmlUrl":109},"tests\u002Fconftest.py",1674,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Fconftest.py",{"path":111,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":112,"sourceHtmlUrl":113},"tests\u002Ftest_bm25_retriever.py",18782,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_bm25_retriever.py",{"path":115,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":116,"sourceHtmlUrl":117},"tests\u002Ftest_cjk_tokenization.py",6970,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_cjk_tokenization.py",{"path":119,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":120,"sourceHtmlUrl":121},"tests\u002Ftest_index_cache.py",9482,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_index_cache.py",{"path":123,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":124,"sourceHtmlUrl":125},"tests\u002Ftest_inject_k_split.py",5330,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_inject_k_split.py",{"path":127,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":128,"sourceHtmlUrl":129},"tests\u002Ftest_issue14_should_show_arity.py",6409,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_issue14_should_show_arity.py",{"path":131,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":132,"sourceHtmlUrl":133},"tests\u002Ftest_issue8_round2.py",14097,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_issue8_round2.py",{"path":135,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":136,"sourceHtmlUrl":137},"tests\u002Ftest_issue8_round3.py",16496,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_issue8_round3.py",{"path":139,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":140,"sourceHtmlUrl":141},"tests\u002Ftest_jev_environ.py",4349,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_jev_environ.py",{"path":143,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":144,"sourceHtmlUrl":145},"tests\u002Ftest_jev_provider.py",4555,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_jev_provider.py",{"path":147,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":148,"sourceHtmlUrl":149},"tests\u002Ftest_jev_rerank.py",27505,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_jev_rerank.py",{"path":151,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":152,"sourceHtmlUrl":153},"tests\u002Ftest_midscan_fallback.py",2862,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_midscan_fallback.py",{"path":155,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":156,"sourceHtmlUrl":157},"tests\u002Ftest_module_identity.py",889,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_module_identity.py",{"path":159,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":160,"sourceHtmlUrl":161},"tests\u002Ftest_profile_home_switch.py",4367,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_profile_home_switch.py",{"path":163,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":164,"sourceHtmlUrl":165},"tests\u002Ftest_public_surfaces.py",5892,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_public_surfaces.py",{"path":167,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":168,"sourceHtmlUrl":169},"tests\u002Ftest_refactor_contract.py",2407,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_refactor_contract.py",{"path":171,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":172,"sourceHtmlUrl":173},"tests\u002Ftest_regressions.py",24075,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_regressions.py",{"path":175,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":176,"sourceHtmlUrl":177},"tests\u002Ftest_rerank_hook_wire.py",2621,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_rerank_hook_wire.py",{"path":179,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":180,"sourceHtmlUrl":181},"tests\u002Ftest_round3_fixes.py",15413,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_round3_fixes.py",{"path":183,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":184,"sourceHtmlUrl":185},"tests\u002Ftest_round4_fixes.py",9811,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_round4_fixes.py",{"path":187,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":188,"sourceHtmlUrl":189},"tests\u002Ftest_session_rerank_cache.py",6339,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_session_rerank_cache.py",{"path":191,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":192,"sourceHtmlUrl":193},"tests\u002Ftest_stdlib_parity.py",11863,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_stdlib_parity.py",{"path":195,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":196,"sourceHtmlUrl":197},"tests\u002Ftest_yaml_module_resolution.py",5902,"https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-retrieval\u002Ftests\u002Ftest_yaml_module_resolution.py",[199,206,213,220,227,234],{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":205,"publishedAt":19},"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":207,"name":208,"nameZh":6,"description":209,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":210,"categories":211,"keywords":212,"publishedAt":19},"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":214,"name":215,"nameZh":6,"description":216,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":217,"categories":218,"keywords":219,"publishedAt":19},"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":221,"name":222,"nameZh":6,"description":223,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":224,"categories":225,"keywords":226,"publishedAt":19},"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":228,"name":229,"nameZh":6,"description":230,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":231,"categories":232,"keywords":233,"publishedAt":19},"01M78AT0AZJ7WFY73766NBA1EC","notebooklm-mode","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\".","https:\u002F\u002Fgithub.com\u002Fmoonlight-lupin\u002Fagent-skills\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm-mode\u002FSKILL.md",[],[],{"skillNo":235,"name":236,"nameZh":6,"description":237,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":238,"categories":239,"keywords":240,"publishedAt":19},"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",[],[]]