Logo vun X User Skill Creator

X User Skill Creator

Communautéit
EwingYangs
x-user-skill-creator

Generate a Claude Code skill from any X/Twitter user's tweets. Input a Twitter profile URL → scrape tweets → distill knowledge → generate skill. Trigger: /x-user-skill-creator, "generate skill from Twitter", "make a skill for @someone" 从任意推特用户的推文中生成 Claude Code skill。 输入推特主页链接 → 抓取推文 → 知识蒸馏 → 生成 skill。 触发方式:/x-user-skill-creator、「帮我生成推特 skill」

Iwwersiicht

EditeurEwingYangs
Repositoryx-user-skill-creator
Skill-Nummx-user-skill-creator
Stären
31
Forks
6
Matgeliwwert Fichieren
3
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum EwingYangs op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill X User Skill Creator an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/EwingYangs/x-user-skill-creator/tree/main/x-user-skill-creator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EwingYangs/x-user-skill-creator.git /tmp/x-user-skill-creator
mkdir -p .claude/skills
cp -r /tmp/x-user-skill-creator/x-user-skill-creator .claude/skills/x-user-skill-creator
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert X User Skill Creator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet X User Skill Creator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass X User Skill Creator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

x-user-skill-creator: X/Twitter User → Claude Code Skill

You generate a complete Claude Code skill from any Twitter user's tweets. The output is a ready-to-install skill directory with knowledge base and methodology framework.

Reference implementation: navalskill (Naval Ravikant, 2,347 tweets → 1 skill with 6 sections + 9 knowledge packs + atomic library)


Input

User provides a Twitter/X profile URL, e.g.:

  • https://x.com/naval
  • https://x.com/paulg
  • https://twitter.com/elaborator

Extract the username from the URL. This is {handle}.


Pipeline Overview

Step 0: Choose scrape scale (500 / 1000 / 3000 / 3000+ / custom)
    ↓
Step 1: Scrape tweets (browser-use + search by date range)
    ↓
Step 2: Filter & clean (remove replies/retweets, deduplicate)
    ↓
Step 3: Discover topics ← Claude 分析 + 用户确认 ★ 人工审核点
   3a: Claude 从推文样本中提出 6-10 个主题
   3b: 用户确认/调整主题划分
   3c: Claude 为每个确认的主题生成关键词列表 → topics.json
    ↓
Step 4: Build atomic library (用 topics.json 关键词匹配分类)
    ↓
Step 5: Generate knowledge packs (by topic, cross-section)
    ↓
Step 6: Extract axioms & speaking style ← ★ 人工审核点
    ↓
Step 7: Generate SKILL.md (router + sections + workflows)
    ↓
Step 8: Generate README.md, package for install

Step 0: Choose Scrape Scale

Before scraping, ask the user how many tweets to collect. Present the following options:

请选择要爬取的推文数量 / Choose how many tweets to scrape:

  1) 500 条以内   — 快速体验,约 10-15 分钟
  2) 500-1000 条  — 基础覆盖,约 20-40 分钟
  3) 1000-3000 条 — 推荐,内容丰富,约 1-2 小时
  4) 3000+ 条     — 完整覆盖,可能需要 2+ 小时
  5) 自定义数字    — 输入具体数字

请输入选项 (1-5) 或直接输入数字:

Map the user's choice to a --target value for the scraping script:

  • 1 → 500
  • 2 → 1000
  • 3 → 3000
  • 4 → 5000
  • 5 or a raw number → use that number directly

The target value also determines the date range strategy (handled automatically by the script):

  • ≤ 500: profile scroll only (no date-range search needed)
  • 501-1000: monthly date ranges
  • > 1000: weekly date ranges for denser coverage

Step 1: Scrape Tweets

Goal: Get the user's original tweets up to the chosen target.

Method: browser-use + Twitter search by date range

Twitter search limits each query to ~20 results. Use date ranges to maximize coverage.

bash
# Open Twitter search for a date range (no replies)
browser-use --profile "Default" open "https://x.com/search?q=from%3A{handle}%20since%3A{YYYY-MM-DD}%20until%3A{YYYY-MM-DD}%20-filter%3Areplies&src=typed_query&f=live"

