askill
swe-programming-elixir-phoenix

swe-programming-elixir-phoenixSafety 90Repository

Phoenix Framework coding standards from authoritative docs/explanation/software-engineering/platform-web/tools/elixir-phoenix/ documentation

6 stars
1.2k downloads
Updated 2/15/2026

Package Files

Loading files...
SKILL.md

Phoenix Framework Coding Standards

Purpose

Progressive disclosure of Phoenix Framework standards for agents writing Phoenix applications.

Authoritative Source: docs/explanation/software-engineering/platform-web/tools/elixir-phoenix/README.md

Usage: Auto-loaded for agents when writing Phoenix Framework code. Provides quick reference to Phoenix contexts, channels, REST APIs, and web patterns.

Foundation: Requires Elixir skill (swe-programming-elixir). Phoenix Framework is built on Elixir/OTP foundations.

Prerequisite Knowledge

CRITICAL: This skill provides OSE Platform Phoenix Framework standards, not Phoenix tutorials.

You MUST complete both Elixir AND Phoenix learning paths:

1. Elixir Foundation (prerequisite for Phoenix):

2. Phoenix Framework Learning Path:

Documentation Separation:

  • AyoKoding Phoenix - "How to use Phoenix Framework" (educational, universal patterns)
  • docs/explanation/elixir-phoenix - "How to use Phoenix in OSE Platform" (repository conventions)

What this skill covers: OSE Platform Phoenix Framework configuration, context patterns, channel usage, REST API design, data access patterns.

What this skill does NOT cover: Phoenix Framework basics, OTP fundamentals (those are in ayokoding-web).

Quick Standards Reference

Context Patterns

  • Use contexts to group related functionality
  • Keep contexts focused and bounded
  • Contexts expose public API, hide implementation
  • Use schemas within contexts for data structures

Controllers and Views

  • Keep controllers thin, delegate to contexts
  • Use action fallback for error handling
  • Render JSON with Jason for APIs
  • Use Phoenix.HTML helpers for templates

Routing

  • Use resources for RESTful routes
  • Scope routes by authentication requirements
  • Use plugs for request pipeline customization
  • Apply rate limiting at router level

Channels and PubSub

  • Use channels for real-time bidirectional communication
  • Leverage Phoenix.PubSub for process communication
  • Implement presence tracking for user activity
  • Handle channel errors gracefully

Data Access with Ecto

  • Use Ecto schemas for data modeling
  • Apply changesets for data validation
  • Write composable Ecto queries
  • Use Repo for database operations
  • Apply database transactions for consistency

REST API Design

  • Use JSON:API or GraphQL conventions
  • Implement proper HTTP status codes
  • Apply authentication with Guardian or Pow
  • Version APIs with URL prefixes or headers
  • Document APIs with ExDoc

Comprehensive Documentation

For detailed guidance, refer to the 15 Phoenix Framework standards files:

Core Patterns:

Architecture & Configuration:

Data & Web:

Quality & Operations:

Maintenance:

Related Skills

  • swe-programming-elixir - Elixir language fundamentals (prerequisite)
  • docs-applying-content-quality - Content quality standards
  • repo-practicing-trunk-based-development - Git workflow

References

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

78/100Analyzed 2/19/2026

Comprehensive Phoenix Framework coding standards reference skill. Well-structured with clear purpose, prerequisites, and organized standards sections covering contexts, controllers, routing, channels, Ecto, and REST APIs. Includes 15 comprehensive documentation references and relevant tags. Scored well on clarity, reusability, and safety. Slightly reduced actionability as it serves more as an index to detailed docs than step-by-step instructions. The .opencode path indicates internal agent usage, but the technical content itself is high-quality and applicable beyond this specific repo.

90
85
80
75
60

Metadata

Licenseunknown
Version-
Updated2/15/2026
Publisherwahidyankf

Tags

apici-cddatabasegithub-actionsgraphqlsecurity