agentleFS
Michael-ObeleMichael-Obele/tomoshibi/.agents/skills/tomoshibi/SKILL.md

tomoshibi

Skill4 starsChanged 55 days agoMITView on GitHub

Use Tomoshibi (tomoshi) MCP to turn any site into LLM-ready markdown — scrape, search, map, crawl, batch and monitor. Use when fetching web content, searching the web, extracting links, crawling a site, or watching a page for changes via tomoshi_extract, tomoshi_discover, tomoshi_monitor.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    MUST: use action enum — there are only 3 tools.

    line 163

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

Tomoshibi — lamp light for AI agents

Self-hosted Firecrawl/Exa alternative. 3 tools, not 17 — resource-oriented with action enum. One binary, $5/mo hobby-tier.

When to Use This Skill

  • User wants to scrape a URL to markdown, screenshot, images, or structured data
  • User wants to search the web (native 21-engine roster → SearXNG → Brave/Serper/Tavily fallbacks)
  • User wants to map a site (sitemap → robots.txt → link fallback)
  • User wants to crawl a site async (BFS, Redis-backed)
  • User wants to batch scrape 2–20 URLs async
  • User wants to monitor a page for changes (hash + webhook)
  • User mentions tomoshi, tomoshibi, cinder, firecrawl, exa, or "turn site into markdown"

Prerequisites

A running Tomoshibi API is required. The MCP is a thin client over HTTP.

# fastest — full stack (api 7431 + redis 7434 + mcp 7433 + web 7432; searxng opt-in: --profile searxng)
git clone https://github.com/Michael-Obele/tomoshibi.git && cd tomoshibi
docker compose up -d
curl http://localhost:7431/health  # → {"status":"ok"}

# or single binary
go run ./packages/api/cmd/api
REDIS_URL=redis://localhost:7434 go run ./packages/api/cmd/api  # with async

MCP config (.vscode/mcp.json or Claude config):

{
  "mcpServers": {
    "tomoshi": {
      "command": "npx",
      "args": ["-y", "tomoshi"],
      "env": { "TOMOSHI_API_URL": "http://localhost:7431" },
      // legacy CINDER_API_URL also works
    },
  },
}

Aliases: npx tomoshi, npx tomoshibi, npx tomoshibi-mcp — same package.

Optional search keys (BRAVE_SEARCH_API_KEY, SERPER_API_KEY, TAVILY_API_KEY) go in the same env block; the MCP asks the backend which names it accepts (GET /v1/env) once and forwards the matching ones on every request as X-Tomoshi-Env, so keys live in one place. TOMOSHI_FORWARD_ENV="false" opts out.

Tools (3)

ToolactionEndpointNeeds Redis
tomoshi_extractscrape · scrape_multi · links · batch · batch_status/v1/scrape, /v1/batchbatch* only
tomoshi_discoversearch · map · crawl · crawl_status/v1/search, /v1/map, /v1/crawlcrawl* only
tomoshi_monitorcreate · status · delete/v1/monitorYes

Async actions (batch, crawl, monitor) are Redis-backed — poll *_status until done.

1. tomoshi_extract — extraction resource

// single page → markdown (smart is default: static Colly first, fallback to Chromedp)
{ action: "scrape", url: "https://example.com", mode: "smart" }

// sync multi (≤10, no Redis, errgroup 5)
{ action: "scrape_multi", urls: ["https://a.com", "https://b.com"], mode: "smart" }

// links only
{ action: "links", url: "https://example.com" }

// async batch (≤20, Redis) → poll
{ action: "batch", urls: ["https://a.com", "..."] }  // → { id }
{ action: "batch_status", id: "<batch-id>" }

