Arguments. [url]. e.g., /knowledge:docpage-digest https://platform.claude.com/docs/en/build-with-claude/effort
Docpage Digest
Turn one online documentation page into a verified, durable knowledge slice: the unaltered
original, a structural inventory, per-section digests, independent verification records, and a
handoff artifact an interview can walk. The pipeline engine here is generic; everything
publisher-specific (fetch channel, applicability filter, digest-agent model matching, and the
pointer to that publisher's recorded pages) lives in a separable publisher profile under context/.
Work root
The work root follows the knowledge plugin's one rule, ${CLAUDE_PLUGIN_ROOT}/reference/work-root.md.
Resolve it once, before the first write, from the session's working directory:
node "${CLAUDE_PLUGIN_ROOT}/scripts/work-root.mjs" --library-dir '${user_config.library_dir}'
Record the printed absolute path in the checklist's Provenance block. Every <work-root> path below
is relative to it; a resumed session reads it back instead of re-deriving it. A non-zero exit (an
unset variable in the value) fails the run: report it and stop.
The slice lands at <resolved-root>/.work/<slug>/. The root self-ignores (a .gitignore
containing *); never commit it. Graduating a slice to a tracked corpus repository is a separate,
human-gated act.
Slug guard. Identity, then containment. Derive <slug> from the canonical URL, never from the
final path segment alone: docs sites repeat overview, settings, and index across pages, and
two pages sharing one work root let a later run overwrite an immutable source.* or resume from
another page's checklist. The canonical URL is the post-redirect page URL with no fragment and no
trailing slash, taken before any channel suffix like .md is appended. Drop only known tracking-only
query parameters (utm_*, gclid, fbclid); keep content-selecting ones (?version=v2 is a
different document). Keep ref, which often selects a branch or revision, unless the matched
publisher profile marks it tracking-only for that host. Before any shell command carries the
canonical URL, it must pass isPublicUrl in