elixir-dev
Elixir/Phoenix development companion. Run and interpret mix test, mix credo, mix dialyzer, mix format. Generate modules following OTP conventions: contexts, schemas, GenServers, supervisors, tasks. Debug compilation errors and warnings. Help with Ecto migrations, queries, changesets, and associations. Use for any Elixir or Phoenix development task including writing modules, fixing tests, refactoring code, or understanding OTP patterns.
Why use this skill?
Enhance your Elixir development with the elixir-dev skill. Expert support for Mix, Ecto, OTP patterns, testing, and code quality in Phoenix applications.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/gchapim/elixir-devWhat This Skill Does
The elixir-dev skill is a comprehensive development companion tailored for the Elixir programming language and the Phoenix web framework. It acts as an expert pair programmer capable of executing, interpreting, and debugging common Mix tasks. The skill handles the full lifecycle of Elixir development, including running and diagnosing test failures, performing static code analysis with Credo, ensuring type safety via Dialyzer, and maintaining code style with the built-in formatter. Beyond CLI operations, it provides deep architectural support for OTP patterns, guiding users through the creation of context modules, Ecto schemas, GenServers, and supervisors while enforcing industry best practices like documentation and specification annotations.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/gchapim/elixir-dev
Use Cases
Use this skill when you are:
- Writing new business logic in Phoenix context modules.
- Debugging complex Ecto changesets or troubleshooting
DBConnection.OwnershipErrorin your test suite. - Refining code quality to meet strict Credo standards or fixing compilation warnings.
- Implementing OTP behaviors such as supervisors or GenServers for background task management.
- Refactoring existing codebases to align with modern Elixir conventions, ensuring all public functions have
@docand@spectags.
Example Prompts
- "I am getting a
MatchErrorin my Accounts context. Here is the code [code snippet]; can you identify why the return value shape is incorrect?" - "Help me write an Ecto migration to add a
user_idforeign key to thenotificationstable, then generate the corresponding schema file with appropriate timestamps and validations." - "My Dialyzer run is failing with 'The call will never return'. Look at my
process_payment/1function and suggest how to fix the typespecs or handle the error cases properly."
Tips & Limitations
To maximize the utility of this skill, always provide the full context of your modules, including imports and aliases. When debugging test failures, include the stack trace provided by your shell. Note that while this skill can format your code and suggest fixes, it is designed as a companion; always review suggested refactors before applying them to your production codebase to ensure logical consistency.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-gchapim-elixir-dev": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
readwise
Manage Readwise highlights, books, daily review, and Reader documents (save-for-later / read-it-later). Use when the user wants to save articles or URLs to Reader, browse their reading list, search saved documents, review highlights, create or manage highlights and notes, check their daily review, list books/sources, or interact with Readwise/Reader in any way.
oban-designer
Design and implement Oban background job workers for Elixir. Configure queues, retry strategies, uniqueness constraints, cron scheduling, and error handling. Generate Oban workers, queue config, and test setups. Use when adding background jobs, async processing, scheduled tasks, or recurring cron jobs to an Elixir project using Oban.
oban-designer
Design and implement Oban background job workers for Elixir. Configure queues, retry strategies, uniqueness constraints, cron scheduling, and error handling. Generate Oban workers, queue config, and test setups. Use when adding background jobs, async processing, scheduled tasks, or recurring cron jobs to an Elixir project using Oban.
phoenix-api-gen
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.
hackernews
Browse and search Hacker News. Fetch top, new, best, Ask HN, Show HN stories and job postings. View item details, comments, and user profiles. Search stories and comments via Algolia. Find "Who is hiring?" threads. Use for any HN-related queries like "what's trending on HN?", "search HN for AI", "show comments on story X", "who is hiring?", "latest Ask HN posts".