// common scrape options (all actions that scrape)
{
  mode: "smart" | "static" | "dynamic", // static=Colly, dynamic=Chromedp, smart=auto
  screenshot: true, screenshot_opts: { full_page: true, format: "jpeg", quality: 80, scale: "css" | "device" },
  images: true, image_format: "url" | "blob", max_images: 10,
  extract_schema: { title: { selector: "h1" }, price: { selector: ".price" } },
  auto_extract: true,   // default: harvest embedded payloads → extracted_data
  summary: true, summary_sentences: 5,
  redact_pii: true, block_ads: true,
  // action types: wait_ms · wait_selector · click · scroll_down · scroll_to_bottom · wait_for_function · evaluate
  actions: [
    { type: "wait_selector", selector: "#app" }, { type: "scroll_to_bottom" },
    { type: "wait_for_function", script: "() => !!window.__DATA__", ms: 5000 },
    { type: "evaluate", script: "() => JSON.stringify(window.__CHART_DATA__ ?? null)" }
  ]
}

Images. images: true extracts page images, quality-ranked og:image > hero > content > avatar.

  • image_format: "url" (default): metadata only, {url, source, width, height, alt}.
  • image_format: "blob": also inlines the bytes as a base64 data: URI, {blob, format, size_bytes}. This grows the response by roughly the image size x1.33, so prefer url unless you need the bytes.
  • Caps: max_images (default 10) limits the count; max_image_size_kb (default 5120) caps each fetch. image_process: { format: "jpeg"|"png", max_width, quality } resizes or re-encodes blobs after the fetch.
  • An image whose host blocks the fetch comes back with url only (no blob); the scrape still succeeds.

2. tomoshi_discover — discovery resource

// search (native roster → SearXNG → stealth → Brave; keyed brave/serper/tavily)
{ action: "search", query: "svelte 5 runes", limit: 10, offset: 0, category: "general" | "news" | "code", maxAge: 1|7|30, includeDomains: ["svelte.dev"], excludeDomains: ["spam.com"] }

// map (sitemap discovery)
{ action: "map", url: "https://example.com", search: "/docs", limit: 100 }

// async crawl (BFS, Redis) → poll
{ action: "crawl", url: "https://example.com", mode: "smart", maxDepth: 2, limit: 10, include_paths: ["/blog/*"], exclude_paths: ["/admin/*"] } // → { id }
{ action: "crawl_status", id: "<crawl-id>" }

3. tomoshi_monitor — change tracking (Redis)

{ action: "create", url: "https://example.com/pricing", interval_seconds: 3600, webhook_url: "https://my.app/hook", webhook_secret: "hmac-key" } // → { id }
{ action: "status", id: "<monitor-id>" }
{ action: "delete", id: "<monitor-id>" }

Workflows

Research → scrape (most common)

tomoshi_discover { action: "search", query: "svelte 5 runes", limit: 5 }
→ tomoshi_extract { action: "scrape_multi", urls: [top 3 urls] }
→ markdown ready for LLM

Crawl a docs site

tomoshi_discover { action: "map", url: "https://example.com", search: "/docs" }
→ tomoshi_discover { action: "crawl", url: "https://example.com", include_paths: ["/docs/*"], limit: 20 }
→ poll tomoshi_discover { action: "crawl_status", id }

Watch for changes

tomoshi_monitor { action: "create", url: "https://example.com/changelog", interval_seconds: 3600 }
→ tomoshi_monitor { action: "status", id }

Constraints

  • MUST use action enum — there are only 3 tools. Do not invent cinder_* or firecrawl_* names.
  • MUST poll *_status for async jobs; they return { id } immediately.
  • MUST respect limits: scrape_multi ≤10, batch ≤20, map ≤5000, crawl limit ≤100, depth ≤10.
  • MUST respect limits: actions ≤ 50/request; extracted_data ≤ 512 KB (8 sources × 128 KB); evaluate results ≤ 256 KB.
  • MUST handle Redis-optional degradation: without Redis, crawl/batch/monitor return 503 — fall back to scrape/scrape_multi/map/search.
  • MUST NOT hardcode TOMOSHI_API_URL — read from env/mcp config.

References

  • API: http://localhost:7431 — all endpoints under /v1 (/scrape, /search, /map, /crawl, /batch, /monitor)
  • Docs: packages/mcp/README.md, docs/guides/API_REFERENCE.md
  • Swagger (debug mode): http://localhost:7431/swagger/index.html

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.