phoenix-contexts

Community

Structure Elixir Phoenix business logic.

Authoroliver-kriska
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides guidance on organizing Elixir Phoenix application code into maintainable and scalable contexts, ensuring clean separation of concerns and adherence to best practices.

Core Features & Use Cases

  • Context Design Patterns: Learn how to structure modules for business logic, manage data ownership, and implement scopes.
  • Phoenix 1.8+ Scope Integration: Understand how to leverage the built-in %Scope{} struct for authorization and data scoping.
  • Anti-pattern Avoidance: Identify and correct common mistakes in context implementation, such as direct Repo calls in controllers or side effects in schemas.
  • Use Case: When designing a new feature that involves user accounts and posts, use this Skill to ensure your Accounts and Blog contexts are structured correctly from the start, preventing future refactoring headaches.

Quick Start

Use the phoenix-contexts skill to learn about structuring Elixir Phoenix contexts.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: phoenix-contexts
Download link: https://github.com/oliver-kriska/claude-elixir-phoenix/archive/main.zip#phoenix-contexts

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.