Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.
JavaScript agent-skillsai-agentsai-seoclaudeclaude-codeclaude-code-pluginclaude-skillscodexcontent-marketingconversion-rate-optimizationcopywritingcursoremail-marketinggenerative-engine-optimizationgrowth-marketingmarketingmarketing-automationsaas-marketingseoskill-md
Add Firecrawl CLI and refresh integration docs
rak-fce6e03f9610a
diff --git a/tools/REGISTRY.md b/tools/REGISTRY.mdindex 7f84be5..8be8d72 100644--- a/tools/REGISTRY.md+++ b/tools/REGISTRY.md@@ -64,7 +64,7 @@ Quick reference for AI agents to discover tool capabilities and integration meth| snov | Email Outreach | ✓ | - | [✓](clis/snov.js) | - | [snov.md](integrations/snov.md) || truelist | Email Verification | ✓ | ✓ | - | ✓ | [truelist.md](integrations/truelist.md) || github | Developer Intent | ✓ | - | [✓](clis/github-prospects.js) | ✓ | [github.md](integrations/github.md) |-| firecrawl | Site Scraping | ✓ | ✓ | - | ✓ | [firecrawl.md](integrations/firecrawl.md) |+| firecrawl | Site Scraping | ✓ | ✓ | [✓](clis/firecrawl.js) | ✓ | [firecrawl.md](integrations/firecrawl.md) || browserbase | Site Scraping | ✓ | ✓ | - | ✓ | [browserbase.md](integrations/browserbase.md) || lemlist | Email Outreach | ✓ | - | [✓](clis/lemlist.js) | - | [lemlist.md](integrations/lemlist.md) || instantly | Email Outreach | ✓ | - | [✓](clis/instantly.js) | - | [instantly.md](integrations/instantly.md) |diff --git a/tools/clis/README.md b/tools/clis/README.mdindex 57f524f..74a0a64 100644--- a/tools/clis/README.md+++ b/tools/clis/README.md@@ -51,6 +51,7 @@ Every CLI reads credentials from environment variables:| `demio` | `DEMIO_API_KEY`, `DEMIO_API_SECRET` || `dub` | `DUB_API_KEY` || `exa` | `EXA_API_KEY` |+| `firecrawl` | `FIRECRAWL_API_KEY` || `g2` | `G2_API_TOKEN` || `ga4` | `GA4_ACCESS_TOKEN` || `google-ads` | `GOOGLE_ADS_TOKEN`, `GOOGLE_ADS_DEVELOPER_TOKEN`, `GOOGLE_ADS_CUSTOMER_ID` |@@ -150,6 +151,7 @@ DOMAINS=$(rewardful affiliates list | jq -r '.data[].email')| `demio.js` | Webinar | [Demio](https://demio.com) || `dub.js` | Links | [Dub.co](https://dub.co) || `exa.js` | AI Search | [Exa](https://exa.ai) |+| `firecrawl.js` | Site Scraping | [Firecrawl](https://firecrawl.dev) || `g2.js` | Reviews | [G2](https://g2.com) || `ga4.js` | Analytics | [Google Analytics 4](https://analytics.google.com) || `google-ads.js` | Ads | [Google Ads](https://ads.google.com) |diff --git a/tools/clis/firecrawl.js b/tools/clis/firecrawl.jsnew file mode 100755index 0000000..fcc9e03--- /dev/null+++ b/tools/clis/firecrawl.js@@ -0,0 +1,138 @@+#!/usr/bin/env node++const API_KEY = process.env.FIRECRAWL_API_KEY+const BASE_URL = 'https://api.firecrawl.dev'++if (!API_KEY) {+ console.error(JSON.stringify({ error: 'FIRECRAWL_API_KEY environment variable required' }))+ process.exit(1)+}++async function api(method, path, body) {+ if (args['dry-run']) {+ return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { Authorization: 'Bearer ***', 'Content-Type': 'application/json' }, body: body || undefined }+ }+ const res = await fetch(`${BASE_URL}${path}`, {+ method,+ headers: {+ Authorization: `Bearer ${API_KEY}`,+ 'Content-Type': 'application/json',+ },+ body: body ? JSON.stringify(body) : undefined,+ })+ const text = await res.text()+ try {+ return JSON.parse(text)+ } catch {+ return { status: res.status, body: text }+ }+}++function parseArgs(args) {+ const result = { _: [] }+ for (let i = 0; i < args.length; i++) {+ const arg = args[i]+ if (arg.startsWith('--')) {+ const key = arg.slice(2)+ const next = args[i + 1]+ if (next && !next.startsWith('--')) {+ result[key] = next+ i+++ } else {+ result[key] = true+ }+ } else {+ result._.push(arg)+ }+ }+ return result+}++function list(val) {+ return val.split(',').map(s => s.trim()).filter(Boolean)+}++const args = parseArgs(process.argv.slice(2))+const [cmd, ...rest] = args._++async function main() {+ let result++ switch (cmd) {+ case 'scrape': {+ const url = args.url || rest[0]+ if (!url) { result = { error: '--url required' }; break }+ const body = { url }+ body.formats = args.formats ? list(args.formats) : ['markdown']+ // API defaults onlyMainContent to true; --full-page keeps nav/boilerplate.+ if (args['full-page']) body.onlyMainContent = false+ if (args.wait) body.waitFor = Number(args.wait)+ result = await api('POST', '/v2/scrape', body)+ break+ }++ case 'search': {+ const query = args.query || rest.join(' ')+ if (!query) { result = { error: '--query required' }; break }+ const body = { query }+ if (args.limit) body.limit = Number(args.limit)+ if (args.sources) body.sources = list(args.sources).map(type => ({ type }))+ if (args.tbs) body.tbs = args.tbs+ // --scrape pulls page content for each result (billed separately).+ if (args.scrape) body.scrapeOptions = { formats: args.formats ? list(args.formats) : ['markdown'] }+ result = await api('POST', '/v2/search', body)+ break+ }++ case 'map': {+ const url = args.url || rest[0]+ if (!url) { result = { error: '--url required' }; break }+ const body = { url }+ if (args.limit) body.limit = Number(args.limit)+ if (args.search) body.search = args.search+ if (args['include-subdomains']) body.includeSubdomains = true+ result = await api('POST', '/v2/map', body)+ break+ }++ case 'crawl': {+ const url = args.url || rest[0]+ if (!url) { result = { error: '--url required' }; break }+ const body = { url }+ if (args.limit) body.limit = Number(args.limit)+ if (args['max-depth']) body.maxDiscoveryDepth = Number(args['max-depth'])+ if (args['include-paths']) body.includePaths = list(args['include-paths'])+ if (args['exclude-paths']) body.excludePaths = list(args['exclude-paths'])+ body.scrapeOptions = { formats: args.formats ? list(args.formats) : ['markdown'] }+ result = await api('POST', '/v2/crawl', body)+ break+ }++ case 'crawl-status': {+ const id = args.id || rest[0]+ if (!id) { result = { error: '--id required' }; break }+ result = await api('GET', `/v2/crawl/${id}`)+ break+ }++ default:+ result = {+ error: 'Unknown command',+ usage: {+ scrape: 'scrape --url <url> [--formats markdown,html,links,summary] [--full-page] [--wait <ms>]',+ search: 'search --query <q> [--limit <n>] [--sources web,news,images] [--tbs qdr:d|qdr:w|qdr:m] [--scrape] [--formats markdown,html]',+ map: 'map --url <url> [--limit <n>] [--search <term>] [--include-subdomains]',+ crawl: 'crawl --url <url> [--limit <n>] [--max-depth <n>] [--include-paths /blog,/docs] [--exclude-paths /tag] [--formats markdown,html]',+ 'crawl-status': 'crawl-status --id <crawlId>',+ options: '--dry-run (preview request without sending)',+ }+ }+ }++ console.log(JSON.stringify(result, null, 2))+}++main().catch(err => {+ console.error(JSON.stringify({ error: err.message }))+ process.exit(1)+})diff --git a/tools/integrations/firecrawl.md b/tools/integrations/firecrawl.mdindex ebcc44b..4448764 100644--- a/tools/integrations/firecrawl.md+++ b/tools/integrations/firecrawl.md@@ -8,9 +8,11 @@ Web scraping API that turns single pages or full sites into clean LLM-ready mark|-------------|-----------|-------|| API | ✓ | REST API + Python/Node SDKs || MCP | ✓ | Official Firecrawl MCP server |-| CLI | - | None official |+| CLI | ✓ | [firecrawl.js](../clis/firecrawl.js) || SDK | ✓ | Node, Python, Go, Rust |+Full API reference: https://docs.firecrawl.dev+## Authentication- **Type**: API Key@@ -24,7 +26,7 @@ Web scraping API that turns single pages or full sites into clean LLM-ready mark### Scrape a single page```bash-POST https://api.firecrawl.dev/v1/scrape+POST https://api.firecrawl.dev/v2/scrapeAuthorization: Bearer fc-YOUR_API_KEY{@@ -38,7 +40,7 @@ Returns the page as clean markdown (LLM-ready, no nav cruft) plus optional raw H### Map a site (discover all URLs)```bash-POST https://api.firecrawl.dev/v1/map+POST https://api.firecrawl.dev/v2/map{"url": "https://example.com",@@ -51,7 +53,7 @@ Returns a list of URLs found on the site. Use this to identify key pages (`/pric### Crawl multiple pages```bash-POST https://api.firecrawl.dev/v1/crawl+POST https://api.firecrawl.dev/v2/crawl{"url": "https://example.com",@@ -67,7 +69,7 @@ Crawls multiple pages from a single site. **Use sparingly** — costs scale with### Extract structured data```bash-POST https://api.firecrawl.dev/v1/extract+POST https://api.firecrawl.dev/v2/extract{"urls": ["https://joescoffeeshop.com"],@@ -85,7 +87,7 @@ Returns data matching the schema — useful when you want consistent fields acro### Search the web```bash-POST https://api.firecrawl.dev/v1/search+POST https://api.firecrawl.dev/v2/search{"query": "\"Joe's Coffee Shop\" Boulder Colorado",@@ -93,7 +95,7 @@ POST https://api.firecrawl.dev/v1/search}```-Web search + scrape of top results. Useful for cross-source verification (find a business's official site when you only have a name + location).+Web search useful for cross-source verification (find a business's official site when you only have a name + location). v2 groups results by source under `data.web` / `data.news` / `data.images`; add `scrapeOptions` to also pull page content for each result (billed separately).## MCP Tools (when used via MCP server)@@ -105,6 +107,25 @@ Web search + scrape of top results. Useful for cross-source verification (find a| `firecrawl_extract` | Schema-driven structured data || `firecrawl_search` | Web search + scrape |+## CLI++A zero-dependency Node CLI ships in [`tools/clis/firecrawl.js`](../clis/firecrawl.js). Set `FIRECRAWL_API_KEY` and run any of `scrape`, `search`, `map`, `crawl`, or `crawl-status`. Output is JSON on stdout (pipe to `jq`); add `--dry-run` to preview a request without sending it.++```bash+# Scrape a single business site to markdown+node tools/clis/firecrawl.js scrape --url https://joescoffeeshop.com++# Find a business's official site+node tools/clis/firecrawl.js search "\"Joe's Coffee Shop\" Boulder Colorado" --limit 5++# Discover a site's key pages before scraping+node tools/clis/firecrawl.js map --url https://example.com --search pricing++# Crawl a section, then poll the async job+node tools/clis/firecrawl.js crawl --url https://example.com --limit 20 --include-paths /pricing,/about+node tools/clis/firecrawl.js crawl-status --id <crawlId>+```+## When to Use- **Local SMB prospecting**: verify a business's website status (live, weak, missing) at the URL level after manual Maps/Yelp discovery