learn-content

learn-content is a skill for Claude Code, Codex from xg-gh-25/SwarmAI. It costs 74 tokens per session (5,106 once invoked), scanned A, original, MIT.

A skill for turning a URL, pasted text, or document into a structured knowledge card that stores the source, key insights, and tags. It keeps the original source as the reference instead of archiving the full text.

In plain words
What is it for?
Use it to ingest articles, GitHub pages, posts, PDFs, documents, or media into dated knowledge cards.
Why use it?
It gives you a lightweight way to remember what a source contains and decide whether to read it again later.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .claude/skills/s_browser-agent/browser-agent.mjs launch # if not running.

Good fit Use it to ingest articles, GitHub pages, posts, PDFs, documents, or media into dated knowledge cards.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/xg-gh-25/SwarmAI
agentmods
npx agentmods add skills/xg-gh-25/swarmai/s_learn-content

Made for: Claude Code, Codex.

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 learn-content

README.md
[![agentmods](https://agentmods.dev/badge/skills/xg-gh-25/swarmai/s_learn-content/github.svg)](https://agentmods.dev/skills/xg-gh-25/swarmai/s_learn-content)
Your own site
<a href="https://agentmods.dev/skills/xg-gh-25/swarmai/s_learn-content"><img src="https://agentmods.dev/badge/skills/xg-gh-25/swarmai/s_learn-content/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 learn-content

Your own site · 80×15
<a href="https://agentmods.dev/skills/xg-gh-25/swarmai/s_learn-content"><img src="https://agentmods.dev/badge/skills/xg-gh-25/swarmai/s_learn-content.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,106 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 78
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 82
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00074 $0.05106
Opus 5 $0.00037 $0.02553
Sonnet 5 $0.00015 $0.01021
Haiku 4.5 $0.00007 $0.00511

Measured today against content hash 1039e130d083, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

learn-content 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 today.

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.

**Tier 2: curl with platform-specific UA** (works for ~20% more)
backend/skills/s_learn-content/SKILL.md · 417 lines

How it starts

The opening of the file, as written. The whole thing — 417 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Learn Content

Ingest content from any source into a structured knowledge card — a lightweight index entry that stores the source, key insights, and tags. NOT full-text archival. The source URL is the single source of truth; the card is an index pointer with enough context to decide whether to re-read.

Storage

~/.swarm-ai/SwarmWS/Knowledge/Learned/YYYY-MM-DD-<slug>.md

One file per ingested item. No hard size limit — prioritize learning value over compactness.

Workflow

Step 1: Accept Input

User provides one or more of:

  • URL (article, blog post, tweet thread, GitHub repo, WeChat article)
  • Pasted text block
  • File path (PDF, doc, etc.)
  • Forwarded message with link

Detect the input type:

Input Action
URL (general) 3-tier fetch chain (see below)
Text block (no URL) Use directly — store as source_type: text
File path (video/audio) ffmpeg extract audio → whisper-transcribe → text
File path (document) Read tool / appropriate skill (s_pdf, s_docx)
Multiple URLs Process each separately, one card per URL

3-Tier Fetch Chain (BLOCKING — exhaust all tiers before asking user)

Every URL goes through this chain. Stop at the first tier that returns usable content.

Tier 1: WebFetch (fastest, works for ~70% of URLs)

  • Standard fetch. If it returns real content, done.
  • Skip to Tier 2 if: anti-scraping block, "环境异常", empty body, login wall, SPA shell (<div id="app"></div>)

Tier 2: curl with platform-specific UA (works for ~20% more)

# WeChat articles (mp.weixin.qq.com)
curl -sL -H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.43" "<URL>"

# General anti-scraping (Douyin pages, news sites)
curl -sL -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36" -H "Accept-Language: zh-CN,zh;q=0.9" "<URL>"
  • WeChat: extract from og: tags + id="js_content" div
  • General: extract from <article>, <main>, or largest text block
  • Skip to Tier 3 if: SPA with no server-rendered content, JS-only rendering, video page

Read the full file on GitHub · 417 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed 1039e130d083
  2. 12d ago First seen · 417 lines · 74 tokens per session scan A b91f88addb00

Subscribe to this mod's changes

learn-content is a skill published in the GitHub repository xg-gh-25/SwarmAI (44 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 5,106 once invoked, about $0.0004 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-30.