Claude Code
Use the BeeL. plugin for Claude Code to implement, audit, and maintain BeeL. API integrations with AI assistance.
The BeeL. plugin for Claude Code is a toolkit for working with the BeeL. API: an always-current integration guide plus dedicated skills to implement an integration, audit it for compliance, build webhook receivers, work with several NIFs, apply the fiscal rules, and detect drift against the live API. It also connects the hosted MCP server, so Claude can act on your BeeL. account from the same session.
The plugin keeps only stable invariants locally (auth, idempotency, response envelope, invoice lifecycle). Everything else — endpoints, schemas, events — Claude fetches from these docs at the moment of use, so the plugin never goes stale.
Before you start
- Claude Code installed
- A BeeL. API key — get one at Settings > API Keys
Installation
Open Claude Code in your project and run:
/plugin marketplace add beel-es/claude-plugins
/plugin install beel-api@beelThat's it. The plugin installs automatically and updates whenever a new version is published.
Skills
Claude Code activates the right skill automatically based on what you ask — no manual invocation needed. You can also invoke them explicitly:
| Skill | What it does |
|---|---|
/beel-api:beel-api | Integration guide: golden rules, auth, doc lookup, plus recipes (typed client / official SDK, webhook handler, invoice flow, fiscal context, debugging, CLI) |
/beel-api:implement | Guided integration: detects your stack, sets up the official SDK or a typed client, and implements the flows you need against the live spec |
/beel-api:audit | Audits your integration code against the BeeL. rules — idempotency, key security, error handling, rate limits, webhook verification, invoice lifecycle — and reports findings with severity and ready-to-apply fixes |
/beel-api:webhooks | Builds a correct webhook receiver: signature verification, raw-body handling, deduplication, retry-aware processing |
/beel-api:multi-nif | Integrates the multi-NIF model: one account holding several companies, addressing a company per request, members and grants, and managed accounts |
/beel-api:rules | The fiscal rules an integration must respect — VeriFactu, numbering, corrective and simplified invoices, dates, taxes, QR — cited by id, looked up by id, domain or error code, and ready to add to your repository's AGENTS.md or CLAUDE.md. See Use the rules in your tools |
/beel-api:upgrade | Checks your integration against the live OpenAPI spec and SDK releases: breaking changes, deprecated patterns, new features worth adopting |
Example prompts
Add BeeL invoice creation to my existing Express checkout webhookAudit my BeeL integration — is it production-safe?Implement a webhook receiver for invoice.issued eventsIs my BeeL integration up to date with the current API?List all ISSUED invoices from the last 30 days and export them to ExcelVerifying against the sandbox
The skills use the BeeL. CLI to run real API calls when verifying a flow — sandbox by default, production only with an explicit --live:
npx @beel_es/cli invoices create --data @invoice.json
npx @beel_es/cli invoices get <invoice_id>With a beel_sk_test_ key in BEEL_API_KEY, Claude can create test invoices, trigger webhook events, and confirm your integration works end to end — without writing throwaway scripts.
Machine-readable docs
Claude fetches these URLs directly during a session to get the latest spec or docs:
| URL | Contents |
|---|---|
/llms.txt | Index of all documentation pages |
/llms-full.txt | All docs in a single file |
/api/openapi | Full OpenAPI spec (YAML) |
Related
Tools & prompts
The tools the BeeL. MCP server exposes and what they do not cover yet, the guided workflow prompts, and the inline invoice PDF viewer.
AI agents
How to build a BeeL. integration with an AI agent — the official SDK, the MCP server, the Claude Code plugin, the Markdown docs and llms.txt, the fiscal rules as data, and an AGENTS.md block to paste into your repository.