agentleFS
yya007yya007/SkillFinder/skills/crawl-sources/SKILL.md

crawl-sources

Skill4 starsChanged 5 months agoMITView on GitHub

Crawl all SkillFinder data sources (SkillsMP, ClawHub, SkillHub, Anthropic marketplace, GitHub topics) and write fresh raw JSONL files to data/raw/. Runs crawlers in parallel; supports incremental resume and per-source limits.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When this skill triggers, determine scope from the user's request:

    line 36
  2. Distinctive:

    After all crawlers finish:

    line 123
  3. Distinctive:

    If crawl succeeded, offer:

    line 137
  4. Very specific:

    If the user says yes, hand off to the update-index skill starting at its Step 3 (Backfill metadata).

    line 140

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

crawl-sources

Crawl all skill registries and refresh the raw data files in data/raw/.

This skill covers the crawl step only — it does not normalize, embed, or rebuild the index. Run update-index afterward to turn fresh raw data into a searchable index.

Prerequisites

  • GITHUB_TOKEN env var set (required by SkillsMP, ClawHub, and topic crawlers)
  • Python dependencies installed: pip install -r requirements-dev.txt

Agent Instructions

When this skill triggers, determine scope from the user's request:

User saysScope
"crawl everything" / "all sources"Run all five crawlers (default)
"crawl skillsmp" / "crawl github"SkillsMP only
"crawl clawhub" / "crawl openclaw"ClawHub only
"crawl skillhub"SkillHub only
"crawl marketplace" / "crawl anthropic"Marketplace only
"crawl topics" / "crawl github topics"Topic crawler only
"quick test" / "limit N"Add --limit N to each crawler

Step 1 — Check prerequisites

echo "${GITHUB_TOKEN:0:4}..."

If empty, stop:

"Set GITHUB_TOKEN before crawling: export GITHUB_TOKEN=ghp_..."

mkdir -p data/raw

Step 2 — Run crawlers

All sources (parallel — default):

python -m crawlers.skillsmp_crawler -o data/raw/skillsmp.jsonl &
python -m crawlers.clawhub_crawler  -o data/raw/clawhub.jsonl &
python -m crawlers.skillhub_crawler -o data/raw/skillhub.jsonl &
python -m crawlers.marketplace_crawler -o data/raw/marketplace.jsonl &
python -m crawlers.topic_crawler    -o data/raw/topic.jsonl --data-dir data/raw &
wait

Single-source variants (use when user targets one source):

# SkillsMP (GitHub code search for SKILL.md files; ~30 min full run)
python -m crawlers.skillsmp_crawler -o data/raw/skillsmp.jsonl

# ClawHub / OpenClaw (awesome-list + org/topic discovery)
python -m crawlers.clawhub_crawler -o data/raw/clawhub.jsonl

# SkillHub (HTML scrape with pagination)
python -m crawlers.skillhub_crawler -o data/raw/skillhub.jsonl

# Anthropic official marketplace
python -m crawlers.marketplace_crawler -o data/raw/marketplace.jsonl

# GitHub topic tags (claude-skill, codex-skill, agent-skill, …)
python -m crawlers.topic_crawler -o data/raw/topic.jsonl --data-dir data/raw

Useful flags (apply to any crawler):

FlagEffect
--limit NCap at N records — use for quick tests
--mode incrementalSkip repos already present in the output file (preferred over --resume)
--mode fullComplete re-crawl (default)
--mode metadataRefresh stars/ETags only, skip content fetch
--mode discoverOnly fetch repos pushed since last run (date-filtered search)
--resumeDeprecated — use --mode incremental instead
--since YYYY-MM-DDOnly include repos pushed after this date (SkillsMP)
--log-level DEBUGVerbose output
--filter-cache FILEPath to dedup cache (default: data/filter_cache.jsonl)

Orchestrator (runs all crawlers in the right order):

python pipeline/update_crawl.py --mode incremental
python pipeline/update_crawl.py --mode full --sources clawhub,skillsmp
python pipeline/update_crawl.py --mode incremental --chain  # also runs normalize/embed/build

Step 3 — Report record counts

After all crawlers finish:

for f in data/raw/skillsmp.jsonl data/raw/clawhub.jsonl data/raw/skillhub.jsonl data/raw/marketplace.jsonl data/raw/topic.jsonl; do
  [ -f "$f" ] && echo "$(wc -l < $f) $(basename $f)"
done

Report the counts to the user. Flag any source with 0 records as a potential failure.


Step 4 — Suggest next step

If crawl succeeded, offer:

"Raw data is refreshed. Run the update-index skill to normalize, embed, and rebuild the FAISS index — or run it now?"

If the user says yes, hand off to the update-index skill starting at its Step 3 (Backfill metadata).


Troubleshooting

SymptomLikely causeFix
SkillsMP returns 0 recordsRate limit or bad tokenCheck GITHUB_TOKEN; retry with --limit 50
ClawHub hangsGitHub API slowAdd --limit 200 for a quick run
SkillHub returns few recordsSite structure changedRun with --log-level DEBUG and inspect HTML
filter_cache.jsonl grows largeNormal — dedup cacheSafe to delete; will be rebuilt on next run

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.