Skip to content
🌐Network: Mainnet

Skills

The o2 skills file tells AI code assistants how to build trading integrations on o2. It provides the step-by-step workflow, order type decision guide, key rules, and common bot patterns, and cross-references the full API reference for implementation details.

Download

Download both files and follow the setup instructions below. The skills file provides the workflow and patterns. It references specific sections of the API reference for signing byte layouts, endpoint details, and code examples.

o2-skills.mdWorkflow, decision guide, patterns
o2-reference.mdSigning bytes, endpoint catalog, error codes, code examples
Download

How the Two Files Work Together

DocumentPurposeContent
Skills file (o2-skills.md)Tells the AI agent what to doWorkflow steps, decision logic, patterns, gotchas
API Reference (o2-reference.md)Tells the AI agent how to do itSigning byte layouts, endpoint catalog, error codes, ABI encoding, Python/TypeScript code examples

The skills file is concise (~150 lines) and procedural. It walks the agent through the integration workflow and points to specific sections of the API reference for implementation details like signing byte construction, payload formats, and code examples. When the agent encounters a reference like "See Reference Section 4.6", it looks up that section in o2-reference.md.

Setup

Claude Code

Create a .claude/rules/ directory in your project root and place both files there. Claude Code auto-loads all .md files from this directory at the start of every conversation.

bash
mkdir -p .claude/rules
# Copy or move the downloaded files into .claude/rules/
cp o2-skills.md o2-reference.md .claude/rules/

If you already have a CLAUDE.md file, you can import the files instead using @ references:

markdown
@.claude/rules/o2-skills.md
@.claude/rules/o2-reference.md

Other AI Tools

For Cursor, Copilot, and other AI assistants, refer to each tool's documentation for how to load custom context files. Placing both files in your project root is a reasonable default for tools that scan the working directory.