phoenix-context-creator

Automates the creation of well-structured Phoenix contexts with modules, schemas, migrations, and tests.

10|2|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/mkreyman/bmad-elixir --skill phoenix-context-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phoenix-context-creator
Source: https://github.com/mkreyman/bmad-elixir/tree/main/priv/skills/phoenix-context-creator
Command: npx skills add https://github.com/mkreyman/bmad-elixir --skill phoenix-context-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides the creation of well-structured Phoenix contexts following bounded context principles and best practices.

Core Features & Use Cases

  • Domain Planning: Helps plan a context with clear responsibilities and API surface.
  • Context Generation: Generates a context with an initial schema and tests.
  • Context API Design: Promotes an explicit public API for the domain.

Quick Start

Plan a domain (e.g., Blog) with entities and a public API, then generate the context and tests with the recommended Phoenix generator commands.

Frequently Asked Questions about phoenix-context-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure bounded contexts in Phoenix applications?

Bounded contexts in Phoenix organize domain logic into isolated modules with clear responsibilities and public APIs. This Skill automates context creation by generating scaffolding—modules, schemas, migrations, and tests—that enforce API boundaries and follow Phoenix best practices during domain planning and context segmentation.

What's the best way to design API boundaries for Elixir Phoenix contexts?

API-first design shapes context boundaries by explicitly defining what functionality is public and what remains internal. This Skill guides planning a context's entities and public API surface, then generates the corresponding Phoenix structure to ensure boundaries stay enforced as your application grows.

Can I automate Phoenix context generation with schema and test scaffolding?

Yes. This Skill automates well-structured Phoenix context creation during domain planning, generating initial schemas, migrations, and tests alongside context modules. It produces ready-to-use scaffolding that you can extend with generator commands following Phoenix conventions.

How do I apply domain-driven design principles to Phoenix development?

Domain-driven design in Phoenix starts with planning bounded contexts around business domains, then separating concerns into isolated modules with explicit public APIs. This Skill streamlines that process by automating context structure generation based on your domain entities and API design.

What should I plan before generating a new Phoenix context?

Before generating a context, define its domain (e.g., Blog), identify key entities, and sketch its public API surface. This Skill uses that planning to generate a well-structured context with schemas, migrations, and tests aligned to bounded-context principles and Phoenix conventions.