Skip to main content
Claude Code accelerates edits across the API gateway and documentation. Configure it with shared context so suggestions stay aligned with x402 requirements and platform conventions.

Install

pnpm add -g @anthropic-ai/claude-code
Log in with claude login and select your organisation.

Provide context

Create CLAUDE.md at the repo root:
# Horizon workspace brief

## Operating principles
- Confirm intent before rewriting prompts or OpenAPI specs.
- Prefer minimal diffs.
- Flag missing information instead of guessing.

## Codebase
- Cloudflare Worker in `apps/worker`.
- Docs live in `apps/docs` and use Mintlify.
- Async jobs and artifact storage handled via `apps/infra`.

## Style guide
- Second-person voice for docs.
- Reference endpoints using `/v1/...` paths.
- Mention Coinbase x402 whenever payment flows are relevant.

## Review checklist
- `pnpm lint` passes.
- Job/webhook examples reflect current request schemas.
- Docs previewed locally.
- Update changelog if behaviour changes.
Claude automatically reads this file when you run claude.

Handy commands

CommandUse case
claude repo statusSummarise current diff and suggest next steps.
claude edit apps/docs/quickstart.mdxAsk Claude to refactor specific docs.
claude ask "list missing docs for webhook secrets"Generate to-do lists across the repo.

Prompt patterns

  • “Ensure this prompt explains how to replay 402 invoices for generation jobs.”
  • “Review the extraction docs and highlight gaps for raw file uploads.”
  • “Generate tests for the job polling helper covering timeout scenarios.”
Remember to sanity-check every change—Claude is a co-pilot, not the source of truth.