# One file that teaches your agent the house rules.

> Dizo publishes skill.md, a SKILL.md-format file that tells an agent how to call the API: check its budget, quote first, cap spend and report credits used.

skill.md is a plain Markdown skill served at dizo.ai/skill.md. Drop it into any agent that loads skills and it learns which endpoint to call, what each one costs and when to stop and ask you.

## Highlights
- **SKILL.md format.** Frontmatter with a `name` and a `description` that tells the agent when to load it: prospecting, lead lists, email or phone lookups, enrichment, market sizing and job changes.
- **Budget first.** The skill opens with `GET /v1/me` and a free `POST /v1/count`, so the agent knows its caps and the size of the job before it spends a credit.
- **Quote, then ask.** Anything that may exceed ~100 credits goes out with `"dry_run": true` first. The agent tells you the quote and waits for a yes.
- **Every data endpoint, priced.** A task-to-endpoint table lists each call with its credit cost, built from the same source as the API reference.
- **Hard ceilings on every call.** The rules tell the agent to send `max_credits` on every request and an `Idempotency-Key` on every POST.
- **Billing stays human.** The skill forbids billing write calls without **explicit human approval** and tells the agent never to print a key.

## Steps
1. **Fetch the file** — Download `https://dizo.ai/skill.md`. It is plain Markdown, served as text.
2. **Install it** — Save it where your agent loads skills, for example a `dizo/SKILL.md` folder. Check your agent's docs for the exact path.
3. **Give it a scoped key** — Set `DIZO_API_KEY` to a key with `data:read`, a per-request cap and daily and monthly caps.
4. **Ask for a task** — The agent calls `/v1/me`, sizes the job, quotes it, runs it and reports `credits_used` when done.

