---
agent:
  instructions: "Search crawlapi docs via GET /.well-known/search?q={query} (add &format=json or Accept: application/json for JSON)."
  endpoint: "https://docs.crawlapi.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.crawlapi.dev/llms.txt"
---

> Documentation index: https://docs.crawlapi.dev/llms.txt
> Search docs: https://docs.crawlapi.dev/.well-known/search?q={query}
> OpenAPI 3.1 specification: https://docs.crawlapi.dev/openapi.json

# Agent skill

> Install the crawlapi skill so your coding agent writes valid requests and handles errors.

Install the crawlapi skill so your coding agent knows the exact `POST /v1/scrape` fields, error codes, retry rules, and secret-handling practices. The skill is a static instruction file — it never calls the API or spends credits on its own. For live web-reading tools, connect the [MCP server](https://docs.crawlapi.dev/mcp.md).

## Install

Add the skill to your current repository so teammates and CI agents share the same rules:

**Shell**

```bash
# Project scope (recommended for teams)
npx skills add https://docs.crawlapi.dev --skill crawlapi

# All projects on this machine
npx skills add https://docs.crawlapi.dev --skill crawlapi --global
```

Pass the site URL (`https://docs.crawlapi.dev`), not the `/skill.md` file URL; the installer reads the site's skill index and links it into each detected agent directory. If you also use the `crawl` CLI, run `crawl skill install` to install the CLI skill alongside it (see [CLI](https://docs.crawlapi.dev/cli.md)).

## Manual install

The skill is published as plain markdown at `https://docs.crawlapi.dev/skill.md`. To inspect or pin it inside your repo, save it under `.agents/skills` (or `.claude/skills/crawlapi/SKILL.md` for Claude Code):

**Shell**

```bash
mkdir -p .agents/skills/crawlapi
curl -fsSL https://docs.crawlapi.dev/skill.md -o .agents/skills/crawlapi/SKILL.md
```

## Verify it loaded

Start a fresh session in your project and run this dry-run check:

**Dry-run check**

```text
Using the crawlapi skill, show the HTTPS request to scrape https://example.com as JSON. Do not run it.
```

With the skill active, your agent outputs `POST https://api.crawlapi.dev/v1/scrape`, `Authorization: Bearer $CRAWLAPI_API_KEY`, and `{"url": "https://example.com", "format": "json"}` with no invented fields. If it invents extra flags or uses `GET`, verify that the file is named `SKILL.md` in a directory your agent reads and that you started a fresh session.

## Update

Re-run `npx skills add https://docs.crawlapi.dev --skill crawlapi` whenever you want the latest version.
