Recipes
Prompt on the left. Code on the right. Sometimes the code is shorter.
Basics
Prompt
"Write a function that adds two numbers and returns the result. Use https://nerd-lang.org/llms.txt for syntax."
add.nerd
fn add a b
ret a plus b
Tools
Prompt
"List all available tools from the Cloudflare MCP server. Use https://nerd-lang.org/llms.txt for syntax."
tools.nerd
mcp tools "https://docs.mcp.cloudflare.com/mcp"
Agents
Prompt
"Ask Claude what Cloudflare Workers is in one sentence. Use https://nerd-lang.org/llms.txt for syntax."
agent.nerd
llm claude "What is Cloudflare Workers? One sentence."
HTTP
Prompt
"Make an authenticated GET request with a Bearer token. Use https://nerd-lang.org/llms.txt for syntax."
auth.nerd
http get "https://api.example.com/data" auth bearer "token123"
JSON
Prompt
"Fetch a GitHub user and print their follower count. Use https://nerd-lang.org/llms.txt for syntax."
github.nerd
let user http get "https://api.github.com/users/octocat"
out user."followers"