Automate the creation of robust Phoenix JSON APIs including schemas, migrations, and tests using OpenAPI specs or natural language.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install phoenix-api-gen
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install phoenix-api-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Phoenix API Generator is a comprehensive tool within the Openclaw Skills ecosystem designed to eliminate the manual boilerplate involved in building Elixir-based web services. By analyzing an OpenAPI YAML specification or a natural language description, this skill generates a full-stack backend structure following the latest Phoenix 1.7+ conventions.
It ensures that your project remains maintainable by strictly adhering to domain-driven design through Context modules. This Openclaw Skills utility handles everything from database migrations with binary IDs to complex authentication plugs and multi-tenant scoping, allowing developers to focus on core business logic rather than repetitive scaffolding.
To integrate this capability into your agent, ensure your environment is configured to run Elixir and Phoenix. Add the phoenix-api-gen skill to your local environment and invoke it by providing a path to your YAML specification:
# Example usage with a specification file
openclaw-agent run phoenix-api-gen --spec ./docs/openapi.yaml
| File Type | Generation Pattern | Description |
|---|---|---|
| Migrations | YYYYMMDDHHMMSS_name.exs | Database tables with utc_datetime_usec |
| Ecto Schemas | lib/app/context/schema.ex | Data models with Changesets and Binary IDs |
| Contexts | lib/app/context.ex | Bounded domain logic and public API functions |
| Controllers | lib/app_web/controllers/resource_controller.ex | Request handling and delegation |
| Renderers | lib/app_web/controllers/resource_json.ex | Phoenix 1.7+ JSON formatting |
| Tests | test/app_web/controllers/resource_controller_test.exs | Controller and Context test suites |
Loading
A specialized AI skill for designing, implementing, and optimizing Oban-powered background jobs in Elixir applications.

A specialized tool for designing, configuring, and implementing robust Oban-based background jobs and workers in Elixir applications.

A powerful CLI-driven interface to browse, search, and extract data from Hacker News without authentication.

A comprehensive development toolkit for Elixir and Phoenix projects that automates code generation, testing, and OTP pattern implementation.

A comprehensive CLI-based skill to manage Readwise highlights, books, daily reviews, and Reader save-for-later documents.

An automated tool for fetching and filtering high-quality Chinese economic news and data from official government and media sources.








































