reflect: skill-doc-absolute-path-triggers-guard (f7575)
This commit is contained in:
@@ -11,10 +11,10 @@ Manage a personal reading list stored in SQLite (`db/bookmark.sqlite`).
|
|||||||
|
|
||||||
## Commands
|
## 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
|
```bash
|
||||||
/home/nanobot/.local/bin/uv run /home/nanobot/.nanobot/workspace/skills/bookmark/scripts/bookmark.py <command> [args]
|
uv run skills/bookmark/scripts/bookmark.py <command> [args]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Add a bookmark
|
### 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 `<html>`, `<div>`, `<p>` 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:
|
**If the pasted content is raw HTML** (you see `<html>`, `<div>`, `<p>` 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
|
```bash
|
||||||
/home/nanobot/.local/bin/uv run /home/nanobot/.nanobot/workspace/skills/bookmark/scripts/html_to_markdown.py <<'HTML' \
|
uv run skills/bookmark/scripts/html_to_markdown.py <<'HTML' \
|
||||||
| /home/nanobot/.local/bin/uv run /home/nanobot/.nanobot/workspace/skills/bookmark/scripts/bookmark.py add "<url>" "<description>" [--tags a,b] --content-file -
|
| uv run skills/bookmark/scripts/bookmark.py add "<url>" "<description>" [--tags a,b] --content-file -
|
||||||
<raw html here>
|
<raw html here>
|
||||||
HTML
|
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:
|
**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
|
```bash
|
||||||
/home/nanobot/.local/bin/uv run /home/nanobot/.nanobot/workspace/skills/bookmark/scripts/bookmark.py \
|
uv run skills/bookmark/scripts/bookmark.py \
|
||||||
add "<url>" "<description>" [--tags a,b] --content-file - <<'ARTICLE'
|
add "<url>" "<description>" [--tags a,b] --content-file - <<'ARTICLE'
|
||||||
<article text / markdown here>
|
<article text / markdown here>
|
||||||
ARTICLE
|
ARTICLE
|
||||||
|
|||||||
Reference in New Issue
Block a user