Skip to main content

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.

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

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:
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 (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.

What’s next?

Recipes

Copy-paste examples Claude can also drive — invoices, resumes, contracts, more

API reference

Every endpoint Claude calls, with request/response schemas

TypeScript SDK

The fluent layer Claude prefers for TS projects

Python SDK

The fluent layer Claude prefers for Python projects