From 63089cb8cbcd24f6599461b8047ac1706d8d5771 Mon Sep 17 00:00:00 2001 From: lachtan Date: Wed, 2 Sep 2026 15:20:25 +0200 Subject: [PATCH] reflect: skill-doc-absolute-path-triggers-guard (f7575) --- skills/bookmark/SKILL.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/skills/bookmark/SKILL.md b/skills/bookmark/SKILL.md index a4db403..cc1dbe0 100644 --- a/skills/bookmark/SKILL.md +++ b/skills/bookmark/SKILL.md @@ -11,10 +11,10 @@ Manage a personal reading list stored in SQLite (`db/bookmark.sqlite`). ## Commands -All commands run via: +All commands run from the workspace root (`working_dir`), with relative script paths — the exec safety guard blocks absolute paths: ```bash -/home/nanobot/.local/bin/uv run /home/nanobot/.nanobot/workspace/skills/bookmark/scripts/bookmark.py [args] +uv run skills/bookmark/scripts/bookmark.py [args] ``` ### Add a bookmark @@ -41,8 +41,8 @@ When the user pastes a **large block of text** together with a URL (typically a **If the pasted content is raw HTML** (you see ``, `
`, `

` tags, etc.), do **not** convert it yourself — pipe it through the `html_to_markdown.py` helper (it uses trafilatura to strip boilerplate and emit clean markdown) straight into `add`, so the converted text never passes through your context: ```bash -/home/nanobot/.local/bin/uv run /home/nanobot/.nanobot/workspace/skills/bookmark/scripts/html_to_markdown.py <<'HTML' \ - | /home/nanobot/.local/bin/uv run /home/nanobot/.nanobot/workspace/skills/bookmark/scripts/bookmark.py add "" "" [--tags a,b] --content-file - +uv run skills/bookmark/scripts/html_to_markdown.py <<'HTML' \ + | uv run skills/bookmark/scripts/bookmark.py add "" "" [--tags a,b] --content-file - HTML ``` @@ -52,7 +52,7 @@ If `add` does **not** report "article content stored" (trafilatura extracted not **If the pasted content is plain text or already markdown**, store it directly with `--content-file -` via a heredoc (one call, no shell-escaping of the body). Only clean it yourself **if you see obvious boilerplate** (copied menus, "Share"/"Tweet", cookie banners, footers) — otherwise store it as-is: ```bash -/home/nanobot/.local/bin/uv run /home/nanobot/.nanobot/workspace/skills/bookmark/scripts/bookmark.py \ +uv run skills/bookmark/scripts/bookmark.py \ add "" "" [--tags a,b] --content-file - <<'ARTICLE'

ARTICLE