aomi-buildlisted
Install: claude install-skill aomi-labs/skills
# Aomi Build
## Overview
Aomi Build scaffolds production-ready Rust SDK crates for Aomi apps and plugins from
OpenAPI/Swagger specs, SDK docs, or product requirements. Generates `lib.rs`, `client.rs`,
`tool.rs` with typed tool schemas, host-interop flows, and validation steps.
## When to Use
- Scaffold a new Aomi app from an OpenAPI spec or REST API
- Wrap an existing SDK as agent-callable Aomi tools
- Extend an Aomi runtime with new protocol integrations
Do **not** use this skill for executing transactions — use **aomi-transact** for that.
## Prerequisites
- Rust toolchain (2024 edition) and `cargo` on PATH
- `git` on PATH
- Aomi SDK v0.1.15 or newer
- Local `aomi-apps` checkout at `../aomi-apps` (recommended)
## Quick Start
```bash
cd ../aomi-apps
cargo run -p xtask -- new-app my-integration
cargo run -p xtask -- build-aomi --app my-integration
```
## Instructions
1. Identify the integration target and its callable surface.
2. State the proposed toolset (3–8 intent-shaped tools) before coding.
3. Scaffold with `cargo run -p xtask -- new-app <name>`.
4. Implement `client.rs` (HTTP, auth, models), `tool.rs` (`DynAomiTool` impls), `lib.rs` (manifest + preamble).
5. For execution apps, return `ToolReturn::with_routes(...)` instead of bare JSON.
6. Build and validate: `cargo run -p xtask -- build-aomi --app <name>`.
## Examples
```bash
grep -r "dyn_aomi_app!" ../aomi-apps/apps/
cargo run -p xtask -- build-aomi --app binance
cargo test --manifest-path apps/my-integra