extract-social-lessons

extract-social-lessons is a command for Claude Code from runnithan/claudex-setup. It costs 52 tokens per session (4,203 once invoked), scanned A, original, MIT.

A command that researches recent public posts, articles, code-hosting discussions, and official sources for practical Claude Code and AI-assisted coding lessons. Claude Code is an AI coding assistant.

In plain words
What is it for?
Use it to find actionable practices, check them against existing lessons, and save new lessons with quotes, links, categories, and an index.
Why use it?
It turns scattered online material into deduplicated, source-backed lessons that can be kept in the project's local archive.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Part of the claudex-setup plugin — 3 skills, 21 commands, 6 agents shipped together

Good fit Use it to find actionable practices, check them against existing lessons, and…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/runnithan/claudex-setup/extract-social-lessons
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.

Clone the repo
git clone --depth 1 https://github.com/runnithan/claudex-setup

Made for: Claude Code.

Or install claudex-setup, the plugin that ships this one along with the rest of its 3 skills, 21 commands, 6 agents.

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 extract-social-lessons

README.md
[![agentmods](https://agentmods.dev/badge/commands/runnithan/claudex-setup/extract-social-lessons.svg)](https://agentmods.dev/commands/runnithan/claudex-setup/extract-social-lessons)
Your own site
<a href="https://agentmods.dev/commands/runnithan/claudex-setup/extract-social-lessons"><img src="https://agentmods.dev/badge/commands/runnithan/claudex-setup/extract-social-lessons.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,203 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.00052 $0.04203
Opus 5 $0.00026 $0.02101
Sonnet 5 $0.00010 $0.00841
Haiku 4.5 $0.00005 $0.00420

Measured 6d ago against content hash 80775c74def4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

extract-social-lessons 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 6d 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.

1. `curl -sL "https://nitter.tiekoetter.com/<handle>"` (plain curl, no auth) renders
.claude/commands/extract-social-lessons.md · 291 lines

How it starts

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

Extract Social Lessons

Fan out a small team of research subagents over recent public posts by the practitioners listed in references/agentic-coding-voices.md (plus the canonical non-person sources), extract concrete Claude-Code / agentic-coding lessons, dedupe them against what already exists, and write each new lesson as one file under lessons/<category>/, indexed in lessons/INDEX.md.

This is the web counterpart to /extract-lessons. That command mines local YouTube/transcript files; this one mines the open web. Both write into the same lessons/ archive in the same format, so a lesson is a lesson regardless of where it came from, the only frontmatter difference is source_type and the sources URL.

Run this from the root of the claudex-setup repo (the one containing references/ and lessons/).


What counts as a lesson

A concrete, actionable thing to do or stop doing when using Claude Code (or a transferable agentic-coding practice), grounded in a real quoted line with its source URL. Test each candidate against all four:

  1. Actionable, it tells you to do X or stop doing Y, not just "X exists." A bare feature announcement is not a lesson; extract the usage implication ("now do X instead of Y") or drop it.
  2. Specific, names the command / flag / hook / setting / pattern precisely enough to act on without re-reading the source.
  3. Grounded, you can quote a real sentence from the post and cite its URL. No quote, no lesson.
  4. Non-obvious, it isn't already common knowledge or already in lessons/.

Reject vague sentiment ("Claude Code is great for refactors"), pure marketing, and anything you can't tie to a specific quoted line.


Arguments

  • $ARGUMENTS, optional. Free text controlling scope. Recognized hints:
    • empty / new (default): search for posts not already in lessons/.processed-social.json;
    • all: ignore the processed ledger and re-search everything;
    • a name/handle (e.g. boris-cherny): scope the run to that one voice;
    • a recency window, e.g. last 30 days, since 2026-06-01 (default: the last 8 weeks from today);
    • a tier filter, e.g. canonical only or tier 1 only;
    • dry-run, do everything except write files; report the plan and the candidate lessons instead.

Read the full file on GitHub · 291 lines

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. 6d ago First seen · 291 lines · 52 tokens per session scan A 80775c74def4

Subscribe to this mod's changes

extract-social-lessons is a command published in the GitHub repository runnithan/claudex-setup (1 stars, last pushed 5d ago), licensed MIT. It adds 52 tokens to every session and 4,203 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.