From 8c3f80baaf54f30cbfab9192ef3f4e641b5b56d8 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 03:37:17 +0000 Subject: [PATCH] fix(skills): four docstrings that no longer matched the code - docshelf-build 0.5.1, build_detect.detect: it also looks for a Doxygen index; the order is Sphinx, llms.txt, Doxygen. - docshelf-build 0.5.1, build_doxygen.read_search_index: the all_* files are read, last, for entries no category listed (the docstring said never). - docshelf 0.9.1, shelf_mcp: the notes tool is not read-only over MCP; only --path is left out, and set and delete still write. - docshelf 0.9.1, shelf_render: "stdlib only" while importing shelf_core; now "no third-party packages". Comments and docstrings only; no behaviour changes. Found by a SkillSpector scan and each checked against the code. Tested: scripts/ci.sh (25 generator tests, 942 unit tests). Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01QT6szv5y1hHiZr5DD8HJkv --- skills/docshelf-build/SKILL.md | 2 +- skills/docshelf-build/scripts/build_core.py | 2 +- skills/docshelf-build/scripts/build_detect.py | 5 +++-- skills/docshelf-build/scripts/build_doxygen.py | 3 ++- skills/docshelf/SKILL.md | 2 +- skills/docshelf/scripts/shelf_core.py | 2 +- skills/docshelf/scripts/shelf_mcp.py | 2 +- skills/docshelf/scripts/shelf_render.py | 3 ++- skills/index.json | 4 ++-- 9 files changed, 14 insertions(+), 11 deletions(-) diff --git a/skills/docshelf-build/SKILL.md b/skills/docshelf-build/SKILL.md index 5bc988f..8ee9ee8 100644 --- a/skills/docshelf-build/SKILL.md +++ b/skills/docshelf-build/SKILL.md @@ -6,7 +6,7 @@ license: MIT metadata: author: Robert Stone source: https://github.com/rjstone/docshelf-plugin - version: "0.5.0" + version: "0.5.1" --- # docshelf-build diff --git a/skills/docshelf-build/scripts/build_core.py b/skills/docshelf-build/scripts/build_core.py index c343344..896a406 100644 --- a/skills/docshelf-build/scripts/build_core.py +++ b/skills/docshelf-build/scripts/build_core.py @@ -3,7 +3,7 @@ import re import sys -VERSION = "0.5.0" +VERSION = "0.5.1" # the built-docvol format written to meta.json; docshelf reads formats up to # the one it knows. Bump it only for a change older docshelf cannot read. DOCVOL_FORMAT = 1 diff --git a/skills/docshelf-build/scripts/build_detect.py b/skills/docshelf-build/scripts/build_detect.py index 4652f62..b013ad7 100644 --- a/skills/docshelf-build/scripts/build_detect.py +++ b/skills/docshelf-build/scripts/build_detect.py @@ -74,8 +74,9 @@ def _candidates(src: str) -> Tuple[List[str], List[str], bool]: def detect(src: str, opener=None, sleep: Optional[Callable[[float], None]] = None) -> Detection: - """Look for objects.inv and llms.txt at src (a URL or local path) and - pick the build type: Sphinx first, then llms.txt, else none.""" + """Look for objects.inv, a Doxygen index (search/ or menudata.js) and + llms.txt at src (a URL or local path) and pick the build type: Sphinx + first, then llms.txt, then Doxygen, else none.""" invs, llmss, is_url = _candidates(src) fetch = open_url_source(opener=opener, sleep=sleep, delay=0.2) if is_url else None tried: List[Tuple[str, str]] = [] diff --git a/skills/docshelf-build/scripts/build_doxygen.py b/skills/docshelf-build/scripts/build_doxygen.py index 9f2a85d..df69eb0 100644 --- a/skills/docshelf-build/scripts/build_doxygen.py +++ b/skills/docshelf-build/scripts/build_doxygen.py @@ -235,7 +235,8 @@ def _decode(data: bytes) -> str: def read_search_index(get: Getter) -> DoxyIndex: """Entries from search/searchdata.js and the per-category, per-letter - search/_.js files (never all_*). A missing or unreadable + search/_.js files. The all_* files are read last, and only + for entries that no category listed. A missing or unreadable letter file is a warning; a missing searchdata.js or no entries at all is a DoxygenFormatError.""" idx = DoxyIndex("search") diff --git a/skills/docshelf/SKILL.md b/skills/docshelf/SKILL.md index f29edbe..0f064c4 100644 --- a/skills/docshelf/SKILL.md +++ b/skills/docshelf/SKILL.md @@ -6,7 +6,7 @@ license: MIT metadata: author: Robert Stone source: https://github.com/rjstone/docshelf-plugin - version: "0.9.0" + version: "0.9.1" credits: "DevDocs, devdocs-mcp, Zeal" --- diff --git a/skills/docshelf/scripts/shelf_core.py b/skills/docshelf/scripts/shelf_core.py index 177c818..ac46df1 100644 --- a/skills/docshelf/scripts/shelf_core.py +++ b/skills/docshelf/scripts/shelf_core.py @@ -11,7 +11,7 @@ from typing import Callable, Dict, Iterator, List, Optional, Tuple from urllib.parse import unquote -VERSION = "0.9.0" +VERSION = "0.9.1" PROJECT_FILE = ".docshelf.json" diff --git a/skills/docshelf/scripts/shelf_mcp.py b/skills/docshelf/scripts/shelf_mcp.py index c42477f..42404ab 100644 --- a/skills/docshelf/scripts/shelf_mcp.py +++ b/skills/docshelf/scripts/shelf_mcp.py @@ -63,7 +63,7 @@ def _positional(p: shelf_cli.Param) -> bool: def _tool_params(c: shelf_cli.Command) -> List[shelf_cli.Param]: - if c.name == "notes": # read-only over MCP: no --path + if c.name == "notes": # no --path over MCP (it prints a server-side path); set and delete still write return [p for p in c.params if p.flags[0] != "--path"] return c.params diff --git a/skills/docshelf/scripts/shelf_render.py b/skills/docshelf/scripts/shelf_render.py index 98b1471..1985eee 100644 --- a/skills/docshelf/scripts/shelf_render.py +++ b/skills/docshelf/scripts/shelf_render.py @@ -1,5 +1,6 @@ """HTML -> text blocks for docshelf: headings as '#' lines,
 fenced,
-list items as '- ', tables as ' | ' rows. Pure functions, stdlib only."""
+list items as '- ', tables as ' | ' rows. Pure functions; no third-party
+packages (the standard library and shelf_core)."""
 import re
 from dataclasses import dataclass
 from html.parser import HTMLParser
diff --git a/skills/index.json b/skills/index.json
index 798ea05..6de68c3 100644
--- a/skills/index.json
+++ b/skills/index.json
@@ -2,7 +2,7 @@
   "skills": [
     {
       "name": "docshelf",
-      "version": "0.9.0",
+      "version": "0.9.1",
       "files": [
         "SKILL.md",
         "assets/allowlist.txt",
@@ -26,7 +26,7 @@
     },
     {
       "name": "docshelf-build",
-      "version": "0.5.0",
+      "version": "0.5.1",
       "files": [
         "BUILD-doxygen.md",
         "BUILD-llmstxt.md",