+
Agent skill + Wayfern
Some agents do not speak MCP, and some runs have no browser for a sign-in. Most of them can run curl.
The Wayfern skill is one SKILL.md file. It tells the agent which REST endpoint to call for a search, a page, a crawl or a screenshot, and to read the token from WAYFERN_API_TOKEN.
$ curl -fsSL https://wayfern.com/skills/wayfern/SKILL.md \
-o ~/.agents/skills/wayfern/SKILL.md
SKILL.md saved · 4.6 kB
> Scrape example.com with the Wayfern skill. Give me the title.
Read~/.agents/skills/wayfern/SKILL.md
name: wayfern · POST /api/v1/scrape · 1 credit
Runcurl -sS https://api.wayfern.com/api/v1/scrape \
-H "Authorization: Bearer $WAYFERN_API_TOKEN" \
-d '{"url": "https://example.com", "formats": ["markdown"]}'
{"success": true,
"data": {"markdown": "# Example Domain\n\nThis domain is…",
"metadata": {"title": "Example Domain"}},
"credits": 1}
The title is “Example Domain”. 1 credit spent.
Setup
The skill works in any agent that loads SKILL.md folders. Other agents can read the file as instructions.
Claude Code loads skills from ~/.claude/skills. Cursor and Grok Build read this folder too.
bash
mkdir -p ~/.claude/skills/wayfern
curl -fsSL https://wayfern.com/skills/wayfern/SKILL.md -o ~/.claude/skills/wayfern/SKILL.mdCodex, Cursor, VS Code, Gemini CLI and Kimi Code read ~/.agents/skills. For one repo, use .agents/skills.
bash
mkdir -p ~/.agents/skills/wayfern
curl -fsSL https://wayfern.com/skills/wayfern/SKILL.md -o ~/.agents/skills/wayfern/SKILL.mdCreate a token on the Tokens page. Put it in the agent's environment, not in the skill file.
bash
export WAYFERN_API_TOKEN=wf_...prompt
Use the Wayfern skill to scrape https://example.com and give me the title.The skill teaches calls like this one. A script can run it as it is.
bash
curl -X POST https://api.wayfern.com/api/v1/scrape \
-H "Authorization: Bearer $WAYFERN_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "formats": ["markdown"]}'Hermes Agent: hermes skills install with the SKILL.md URL. OpenClaw: ~/.openclaw/skills. Grok Build: ~/.grok/skills. VS Code: ~/.copilot/skills.
Route
The skill needs a shell, curl and a token. There is no MCP session to keep and no sign-in window.
WAYFERN_API_TOKEN set.Example tasks
01
“Use the Wayfern skill to read the setup page of our main dependency's docs and list the steps.”
POST /api/v1/scrape costs 1 credit a page.
02
“Search Google for this error message with the skill and list the top five results.”
POST /api/search/v1 bills 2 credits for each provider page.
03
“Start a crawl of docs.example.com, 50 pages at most. Poll it until it is done and save the pages as markdown.”
POST /api/v1/crawl bills 1 credit for each page. GET /api/v1/crawl/:id reads the status.
04
“Capture https://example.com as a full page and save the image to shots/home.png.”
POST /api/v1/screenshot costs 5 credits a capture.
Tools
The same tools on every route, at the REST API rates. Every result reports credits_charged.
web and search scopes. New tokens have all four scopes by default.api.wayfern.com for curl to work.Sign in once and the tools appear. Tool calls use the credits of your Wayfern plan, at the same rates as the API.