redraft-fetch-docs

redraft-fetch-docs is a skill for Claude Code from KaelinGraf/redraft. It costs 61 tokens per session (939 once invoked), scanned A, original, Apache-2.0.

A command that restores locally cached reference documents for a redraft graph, a project whose content is organized as connected nodes.

In plain words
What is it for?
Use it after cloning a graph repository, when a referenced document is missing, or when you need to download the saved source material again.
Why use it?
The document cache is intentionally not included when the project is cloned or synchronized, so referenced files may be missing on a new machine.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it after cloning a graph repository, when a referenced document is missing, or when you need to download the saved source material again.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kaelingraf/redraft/redraft-fetch-docs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add KaelinGraf/redraft --skill redraft-fetch-docs
Clone the repo
git clone --depth 1 https://github.com/KaelinGraf/redraft

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redraft-fetch-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/kaelingraf/redraft/redraft-fetch-docs/github.svg)](https://agentmods.dev/skills/kaelingraf/redraft/redraft-fetch-docs)
Your own site
<a href="https://agentmods.dev/skills/kaelingraf/redraft/redraft-fetch-docs"><img src="https://agentmods.dev/badge/skills/kaelingraf/redraft/redraft-fetch-docs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for redraft-fetch-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/kaelingraf/redraft/redraft-fetch-docs"><img src="https://agentmods.dev/badge/skills/kaelingraf/redraft/redraft-fetch-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.00939
Opus 5 $0.00030 $0.00469
Sonnet 5 $0.00012 $0.00188
Haiku 4.5 $0.00006 $0.00094

Measured 10d ago against content hash 90510e3d44f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

redraft-fetch-docs scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Bash(curl *)
skills/redraft-fetch-docs/SKILL.md · 70 lines

What it actually says

docs/ is a local, gitignored cache (organizing protocol §2) — it never travels with a clone or redraft sync. This skill restores it from the source_url recorded on each artifact node, entirely with grep/curl/mkdir/ls — no MCP server required.

Follow these steps in order. Do not skip ahead or combine steps.

  1. Find the graph root. Check whether graph/nodes/ exists at the project root / current working directory — the same detection redraft-init step 1 uses. If it doesn't, this isn't a graph repo; stop and say so.

  2. Scan for fetchable artifacts. Run:

    grep -nE "doc_path:|source_url:" graph/nodes/*.md
    

    If that reports "No such file or directory," graph/nodes/ has no node files yet — there's nothing to fetch; report 0 fetched / 0 already-present / 0 failed and stop.

    Otherwise each output line is <file>:<line>:<content>. Group lines by <file>: a node only qualifies when both doc_path: and source_url: appear for it (that pairing is the artifact-node convention from organizing protocol §2 — a file with only one of the two is a bare citation or a node mid-edit, not this skill's job). Read the value after the colon on each qualifying line — strip a wrapping " or ' if the YAML dumper added one — to get that node's doc_path and source_url.

  3. Resolve each qualifying pair, one at a time. Quote paths and URLs in every command below (doc_path can contain spaces).

    • ls "<graph-root>/<doc_path>" — if it lists the file, skip: never re-download, never overwrite an existing local copy, even one you suspect is stale.

    • If ls reports the file missing: mkdir -p the parent directory of <doc_path> (compute it yourself from the path string, e.g. the parent of docs/papers/qin-2022.pdf is <graph-root>/docs/papers — don't shell out to dirname, it isn't one of this skill's allowed commands), then fetch:

      curl -L --fail --remove-on-error -o "<graph-root>/<doc_path>" "<source_url>"
      

      --remove-on-error matters: without it, a failed fetch (404, paywall, network error) can leave a zero-byte or truncated file sitting at doc_path, and a later run's ls check would then wrongly treat that corrupt stub as "already present" and skip it forever.

  4. Report a compact summary, not a blow-by-blow: fetched N, already-present M, failed K. For each failure, name the node title, the source_url, and the error (curl's exit status or stderr text) — a paywalled, moved, or unreachable source is expected for some entries; report it and move on to the rest of the list, never stop on the first failure.

What NOT to do

  • Never overwrite a file that already exists at its doc_path (step 3).
  • Never fetch a URL that isn't recorded as a source_url on some artifact node — this skill restores what's recorded, it doesn't go discover new material.
  • Never touch graph/nodes/, and never commit or run snapshot — this skill only populates the gitignored docs/ cache; it has no graph-write or git side effects.
  • A failed fetch is reportable, not fatal — keep going through the rest of the list rather than aborting on the first bad URL.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 70 lines · 61 tokens per session scan A 90510e3d44f2

Subscribe to this mod's changes

redraft-fetch-docs is a skill published in the GitHub repository KaelinGraf/redraft (3 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 61 tokens to every session and 939 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pdf-processing

Extract text from PDFs, fill forms, and merge documents.

PrefectHQ/fastmcp · 11 tokens

potpie-source-ingestion

Use when the user explicitly asks to ingest, refresh, or deeply understand a repository, PR, issue, ticket, runbook, incident report, document, or web link into Potpie. The harness performs todo-driven discovery, uses local/GitHub/integration tools and read-only subagents when available, builds evidence-backed…

potpie-ai/potpie · 82 tokens

documentation-patterns

Technical documentation patterns for READMEs, ADRs, API docs (OpenAPI 3.1), changelogs, and writing style guides. Use when creating project documentation, writing architecture decisions, documenting APIs, or maintaining changelogs.

yonatangross/orchestkit · 53 tokens

neo4j-knowledge-graph

Use when designing, importing, querying, or modernizing Neo4j knowledge graphs from CSV, Excel, pandas, Cypher, py2neo, the official neo4j Python driver, vector indexes, or GraphRAG workflows.

MazzaWill/neo4j-python-pandas-py2neo-v3 · 55 tokens

decision-records

Use when a hard-to-reverse choice (database, framework, vendor, auth model) must be frozen as an immutable numbered ADR — the context that forced it, the options weighed, the decision, consequences both ways — or superseded without erasing history. NOT a meeting recap (that is meeting-notes), NOT standing project…

ericrisco/rsc-harness · 76 tokens

data-science-analysis

Computes a numeric or categorical answer to a quantitative data-science question by cleaning and analyzing local data files (CSV, Excel, TSV, and scientific formats .npz/.fits/.h5) with pandas, numpy, and scipy. Use whenever a task ships its own dataset (in whatever local directory it provides) and asks you to derive…

agentscope-ai/QwenPaw-Data · 237 tokens