Index of every page on this site: llms.txt
All skills
Run it yourself

Turn a public web article into a self-contained reader HTML file with no banners, callouts, or subscribe prompts. Use when the user wants a clean local HTML page of an article, especially Medium, clipboard URLs, “just the content,” or a layout that occupies the screen.

  • 2 files
  • 7.3 KB
  • Updated 3 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/arorashu/agent-stuff/article-html

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈72 tokens for metadata: the name and description. ≈826 when used: this file.

Description uses 3.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈284 characters, or 3.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Article HTML

Build one self-contained .html file the user can open. Preserve the article. Do not summarize it. Do not add chrome.

Find the URL

If the message has no URL, read the clipboard first:

wl-paste

Do not ask for the URL until clipboard and the current message have been checked.

Fetch the article

Direct curl of publisher pages often dies on Cloudflare (Just a moment...). Try in this order:

  1. Jina reader: https://r.jina.ai/ARTICLE_URL
  2. Direct fetch with a desktop Chrome user-agent, only if the previous step failed
  3. Other public reader mirrors only if 1–2 failed

Confirm the fetch is the article, not a challenge page, empty body, or newsletter interstitial. Keep author, date, title, and canonical URL.

Strip publisher chrome

Remove, do not restyle:

  • subscribe / “get this writer’s stories in your inbox” / “join Medium”
  • “Press enter or click to view image in full size”
  • clap / share / related-article rails
  • cookie, login, paywall, and app-install prompts
  • tiny avatars used only as byline decoration
  • popup-shaped callouts and notification boxes

Keep hiring links, thanks lines, and footnotes as ordinary body text when they are part of the article. Do not promote them into cards or banners.

Medium (and similar) often emit every heading as ##. Nest real subsections as h3 under the actual h2 sections.

Images

Download content figures at a large size. For Medium CDN assets:

https://miro.medium.com/v2/resize:fit:2400/<id>

Skip 32×32 avatars. Inspect each figure with the image-read tool and write a real alt description. Embed images as data:image/...;base64,... so the HTML is one file. A 1–3 MB file is fine.

Layout

Copy CSS from assets/reader.css into a <style> block. Do not link an external stylesheet.

Required properties of the page:

  • only the article occupies the window; no sticky header, no toast, no sidebar
  • reading column uses most of a laptop screen (min(46rem, calc(100vw - 2.4rem)), wider on large displays)
  • type scales with viewport; serif body, quiet sans for kicker/byline/footer
  • warm paper background, prefers-color-scheme dark variant, not harsh white/black
  • figures break out to full viewport width
  • quiet footer with author/date and the canonical source link

Skeleton:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ARTICLE TITLE</title>
<style>/* paste reader.css */</style>
</head>
<body>
<article>
<header>
<p class="kicker">PUBLICATION · READ TIME if known</p>
<h1>Title</h1>
<p class="byline">Author · Date</p>
</header>
<!-- body -->
<footer>Author · Publication · Date<br>Original: <a href="CANONICAL">host/path</a></footer>
</article>
</body>
</html>

Generate the file with a short Python snippet when embedding several images.

Output

Write to output/ in the current workspace if that directory exists, otherwise a clearly named path under the workspace. Tell the user the absolute path. Do not open a browser unless they ask.

This is a personal reading copy of a public article. Keep attribution. Do not use this skill for books, paywalled dumps, or anything the user cannot already open.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 912d079. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 3 months ago

README badge

README badge for arorashu/agent-stuff/article-html