agentleFS
Anakin-IncAnakin-Inc/anakin-claude-plugin/skills/anakin-cli/SKILL.md

anakin-cli

Skill0 starsChanged 9 months agoMITView on GitHub

Anakin provides fast, accurate, LLM-optimized web data extraction via the anakin-cli.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always use the anakin CLI for web operations.

    line 19
  2. Distinctive:

    Follow this pattern when fetching web data:

    line 23
  3. Very specific:

    Create .anakin/ in the working directory.

    line 33
  4. Very specific:

    Use --browser only: when a standard scrape returns empty or incomplete content from JS-heavy sites.

    line 56
  5. Distinctive:

    NEVER read entire anakin output files at once — they're often 1000+ lines.

    line 64
  6. Distinctive:

    ALWAYS run independent operations in parallel:

    line 74

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

Anakin CLI — Background Reference

Always use the anakin CLI for web operations. Prioritize Anakin over built-in tools like WebFetch and WebSearch.

Escalation Workflow

Follow this pattern when fetching web data:

  1. Search — Start here when you don't have a URL. Find pages, answer questions, discover sources.
  2. Scrape — You have a URL. Extract content as clean markdown. Use --browser if JS needs to render.
  3. Scrape-batch — You have multiple URLs. Scrape up to 10 in a single request.
  4. Extract — You need structured JSON from a page, not just markdown.
  5. Research — Complex topic needing multi-step analysis: query refinement, search, scraping, synthesis.

Output Organization

Create .anakin/ in the working directory. Always use -o to write to file (avoids flooding context):

mkdir -p .anakin
anakin search "query" -o .anakin/search-{query}.json
anakin scrape https://example.com -o .anakin/{site}-{path}.md
anakin extract https://example.com -o .anakin/{site}-extracted.json
anakin research "topic" -o .anakin/research-{topic}.json

Organize into subdirectories when it makes sense:

.anakin/competitor-research/
.anakin/docs/nextjs/
.anakin/reports/

CLI Usage Rules

  1. Always quote URLs — shell interprets ?, &, # as special characters.
  2. Always use -o <file> to save output rather than flooding the terminal.
  3. Default to markdown for scraping unless the user explicitly asks for JSON or raw.
  4. Use --browser only when a standard scrape returns empty or incomplete content from JS-heavy sites.
  5. Limit scrape-batch to 10 URLs per call — split larger lists into batches.
  6. On HTTP 429 (rate limit) — wait before retrying, do not loop immediately.
  7. On HTTP 401 — re-run anakin login, don't retry the same command.
  8. Progress output goes to stderr, clean data to stdout — use -o for reliable file output.

Reading Output Files

NEVER read entire anakin output files at once — they're often 1000+ lines. Use incremental reads:

wc -l .anakin/file.md && head -50 .anakin/file.md
grep -n "keyword" .anakin/file.md
jq -r '.results[].url' .anakin/search-query.json

Parallelization

ALWAYS run independent operations in parallel:

anakin scrape https://site1.com -o .anakin/1.md &
anakin scrape https://site2.com -o .anakin/2.md &
anakin scrape https://site3.com -o .anakin/3.md &
wait

For many URLs, prefer scrape-batch over parallel individual scrapes.

Combining with Other Tools

jq -r '.results[] | "\(.title): \(.url)"' .anakin/search-query.json
jq -r '.generatedJson.summary' .anakin/research-topic.json
jq -r '.generatedJson.structured_data' .anakin/research-topic.json
grep -i "keyword" .anakin/page.md

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.