agentleFS
LL4nc33LL4nc33/code-workspace-engine/skills/web-research/SKILL.md

web-research

Skill0 starsChanged 7 months agoMITView on GitHub

Use PROACTIVELY when you need to search the web or read/scrape any webpage. Provides local SearXNG search and Firecrawl/trafilatura web scraping. Use this instead of WebSearch/WebFetch when those tools fail or for better results.

  • Installs packages
  • Sends data out

45 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use data-analysis, meeting-notes and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • shanggqmSkill

    data-analysis

    数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。

    Also in 5 projects that use this

  • claude-office-skillsSkill

    meeting-notes

    >

    Also in 4 projects that use this

  • MicrosoftSkill

    web-search

    Also in 5 projects that use this

  • kongyo2Skill

    prompt-engineering

    Comprehensive prompt engineering framework for designing, optimizing, and iterating LLM prompts. This skill should be used when users request prompt creation, optimization, or improvement for any LLM task, or when users need help translating vague requirements into effective prompts through collaborative dialogue and iterative refinement.

    Also in 4 projects that use this

  • rogue-dev-studioSkill

    browser-automation

    Canonical browser automation and web UI verification: Playwright, agent browser CLIs, and CDP-based tooling in one playbook.

    Also in 3 projects that use this

  • JetBrainsSkill

    brand-guidelines

    Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 38 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use PROACTIVELY when you need to search the web or read/scrape any webpage.

    line 4
  2. Distinctive:

    Use this instead of WebSearch/WebFetch when those tools fail or for better results.

    line 6
  3. Very specific:

    If not configured, defaults: SEARXNG_URL=http://localhost:8080, FIRECRAWL_URL=http://localhost:3002

    line 23
  4. Very specific:

    When WebSearch or WebFetch fail or return incomplete results

    line 37

“Common” is measured: kept by at least 6 in 10 of the 38 edited versions of this file we could read. “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

Web Research — SearXNG + Scraping

Local self-hosted web search and scraping for research tasks.

Configuration

URLs are configured per-project in .claude/cwe-settings.yml:

searxng_url: http://localhost:8080    # Your SearXNG instance
firecrawl_url: http://localhost:3002  # Your Firecrawl instance (optional)

If not configured, defaults: SEARXNG_URL=http://localhost:8080, FIRECRAWL_URL=http://localhost:3002

Services

ServiceConfig KeyPurposeStatus
SearXNGsearxng_urlWeb search (metasearch)Primary
Firecrawlfirecrawl_urlJS-capable scrapingOptional (may be offline)
trafilaturaPython libraryStatic page scrapingFallback (always available)

When to Use

  • Web search for facts, current events, verification
  • Reading full articles, documentation, reports
  • When WebSearch or WebFetch fail or return incomplete results
  • Research tasks that need multiple sources

SearXNG Search

curl -s "${SEARXNG_URL}/search?q=QUERY&format=json&language=de" | python3 -c "
import sys, json
data = json.load(sys.stdin)
for i, r in enumerate(data.get('results', [])[:10], 1):
    print(f\"{i}. {r.get('title', '?')}\")
    print(f\"   {r.get('url', '')}\")
    s = r.get('content', '')[:120]
    if s: print(f\"   {s}\")
    print()
"

Search Parameters

ParamDefaultDescription
qrequiredSearch query (URL-encoded)
formatjsonAlways use json
languagedede, en, all
safesearch10=off, 1=moderate, 2=strict
enginesallgoogle,bing,duckduckgo
categoriesallgeneral, news, images, videos, science
time_rangenoneday, week, month, year

Tips

  • Current events: &time_range=week or &categories=news
  • English results: &language=en
  • URL-encode spaces as +

Scraping Pages

Option 1: Firecrawl (if available)

Best for JS-heavy sites. Test availability first:

curl -s -X POST "${FIRECRAWL_URL}/v1/scrape" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","formats":["markdown"],"onlyMainContent":true}' | python3 -c "
import sys, json
data = json.load(sys.stdin)
if data.get('success'):
    print(data['data'].get('markdown', '')[:5000])
else:
    print('ERROR:', data.get('error', 'Unknown'))
"

Option 2: trafilatura (always available, fallback)

Works for static pages, articles, news sites:

python3 -c "
import trafilatura
url = 'https://example.com/article'
downloaded = trafilatura.fetch_url(url)
if downloaded:
    text = trafilatura.extract(downloaded, include_tables=True, include_links=False)
    if text:
        print(text[:5000])
    else:
        print('ERROR: No content extracted')
else:
    print('ERROR: Could not fetch URL')
"

Option 3: curl + trafilatura (most reliable)

curl -sL -H "User-Agent: Mozilla/5.0" "URL_HERE" | python3 -c "
import sys, trafilatura
html = sys.stdin.read()
text = trafilatura.extract(html, include_tables=True)
print(text[:5000] if text else 'ERROR: No content')
"

Workflow: Search + Scrape + Analyze

# 1. Search (URLs into a temp file, no fixed /tmp path)
URLS=$(mktemp "${TMPDIR:-/tmp}/cwe-urls-XXXXXX")
curl -s "${SEARXNG_URL}/search?q=claude+code+plugins&format=json&language=en" | python3 -c "
import sys, json
results = json.load(sys.stdin).get('results', [])[:5]
for r in results:
    print(r['url'])
" > "$URLS"

# 2. Scrape top results (URL via argv — never interpolate it into the source)
while read -r url; do
  echo "=== $url ==="
  python3 -c "
import sys, trafilatura
d = trafilatura.fetch_url(sys.argv[1])
if d:
    t = trafilatura.extract(d, include_tables=True)
    if t: print(t[:3000])
" "$url"
done < "$URLS"
rm -f "$URLS"

Firecrawl API Reference (when available)

EndpointMethodPurpose
/v1/scrapePOSTSingle URL scrape
/v1/crawlPOSTMulti-page crawl
/v1/mapPOSTSitemap/URL discovery

Scrape body: {"url": "...", "formats": ["markdown"], "onlyMainContent": true, "waitFor": 2000}

Notes

  • SearXNG: local network, no auth, no rate limits
  • Firecrawl: may be offline — always try trafilatura as fallback
  • For YouTube/video/audio URLs: use /cwe:transcript instead
  • trafilatura: pip install trafilatura if not installed

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.