跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/ccarvalho-eng/codex-elixir-phoenix/elixir-phoenix-phoenix-contexts

Codex Design Phoenix Context Boundaries and Public Functions

Define data ownership, context APIs, and a clean call direction between Phoenix controllers and business logic.

中文

Install in Codex

Use a Phoenix workspace and check its version. The exercise uses a local Phoenix 1.8 fixture.

  1. Copy the pinned `skills/elixir-phoenix-phoenix-contexts/` directory into `.agents/skills/elixir-phoenix-phoenix-contexts/` in the project.
  2. Read the pinned `references/context-patterns.md` and `references/scopes-auth.md`, then identify the project's Scope shape.

Example task

In a fixture, let `Catalog` own products and `Listings` own presentation. Map the calls and replace a page-level Repo query with `Catalog.list_products(scope)`.

What to check

The page uses the public context API, the call chain exposes data ownership, and tests verify the result with fixed input.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Does the same Scope structure apply to Phoenix 1.7?

Check the actual version and authorization context. The built-in Scope convention in this exercise targets Phoenix 1.8.

Related skills from this repository

  • Codex Search and Document Known Phoenix Solutions
  • Codex Ecto Migration Planning for a PostgreSQL Column Backfill
  • Codex Document New Elixir Modules and Public Functions
Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