> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyformat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Coding assistant

> Let Claude Code build and run anyformat workflows from your editor.

The **anyformat Claude Code skill** is a published npm package (`@anyformat/skill`) that teaches Claude — or any compatible AI coding agent — the anyformat workflow API. Once installed, you can ask Claude to build typed-graph workflows, run documents, and read structured results without context-switching out of your editor.

## Install

```bash theme={null}
npx @anyformat/skill            # global — installs to ~/.claude/skills/anyformat
npx @anyformat/skill --project  # project-local — installs to ./.claude/skills/anyformat
```

Set your API key in the environment and restart Claude Code so it picks up the new skill:

```bash theme={null}
export ANYFORMAT_API_KEY="af_..."
```

That's it — the next time you launch Claude Code, it has the skill loaded.

## What Claude can do once installed

* Build **linear parse → extract** workflows for a specific document type.
* Build **branched** workflows: classify-then-extract, splitter-then-extract.
* Run a document through an existing workflow and **poll for results** (412 → 200) with the right backoff.
* Read structured output — per-field confidence, evidence, the deprecated `extraction` vs. the new `extractions[]` array.
* Use **agentic parse mode** for documents with mixed tables / figures.
* Avoid the common gotchas: rate-limited submission tier, 412 polling, `extra_forbidden` errors when an unknown node-config key sneaks in.

## Example prompts

Concrete asks you can paste into Claude Code:

> **"Extract invoice number, total, and issue date from invoice.pdf using anyformat."**

> **"Parse contract.pdf to markdown with agentic mode using anyformat, then save the markdown to contract.md."**

> **"Build an anyformat workflow that classifies documents as invoice or receipt and extracts the right fields for each. Wire it up so I can pipe new files into it from the command line."**

> **"Set up an anyformat webhook that posts to my Express server, then run sample.pdf — show me the verification handler."**

Claude has the [SDKs](/api-reference/sdks/overview) (TypeScript and Python) available too, so it can choose the shape that fits your project — fluent builder in TS, fluent builder in Python, or raw HTTP via curl.

## How it works under the hood

The skill is a single SKILL.md plus reference docs that load into Claude Code's context when it detects an anyformat-related task. It drives the public workflow API directly — anything Claude does with the skill is reproducible with plain HTTP calls or either SDK.

If you want to inspect or hack on the skill itself, the source lives at [`@anyformat/skill` on npm](https://www.npmjs.com/package/@anyformat/skill).

## What's next?

<CardGroup cols={2}>
  <Card title="Recipes" icon="book-open" href="/guides/recipes/index">
    Copy-paste examples Claude can also drive — invoices, resumes, contracts, more
  </Card>

  <Card title="API reference" icon="code" href="/api-reference/introduction">
    Every endpoint Claude calls, with request/response schemas
  </Card>

  <Card title="TypeScript SDK" icon="js" iconType="brands" href="/api-reference/sdks/typescript">
    The fluent layer Claude prefers for TS projects
  </Card>

  <Card title="Python SDK" icon="python" iconType="brands" href="/api-reference/sdks/python">
    The fluent layer Claude prefers for Python projects
  </Card>
</CardGroup>