## APIs used
| API | Endpoint | Credits | Charged | Reference |
|---|---|---|---|---|
| Key info | `GET /v1/me` | Free | Never | [docs](https://dizo.ai/docs/me.md) |
| Count (TAM) | `POST /v1/count` | Free | Never | [docs](https://dizo.ai/docs/count.md) |
| Natural-language search | `POST /v1/search` | 1 credit / 25 results | Per result returned | [docs](https://dizo.ai/docs/search.md) |
| Email finder | `POST /v1/email/find` | 1 credit | Only if found | [docs](https://dizo.ai/docs/email-find.md) |
| Data feedback | `POST /v1/feedback` | Free (refunds credits) | Never | [docs](https://dizo.ai/docs/feedback.md) |
| Balance & usage | `GET /v1/billing` | Free | Never | [docs](https://dizo.ai/docs/billing.md) |


## What the skill file is

Dizo serves a single Markdown file at `https://dizo.ai/skill.md`. It follows the SKILL.md convention that several agent tools use: a short YAML frontmatter block with a `name` and a `description`, followed by plain instructions. The frontmatter is what the agent reads to decide whether the skill is relevant. The body is what it reads once it has decided to use it.

The description is written as a trigger list. It tells the agent to load the skill when the user asks to prospect, build a lead list, find someone's email or phone, enrich a CRM record, size a market or watch for job changes. Anything outside that list, such as writing a cold email or summarising a call, does not pull Dizo into the conversation. That keeps the agent from reaching for a paid API when the task does not need data.

The file is generated from the same endpoint definitions that drive the API reference, so the endpoint table and the credit costs it lists match what the API actually charges.

## The problem: a key with no instructions

Hand a capable agent an API key and a vague request like "find me some fintech sales leaders" and it will improvise. It might page through a search one result at a time, call an enrichment endpoint for every row when a cheaper lookup would do, retry a failed POST without an idempotency key and pay twice, or keep going long after the job stopped being worth the money. None of that is malicious. The agent simply does not know your pricing, your limits or your preferences.

Tool descriptions help, but they describe one call at a time. They do not tell an agent to size a job before running it, to ask before a large spend, or to report what it used afterwards. Those are workflow rules, and they belong somewhere the agent reads before it starts. That is the job the skill file does: it turns a list of endpoints into a procedure with a beginning, a middle and a report at the end.

## What is inside, section by section

The body is short on purpose. Agents load skills into a limited context window, and a long file crowds out the user's actual task. Every section exists to change a specific behaviour.

- **Connection:** the REST base URL, the `Authorization: Bearer $DIZO_API_KEY` header, and the MCP URL as an alternative. If no key is set, the agent is told to ask the user to sign up, and never to print a key.
- **Before you start:** call `GET /v1/me` for scopes, caps and remaining budget; call `POST /v1/count` to size the request for free; send anything that may exceed ~100 credits as a `dry_run`, tell the user the quote and wait for a yes.
- **Rules:** the same twelve agent rules Dizo publishes on its agent pages, including `max_credits` on every call, `Idempotency-Key` on every POST, branching on `error.code`, using batch above 50 lookups and reporting bad data through feedback.
- **Endpoints:** a task, call and cost table for every data endpoint. Billing and key-management endpoints are left out of the table, so the agent is not shown a menu of calls it should not make.
- **Report back:** after each task, tell the user how many results were found, the credits used from the `x-dizo-credits-used` header, and what was not found.

## Installing it

Installation is a file copy. Fetch `https://dizo.ai/skill.md` and save it where your agent looks for skills. Tools that support the SKILL.md convention usually expect one folder per skill containing a file named `SKILL.md`, so a folder called `dizo` with the file inside is the natural layout. The exact location differs between tools and between project-level and user-level installs, so check your agent's own docs rather than guessing.

If your framework has no skill loader, the file still works. Paste the body into the system prompt, or load it as a retrieved document when the user's request matches the description. Engineers building on an agent SDK often keep a copy in the repo and refresh it on deploy, which also gives them a diff whenever the published rules change.

Then set `DIZO_API_KEY` in the environment the agent runs in. During development, a `dz_test_` key returns synthetic data and spends nothing, which is the safest way to watch the skill steer the agent before any live credits are involved. [Sign up](/signup) for a live key if you do not have one yet.

## A worked session

Suppose a user asks: "Get me 300 VPs of Sales at US fintech companies with 200 to 1,000 employees, with work emails." With the skill loaded, the agent's first call is `GET /v1/me`. It learns that its key allows `/v1/search` and `/v1/email/find`, that `max_credits_per_request` is 500 and that it has 10,600 credits left this month. Next it sends the same description to `POST /v1/count`, which is free and returns the total, so the agent knows the segment is large enough before it spends anything.

The job is clearly over 100 credits, so the agent sends `POST /v1/search` with `"limit": 300`, `"include": ["email"]` and `"dry_run": true`. Search costs 1 credit per 25 results, so 300 results is 12 credits. If 240 of those people have a verified email, that adds 240 credits, for an expected 252. At the pay-as-you-go rate of $0.025 that is about $6.30; at the Growth rate of $0.017 it is about $4.28.

The agent reports the quote, waits for the user to approve, then runs the real call with `max_credits` set just above the quote. When it finishes, it reads `x-dizo-credits-used` and tells the user how many people came back, how many had emails, and what it spent. The 60 people without an email cost nothing beyond their share of the search.

## Skill, MCP server and llms.txt: how they fit together

Dizo gives agents three ways in, and they answer different questions. The [MCP server](/features/mcp-server) answers "what can I call?" It exposes every API as a tool, and each tool description carries its credit cost. The machine-readable docs, `llms.txt`, `llms-full.txt` and `openapi.json`, answer "how exactly does this call work?" with full parameters and response shapes. The skill answers "how should I behave?" with an order of operations and a set of rules.

In practice they stack. An agent connected over MCP still benefits from the skill, because MCP tool lists do not tell it to quote before a large job or to report spend afterwards. An agent calling REST directly benefits from the skill and from `llms-full.txt` when it needs a parameter the skill does not spell out. The skill links to both references so the agent can fetch more detail on demand rather than carrying it all in context. The [llms.txt glossary entry](/glossary/llms-txt) explains that format in more depth.

## Instructions are advice, caps are enforcement

A skill file shapes behaviour, but an agent can misread or ignore instructions, especially under a long or confusing conversation. Treat the skill as the first line of defence and the account settings as the one that actually holds. A key created for an agent should carry a per-request ceiling, daily and monthly credit caps and an endpoint allow-list. The account should have a monthly spend cap. Those limits are checked by the API on every call, whatever the agent was told.

MCP connections start conservative by default: `data:read` only and a 500-credit per-call limit unless you change them in the console. Billing write calls need a key with the `billing:write` scope, and the account owner can lock billing entirely. The skill tells the agent not to touch billing, and the [scoped API keys](/features/scoped-api-keys) make sure it cannot. Use both, and the worst case of a confused agent is a polite `402` instead of a surprise invoice.

## Limits and edge cases

The skill is a snapshot. Your copy reflects the file as it was when you downloaded it. If you install it by hand, refetch it occasionally, or automate the refresh, so new endpoints and rule changes reach your agent.

The ~100-credit threshold for asking first is a default written into the text. If your team wants a stricter or looser rule, edit your local copy; the API does not read the skill, so changing it has no effect on billing. Make the matching change in your key caps so the instruction and the enforcement agree.

The endpoint table covers data endpoints only. If you want an agent to read its balance, `GET /v1/billing` is still named in the rules, and `GET /v1/me` is in the start-up steps. Anything that changes money or keys is deliberately absent, which is the point.

## When you do not need it

If no agent is involved, skip the skill. A backend job that calls `POST /v1/email/find` from fixed code already follows whatever rules you wrote into it, and the [API reference](/docs/me) is the better document for that work. The same goes for one-off manual use in the playground or console, where you are the one reading the price before you click.

You can also skip it if your agent framework already gives you a tight, hand-written system prompt for Dizo that covers sizing, quoting, caps and reporting. In that case, compare your prompt against the published skill once, borrow anything you missed, and keep your own version.

## FAQ

### Where do I get the Dizo skill file?
It is served at `https://dizo.ai/skill.md` as plain Markdown. It is also linked from the developers page and the agent quickstart, alongside `llms.txt`, `llms-full.txt` and `openapi.json`.

### Which agents can load it?
Any agent that supports the SKILL.md convention can load it as a skill, and any other agent can use it as system-prompt text. Install paths differ between tools, so check your agent's docs for where skill folders go.

### Does the skill stop my agent from overspending?
It tells the agent to check its budget, quote large jobs with `dry_run` and cap every call with `max_credits`. Enforcement comes from per-key caps, the account monthly cap and scopes, which the API checks on every request. Set both.

### Do I need the skill if I use the MCP server?
It still helps. MCP tool descriptions tell the agent what each call costs, but not the order of operations: check `/v1/me`, size the job for free, quote it, ask, run it and report credits used. The skill supplies that procedure.

### Can I edit my copy?
Yes. It is a text file, and the API never reads it. Teams often tighten the ask-first threshold or add their own rules. Mirror any change in your key caps so the instruction and the limit match.

### Does using the skill cost anything?
No. The file is free to fetch, and the calls it tells the agent to make first, `GET /v1/me` and `POST /v1/count`, are free. Credits are only spent on the data calls themselves, at the normal rates.
