Skip to main content
Cursor’s AI pair-programmer is great for iterating on prompt templates, x402 integrations, and platform documentation. Configure it once so teammates get consistent completions.

Repository rules

# Horizon author guidelines

You are helping maintain the Horizon platform. Optimise for accurate, production-ready changes.

## Style
- Prefer present tense and active voice.
- Explain *why* before *how*.
- Keep sentences short and scannable.

## APIs
- Validate request/response schemas against `api-reference/openapi.json`.
- Reference endpoints using `/v1/...` paths.
- Highlight Coinbase x402 handling (402 responses, replay steps) when relevant.

## Docs
- Use Markdown headings with sentence case.
- Highlight CLI commands using fenced code blocks.
- Provide verification steps for every procedure.
Store this file at .cursor/rules.md so it is automatically loaded.

Suggested prompts

  • Refine a prompt template
    “Rewrite prompts/welcome.md to emphasise consent tracking and stay under 120 words.”
  • Surface missing webhook docs
    “Review api-reference/endpoint/webhooks.mdx and list gaps for webhook secret rotation.”
  • Draft extraction examples
    “Add a multipart upload example with a Base64 file snippet to api-reference/endpoint/extract-video.mdx.”

Inline snippets

Define common snippets under .cursor/snippets to accelerate reviews:
{
  "jobChecklist": [
    "402 replay path documented",
    "webhook signature verified",
    "statusUrl referenced",
    "metadata examples included"
  ]
}
Paste jobChecklist into PR reviews to ensure nothing is missed.