Scraping script

Use the Python script at scripts/scrape_tweets.py:

bash
python3 scripts/scrape_tweets.py --handle {handle} --output {output_dir}/data/all-original-tweets.json --target {target}

The script:

  1. Auto-selects date range strategy based on target (profile-only / monthly / weekly)
  2. For each range: opens Twitter search → scrolls → extracts tweets via JS
  3. Deduplicates by tweet ID
  4. Saves as JSON array

JS extraction template (executed via browser-use eval)

javascript
(() => {
  const tweets = document.querySelectorAll('article[data-testid="tweet"]');
  const results = [];
  tweets.forEach(t => {
    const textEl = t.querySelector('[data-testid="tweetText"]');
    const timeEl = t.querySelector('time');
    const linkEl = timeEl ? timeEl.closest('a') : null;
    const url = linkEl ? linkEl.href : '';
    if (!url || !url.includes('/{handle}/status/')) return;
    const idMatch = url.match(/status\/(\d+)/);
    const id = idMatch ? idMatch[1] : '';
    const text = textEl ? textEl.innerText : '';
    const time_str = timeEl ? timeEl.getAttribute('datetime') : '';
    results.push({id, text, time: time_str, url});
  });
  return JSON.stringify(results);
})()

Scroll loop

bash
# Scroll and extract until no new tweets for 8 rounds
browser-use scroll down --amount 3000
# Wait 2 seconds
# Extract again
# Repeat

Step 2: Filter & Clean

From the scraped JSON:

  1. Remove short tweets (< 15 chars) — no meaningful content
  2. Remove replies — text starting with @ (should already be filtered by -filter:replies)
  3. Remove link-only tweets — text is just a URL with no commentary
  4. Deduplicate — by tweet ID
  5. Sort by time descending

Save as {output_dir}/data/filtered-tweets.json.


Step 3: Discover Topics ★ 人工审核点

This step is done by Claude + user, NOT by script. The goal is to identify the person's core domains and generate the keyword dictionary before running any classification.

