my-xcx-rules

Define and enforce Elixir and Phoenix best-practice guidelines for project structure, testing, and coding patterns.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Aafff623/yihui-vibe-coding-exer --skill my-xcx-rules
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: my-xcx-rules
Source: https://github.com/Aafff623/yihui-vibe-coding-exer/tree/main/.cursor/skills/my-xcx-rules
Command: npx skills add https://github.com/Aafff623/yihui-vibe-coding-exer --skill my-xcx-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Defines and enforces Elixir and Phoenix best-practice guidelines to unify project structure, testing, and coding patterns across teams.

Core Features & Use Cases

  • Enforces Domain-Driven Design and the "Functional Core, Imperative Shell" principle to keep business logic pure and boundaries well-defined.
  • Guides API/Implementation separation, explicit input validation, naming conventions, and testing strategies in Phoenix applications.
  • Useful for new projects and cross-team audits to align on architecture, pattern usage, and code quality.

Quick Start

Adopt and apply the documented best-practice guidelines to your Elixir and Phoenix project.

Frequently Asked Questions about my-xcx-rules

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

FAQPage Schema
What are the best practices for structuring an Elixir and Phoenix project?▼

Elixir and Phoenix project structuring best practices enforce Domain-Driven Design and the Functional Core, Imperative Shell principle to keep business logic pure and boundaries well-defined, unifying module organization, API separation, and naming conventions across teams.

How do I apply functional core and imperative shell patterns in Phoenix?▼

Apply functional core and imperative shell patterns in Phoenix by separating pure business logic from side-effect heavy boundary layers, ensuring explicit input validation, clear API/implementation separation, and well-documented architectural trade-offs for maintainers.

Does my Elixir project need typespecs and documented public APIs for code audits?▼

Yes, Elixir code audits require typespecs and documented public APIs to ensure consistent quality, as documenting public APIs, typespecs, naming conventions, and trade-offs guides maintainers and enforces coding patterns across teams.

What's the best way to enforce domain boundaries in Elixir applications?▼

The best way to enforce domain boundaries in Elixir applications is adopting Domain-Driven Design guidelines, enforcing clear module organization, pattern selection, and API design across contexts to keep boundaries well-defined and maintain consistent quality.

Can I use these Elixir coding pattern rules for cross-team project audits?▼

Yes, you can use these Elixir coding pattern rules for cross-team project audits, aligning architecture, pattern usage, and code quality across teams by enforcing guidelines for testing strategies, input validation, and style.