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