Skip to main content
The Bachs skill is a file of instructions that your AI coding assistant reads before it writes Bachs code: which docs to read, which mistakes to avoid, and how to test the result in the sandbox. Install it once per project, then describe what you want in your own words, and assistants such as Claude Code, Cursor, GitHub Copilot and Codex follow the Bachs rules on every task.
Don’t use skills? You don’t need them. The prompts carry the same guidance as copy-paste text for a single job, and you can paste the skill file at the start of any chat.

Install

Run the command for your tool from your project’s root folder.
Install the skill as a plugin, so you can update it later with one command:
Claude Code
Or save the file into your project instead:
Terminal
Your assistant loads the skill on its own when a task is about Bachs. You can also call it directly: /bachs:bachs when you installed the plugin, or /bachs when you saved the file.
On Windows, run the commands in PowerShell with curl.exe instead of curl. Any other assistant or chat: open the skill file, copy all of it, and paste it at the start of your conversation, before you describe your task.

What the skill does

Once the skill is installed, your assistant loads it whenever a task is about Bachs. It covers four jobs: For each job, the skill names the guide to read, the integration rules to follow, and the behaviour to test in the sandbox. Your assistant reads the current docs for API fields and does not invent endpoints, fields or events.

Try this prompt first

With the skill installed, a plain request is enough:
Example
For a first run, use the tested one-time payment prompt from the prompts page. It spells out what to build and what to test, so you can compare what your assistant did with the checks on that page.
Prompt
Keep your sandbox API key in your server’s environment. Never paste it into a chat.

Gotchas

The skill tells your assistant all of these. They are worth knowing yourself when you read the result.
  • Sandbox first. Every integration starts against https://sandbox-api.bachs.io with an sk_sandbox_ key. Production is https://api.bachs.io with an sk_live_ key, kept on the server in environment variables and never in client code or logs.
  • Money is a decimal string. Amounts go to the API as strings such as "12.00" with an ISO currency, never as numbers. Prices and product mappings are chosen or validated on the server, not taken from the client.
  • Webhooks are the source of truth. Orders are fulfilled and access is granted from verified webhook events, after the payment is matched to its order, amount and currency. A success redirect or a browser event is only a display signal.
  • Checkout redirects must be public, even in sandbox. For a fully local app, omit them and return to the app by hand after paying. The CLI still forwards webhooks to your machine.
  • Install the SDK from npm, version 1.0.0 or later. Version 0.0.1 of @bachs/sdk is an empty placeholder. Connect account context, seller onboarding and checkout split fields are not in the SDK yet, so the skill uses the documented API for marketplace work.

Update the skill

  • Claude Code plugin: run /plugin marketplace update bachs.
  • Saved file: run the install command again.
The changelog lists what changed in each version.

What the skill says

The skill is plain Markdown. This is the current version from the bachs-skills repository:
SKILL.md

Other ways to give your assistant the docs

  • Ask a question. The bar at the bottom of every docs page answers questions from the Bachs docs.
  • Copy page. The menu at the top of every page copies it as Markdown, or opens it in ChatGPT or Claude.
  • Markdown pages. Add .md to any docs URL to get the page as Markdown.
  • Docs index. llms.txt lists every page with a one-line summary. llms-full.txt has every page in one file.