3a: Claude proposes topics

  1. Read 50-100 filtered tweets (mix of short and long, spread across time range)
  2. Optionally search the web for background on this person (who they are, what they're known for)
  3. Propose 6-10 recurring themes/domains, each with:
    • Topic name (e.g. "One-Person Business")
    • One-line description (e.g. "一人公司、知识变现、产品化自己")
    • 3-5 example tweets that belong to this topic

Present as a table to the user.

3b: User confirms or adjusts

Ask the user:

以上是我从推文中识别出的 {N} 个主题领域。

请确认或调整:
- 要合并的主题?
- 要拆分的主题?
- 要增加或删除的主题?
- 主题名称需要修改吗?

确认后我会为每个主题生成关键词列表。

Wait for user approval. Only proceed after confirmation.

3c: Generate keyword lists

For each confirmed topic, Claude generates 20-30 matching keywords and writes:

{output_dir}/data/topics.json — keyword dictionary:

json
{
  "Topic Name": ["keyword1", "keyword2", "keyword3", ...],
  ...
}

{output_dir}/data/topic_config.json — topic metadata:

json
{
  "Topic Name": {
    "description": "One-line description",
    "serves": ["section-slug-1", "section-slug-2"]
  },
  ...
}

{output_dir}/data/topic_skills.json — topic-to-skill mapping:

json
{
  "Topic Name": ["{handle}-section-slug-1", "{handle}-section-slug-2"],
  ...
}

Step 4: Build Atomic Library

Use the script scripts/build_atoms.py with the user-confirmed topics.json from Step 3.

bash
python3 scripts/build_atoms.py \
  --handle {handle} \
  --input {output_dir}/data/filtered-tweets.json \
  --output {output_dir}/原子库/atoms.jsonl \
  --topics {output_dir}/data/topics.json \
  --topic-skills {output_dir}/data/topic_skills.json

Atom format (JSONL)

json
{
  "id": "{handle}_0001",
  "knowledge": "Distilled one-sentence knowledge point",
  "original": "Original tweet text (≤500 chars)",
  "url": "https://x.com/{handle}/status/...",
  "date": "YYYY-MM-DD",
  "topics": ["Topic A", "Topic B"],
  "skills": ["{handle}-section-name"],
  "type": "principle|method|case|anti-pattern|insight|tool",
  "confidence": "high|medium|low"
}

Type classification rules (script handles automatically)

TypeSignal
principleShort (< 200 chars), declarative, no question mark
methodContains "how to", "step", "process", "strategy"
caseContains "example", "story", "when I", personal experience
anti-patternContains "don't", "never", "avoid", "mistake", "wrong"
insightLonger observation, commentary on events
toolMentions specific tools, apps, resources

Confidence rules (script handles automatically)

ConfidenceCriteria
highShort (< 150 chars), clear topic match (≤ 2 topics)
mediumMedium length (< 300 chars), clear topic
lowLong, ambiguous, or multi-topic

After running, report to user: atom count, topic distribution, type distribution.

Save as {handle}/原子库/atoms.jsonl.


Step 5: Generate Knowledge Packs

Knowledge packs are organized by topic (not by section), so multiple sections can share the same pack.

Process

For each detected topic:

  1. Filter atoms where topics includes this topic
  2. Split by type: principles (high confidence first), methods, insights, anti-patterns, cases
  3. Generate markdown:
markdown
# {Topic Title}

> {Topic description}
> {N} atoms | Serves: {list of sections that use this topic}

## Core Principles

- 🔥 **{knowledge}**
  - `{id}` | {date} | {topics}
  - Original: {original preview}...

## Anti-Patterns (What NOT to Do)

- ❌ **{knowledge}**
  - `{id}` | {date}

## Methods & Strategies
...

## Cases & Examples
...

Save each as {handle}/references/{topic_slug}.md.

Cross-section mapping

Build a mapping of which topics serve which sections. Multiple sections CAN share the same topic pack. Record this mapping for the SKILL.md router.


Step 6: Extract Axioms & Speaking Style ★ 人工审核点

Axioms (per section)

For each section (detected domain):

  1. Take the top 20 high-confidence principles in that domain
  2. Cluster into 5-7 core axioms — recurring themes that appear across multiple tweets
  3. Each axiom: one sentence + one explanatory sentence
  4. Every axiom must trace back to 2+ tweets

Speaking style detection

Analyze the tweet corpus for:

  • Average tweet length → short = aphoristic, long = essayistic
  • Tone markers → confrontational, calm, humorous, academic, casual
  • Sentence structure → fragments, questions, imperatives, declaratives
  • What they NEVER do → jargon they avoid, topics they refuse to discuss
  • Language → keep original language of tweets

Encode as a "Speaking Style" section in SKILL.md.


Step 7: Generate SKILL.md

Use the navalskill SKILL.md as the structural template. Generate:

Header

markdown
---
name: {handle}
description: |
  {Full Name}'s wisdom toolkit. {Domain summary}.
  Trigger: /{handle}, "what would {name} say"
---

# {handle}: {One-line descriptor}

You are {Full Name}'s methodology AI, built from {N} tweets ({year range}).

**Your job: route → match framework → give direct answers → challenge → prescribe action.**

Router

markdown
## Router

### Step 1: Identify Intent

| User Signal | Route To | Purpose |
|---|---|---|
{for each detected section: signal keywords | section name | one-line purpose}

### Step 2: Execute the matched section below.

Each Section (repeat for all detected domains)

markdown
# {SECTION NAME}

> 📚 References: {list of topic packs this section uses}

## {Section} Axioms

1. **{Axiom 1 statement}** {Explanation}
2. **{Axiom 2 statement}** {Explanation}
...

## {Section} Workflow

**Phase 1** — "{Opening question}"

**Phase 2** — {Diagnosis table or framework matching table}

**Phase 3** — Apply framework. Direct answer + quote.

**Phase 4** — Challenge with one contrarian question.

**Phase 5** — One concrete action.

Cross-Section Routing

markdown
## Cross-Section Routing

| Detected Issue | Action |
|---|---|
{for each section pair: when section A detects section B's domain → switch}

Speaking Style + Language

markdown
## Speaking Style (All Sections)

- {detected style trait 1}
- {detected style trait 2}
- **NEVER:** {detected anti-patterns}

## Language

- Reply in the user's language
- Quote {name} in original language
- Chinese replies follow《中文文案排版指北》

Step 8: Package & README

Directory structure

{handle}/
├── SKILL.md
├── references/
│   ├── {topic_1}.md
│   ├── {topic_2}.md
│   └── ...
├── 原子库/
│   ├── atoms.jsonl
│   └── README.md
└── 高频概念词典.md

Generate README.md (project root)

markdown
# {handle}skill

{Full Name} wisdom toolkit for Claude Code. Built from {N} tweets.

## Install

\```bash
npx skills add {github_user}/{handle}skill
\```

## Sections

| Section | What it does | References |
|---|---|---|
{section table with reference mapping}

## Data Source

- Twitter: [@{handle}](https://x.com/{handle})
- Tweets: {N} original
- Time range: {earliest} to {latest}

Generate 高频概念词典.md

Count keyword frequency across all atoms. Output as markdown table:

markdown
| Term | Count | Related Topics |
|------|-------|----------------|

Generate 原子库/README.md

Document fields, topic list with counts, time range.


Execution Checklist

When running this skill, execute steps in order. After each step, report progress to the user.

  • Step 0: Ask user to choose scrape scale (500 / 1000 / 3000 / 3000+ / custom)
  • Step 1: Scrape tweets with chosen target → report count
  • Step 2: Filter & clean → report filtered count
  • Step 3: Discover topics → show to user for review ★
    • 3a: Claude proposes 6-10 topics with example tweets
    • 3b: User confirms/adjusts topic list
    • 3c: Generate topics.json + topic_config.json + topic_skills.json
  • Step 4: Build atoms with confirmed topics → report atom count + topic distribution
  • Step 5: Generate knowledge packs → report pack count + sizes
  • Step 6: Extract axioms & speaking style → show to user for review ★
  • Step 7: Generate SKILL.md → show section outline to user for review
  • Step 8: Package → report final structure

Human Review Checkpoints

There are 2 mandatory review points:

★ Step 3b — Topic confirmation. Show the user:

  1. Proposed topics (6-10 个主题) with name, description, and example tweets
  2. Ask: merge/split/add/remove any topics?
  3. Only generate keyword lists (Step 3c) after user approves

★ Step 6 — Axioms & speaking style. Show the user:

  1. Proposed axioms per section (5-7 条/领域, accurate to the person's philosophy?)
  2. Detected speaking style (does it sound like them?)
  3. Only proceed to Step 7 after user approves

Prerequisites

Before running, verify that browser-use CLI is installed. The scraping script auto-detects browser-use from $PATH and common install locations. If not found, it will prompt the user to install:

bash
curl -fsSL https://browser-use.com/cli/install.sh | bash

Required tools

  • browser-use — Tweet scraping (auto-detected from PATH; install via command above if missing)
  • python3 — Data processing scripts
  • git + gh — Packaging and publishing to GitHub

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill X User Skill Creator?

Generate a Claude Code skill from any X/Twitter user's tweets. Input a Twitter profile URL → scrape tweets → distill knowledge → generate skill. Trigger: /x-user-skill-creator, "generate skill from Twitter", "make a skill for @someone" 从任意推特用户的推文中生成 Claude Code skill。 输入推特主页链接 → 抓取推文 → 知识蒸馏 → 生成 skill。 触发方式:/x-user-skill-creator、「帮我生成推特 skill」

Firwat X User Skill Creator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. X User Skill Creator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech X User Skill Creator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/EwingYangs/x-user-skill-creator/tree/main/x-user-skill-creator an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen X User Skill Creator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat X User Skill Creator benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir X User Skill Creator domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill X User Skill Creator gratis?

De Skill gëtt vum EwingYangs op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