agentleFS
7xmohamed7xmohamed/Kata/skills/read/SKILL.md

read

Skill1 starsChanged 6 months agoMITView on GitHub

Fetches any URL or PDF as clean Markdown via a proxy cascade. Handles paywalls, JS-heavy pages, GitHub, X/Twitter, and PDFs. Always prefer this over WebFetch for any URL. Not for local text files or source code already in the repo.

7 other projects use a version of this, 3 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After routing, load references/read-methods.md and run the commands for the chosen method.

    line 25
  2. Very specific:

    If ~/Downloads/{title}.md already exists, append -1, -2, etc., to the filename.

    line 44
  3. Distinctive:

    When asked, after saving the Markdown:

    line 50
  4. Very specific:

    Create ~/Downloads/{title}-images/ and curl each URL in parallel (& + wait).

    line 53
  5. Distinctive:

    Never overwrite without confirmation: If the target filename already exists, use an auto-incremented suffix.

    line 59
  6. Distinctive:

    Stop after the save report: Do not suggest follow-up actions unless the user asks.

    line 60

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Read: Fetch the Ground Truth

Prefix your first line with ⚔️ inline, not as its own paragraph.

Convert any URL or local PDF to clean Markdown and save it. No analysis, no summary, no discussion of the content unless explicitly asked.

Routing

InputMethod
.pdf URL or local PDF pathPDF extraction
GitHub URLs (github.com, raw.githubusercontent.com)Prefer raw content or gh first. Use the proxy cascade only as fallback.
x.com, twitter.comProxy cascade (r.jina.ai keeps image URLs). Do not try WebFetch; it 402s.
Everything elseProxy cascade

After routing, load references/read-methods.md and run the commands for the chosen method.

Output Format

Title:  {title}
Author: {author} (if available)
Source: {platform}
URL:    {original url}

Content
{full Markdown, truncated at 200 lines if long}

Saving

Save to ~/Downloads/{title}.md with YAML frontmatter by default. Skip only if user says "just preview" or "don't save". Tell the user the saved path.

If ~/Downloads/{title}.md already exists, append -1, -2, etc., to the filename. Never overwrite an existing file without explicit confirmation.

Images

By default only save Markdown. Download images only when the user explicitly asks: "download images" or "save images".

When asked, after saving the Markdown:

  1. Extract image URLs: grep -oE 'https?://[^ )"]+\.(jpg|jpeg|png|webp|gif)' {md_path} | sort -u
  2. Create ~/Downloads/{title}-images/ and curl each URL in parallel (& + wait). Use the same proxy env vars as the fetch step.
  3. Report the count and folder path. If any download fails, list the failed URLs.

Hard Rules

  • Do not summarize or analyze the content. Your job is conversion and storage, not interpretation.
  • Never overwrite without confirmation. If the target filename already exists, use an auto-incremented suffix.
  • Stop after the save report. Do not suggest follow-up actions unless the user asks.

Gotchas

What happenedRule
Fetched a paywalled article and returned a login page as MarkdownInspect the first 10 lines for paywall signals ("Subscribe", "Sign in", "Continue reading"). If found, stop and warn the user. Do not save the login page.
r.jina.ai or defuddle.md returned empty for a JS-heavy siteTry the local fallback (agent-fetch or defuddle parse) before giving up.
Network failuresPrepend local proxy env vars if available and retry once.
Long contentPreview with head -n 200 first; mention truncation when reporting the save.
Local fallback tools returned JSONExtract the Markdown-bearing field. Raw JSON is not a valid final output for /read.
All methods failedStop and tell the user what was tried and what failed. Suggest opening the URL in a browser or providing an alternative. Do not silently return empty or partial results.

Content Extraction for Restyling

Activate when: "extract content", "reformat this document", or user hands over a document to restyle

Extract and tag:

  • Headings: H1/H2/H3 hierarchy
  • Body paragraphs: Plain text, no styling
  • Lists: Bullet vs numbered, nesting level
  • Metrics/data: Numbers, dates, quantifiable claims
  • Images/diagrams: Descriptions, captions

Output: Clean, tagged content ready to feed into downstream tools.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.