← Back to Skills Marketplace
gchapim

Phoenix API Generator

by gchapim · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
1733
Downloads
1
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install phoenix-api-gen
Description
Generate a full Phoenix JSON API from an OpenAPI spec or natural language description. Creates contexts, Ecto schemas, migrations, controllers, JSON views/renderers, router entries, ExUnit tests with factories, auth plugs, and tenant scoping. Use when building a new Phoenix REST API, adding CRUD endpoints, scaffolding resources, or converting an OpenAPI YAML into a Phoenix project.
Usage Guidance
This skill appears to be a coherent Phoenix code generator and does not request secrets or downloads. Before using it: (1) run it in a safe/sandbox project or a new git branch so you can review and revert generated files; (2) confirm the intended output path and that the skill will prompt before writing; (3) review generated auth plugs and token verification code — the skill scaffolds patterns but you must integrate secure token/key handling and secrets management yourself; (4) run your test suite and linters on generated code; (5) if you do not want an agent to create files autonomously, disable automatic invocation or require an explicit manual step. Overall the skill is internally consistent, but always review and test generated code before deploying.
Capability Analysis
Type: OpenClaw Skill Name: phoenix-api-gen Version: 1.0.0 The skill bundle is designed to generate Phoenix API code based on OpenAPI specifications or natural language. All files contain documentation and Elixir code examples relevant to this stated purpose. There is no evidence of prompt injection attempts in SKILL.md, nor any instructions for the AI agent to perform malicious actions such as data exfiltration, unauthorized command execution, or persistence. The skill explicitly includes a safeguard to 'Ask the user to confirm before writing files', indicating a benign intent.
Capability Assessment
Purpose & Capability
The name/description (Phoenix API Generator) match the SKILL.md and the included reference files (Phoenix conventions, Ecto patterns, test patterns). There are no unrelated credentials, binaries, or install steps requested — everything present is relevant to scaffolding a Phoenix app.
Instruction Scope
The SKILL.md describes parsing OpenAPI or natural-language input, generating migrations, schemas, contexts, controllers, tests, and auth plugs, and instructs the agent to ask the user before writing files. It does not instruct reading unrelated system files or secrets. However, it is vague about the target filesystem path, backup/rollback behavior, and conflict resolution for existing files — you should ensure the skill will write only in the intended project directory and that generated files are reviewed before committing.
Install Mechanism
No install spec is provided and the skill is instruction-only, so nothing is downloaded or written to disk by an installer. This is the lowest-risk install model.
Credentials
The skill declares no required environment variables, credentials, or config paths. The examples reference common runtime functions (e.g., System.unique_integer, Ecto.UUID.generate) but do not attempt to access secret environment variables or unrelated system configuration.
Persistence & Privilege
The skill is not marked always:true and requests no persistent system modification beyond writing generated project files when invoked. The platform default allows autonomous invocation (disable-model-invocation: false); if you are concerned about an agent invoking file-write operations without supervision, consider disabling autonomous invocation for this skill or requiring explicit confirmation before any writes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install phoenix-api-gen
  3. After installation, invoke the skill by name or use /phoenix-api-gen
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of phoenix-api-gen. - Generates a full Phoenix JSON API from an OpenAPI spec or natural language description. - Creates contexts, Ecto schemas, migrations, controllers, JSON views/renderers, router entries, ExUnit tests with factories, authentication plugs, and tenant scoping. - Supports both OpenAPI-driven and natural language-driven workflows. - Follows Phoenix and Ecto conventions, including multi-tenancy and comprehensive test generation.
Metadata
Slug phoenix-api-gen
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Phoenix API Generator?

Generate a full Phoenix JSON API from an OpenAPI spec or natural language description. Creates contexts, Ecto schemas, migrations, controllers, JSON views/renderers, router entries, ExUnit tests with factories, auth plugs, and tenant scoping. Use when building a new Phoenix REST API, adding CRUD endpoints, scaffolding resources, or converting an OpenAPI YAML into a Phoenix project. It is an AI Agent Skill for Claude Code / OpenClaw, with 1733 downloads so far.

How do I install Phoenix API Generator?

Run "/install phoenix-api-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Phoenix API Generator free?

Yes, Phoenix API Generator is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Phoenix API Generator support?

Phoenix API Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Phoenix API Generator?

It is built and maintained by gchapim (@gchapim); the current version is v1.0.0.

💬 Comments