agentleFS
ForceInjectionForceInjection/awesome-skills/skills/web-content-downloader/SKILL.md

web-content-downloader

Skill87 starsChanged 6 months agoApache-2.0View on GitHub

Downloads web pages and converts them to Markdown files, preserving the original language (no translation). Use when the user wants to download web content, save articles, or extract images from web pages.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Primary Method: Use Jina Reader to fetch the content.

    line 17
  2. Very specific:

    Fallback Method: If Jina Reader fails or returns empty content, fall back to other tools (such as …

    line 18
  3. Distinctive:

    Keep Original Language: Do NOT translate the content.

    line 19
  4. Very specific:

    Table Handling: If the original web page contains tables (HTML <table>), they MUST be accurately converted into standard Markdown table …

    line 20
  5. Distinctive:

    Formatting Rules: Ensure the typography follows standard rules: insert spaces between Chinese and English characters.

    line 21
  6. Very specific:

    Check if an img directory exists in the current workspace.

    line 30
  7. Very specific:

    Use terminal commands (e.g., curl -O) to batch download the extracted images into the img directory.

    line 31
  8. Very specific:

    Use terminal commands (e.g., mv) to rename the downloaded images.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

English version: SKILL-en.md

Web Content Downloader

This skill is used to download specified web page content and convert it into Markdown format while retaining the original language (no translation). It also automatically extracts and downloads images from the web page into a local img directory, renames the images meaningfully, and correctly updates their references in the Markdown file.

Workflow

Strictly follow these steps:

1. Fetch and Convert Web Content

  • Primary Method: Use Jina Reader to fetch the content. Execute the terminal command curl -s "https://r.jina.ai/<TARGET_URL>". This directly returns the main body in well-formatted Markdown.
  • Fallback Method: If Jina Reader fails or returns empty content, fall back to other tools (such as mcp_DuckDuckGo_Search_Server_fetch_content, curl, or equivalent tools) to fetch the HTML content of the target URL, then clean and convert the HTML into Markdown.
  • Keep Original Language: Do NOT translate the content. Retain the original language of the web page.
  • Table Handling: If the original web page contains tables (HTML <table>), they MUST be accurately converted into standard Markdown table format (|---|---|). Avoid using HTML line break tags like <br> inside Markdown tables to keep them clean.
  • Formatting Rules: Ensure the typography follows standard rules: insert spaces between Chinese and English characters; ensure code blocks have explanatory comments.

2. Extract Image Links

  • Parse the original web content or HTML to extract all core image links. Pay attention not only to <img src="..."> and Markdown image syntax, but also to modern responsive tags like <source srcset="..."> or srcset attributes.
  • Filter out meaningless images such as favicons, tracking pixels, or tiny UI icons.

3. Create Directory and Download Images

  • Check if an img directory exists in the current workspace. If not, create it using the terminal command mkdir -p img.
  • Use terminal commands (e.g., curl -O) to batch download the extracted images into the img directory.

4. Rename Images

  • Generate meaningful English or Pinyin names for the downloaded images based on the article's context or what the image depicts (e.g., design-patterns.png).
  • Use terminal commands (e.g., mv) to rename the downloaded images.

5. Update Markdown References

  • Replace the original remote image links in the Markdown document with the local image links (e.g., ![design-patterns](./img/design-patterns.png)).
  • Save the final Markdown text to the file specified by the user, or generate a .md file based on the web page title and save it.

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.