ericrisco/rsc-harness / skills/phoenix
phoenix
VerifiedUse when building an Elixir web app with Phoenix — contexts, Ecto schemas, changesets and migrations, LiveView, channels and PubSub, the generators, and the boundary between domain logic and the web layer. Covers the classic LiveView over-rendering and Ecto N+1 traps. NOT pure OTP work with no web or Ecto layer — GenServers, supervision trees, releases (that is `elixir`).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.2 KB |
| evals/README.md | markdown | 911 B |
| evals/cases.yaml | config | 2.6 KB |
| references/auth-and-scopes.md | markdown | 3.4 KB |
| references/ecto-patterns.md | markdown | 3.9 KB |
| references/liveview.md | markdown | 4.9 KB |
| scripts/verify.shexecutable | script | 2.3 KB |
evals/cases.yaml
View on GitHubskill: phoenix
should_trigger:
- prompt: "Build a LiveView CRUD page for products with a list, create form and delete."
why: Core LiveView use — mount/handle_event, streams, forms, verified routes.
- prompt: "How should I structure the Accounts context so my controllers stay thin?"
why: Context boundary — the central Phoenix mental model (web is a thin caller).
- prompt: "Set up passwordless / magic-link login with phx.gen.auth."
why: Phoenix 1.8 magic-link auth default plus the scope wiring it scaffolds.
- prompt: "My LiveView re-renders the entire message list every time one row is added — how do I fix it?"
why: Non-obvious symptom whose real fix is streams (off-socket collections); names no Phoenix API directly.
- prompt: "Every post in my loop fires a separate query for its author — how do I stop the N+1?"
why: Web-app data layer; Ecto preload. The symptom, not the API name, is the trigger.
- prompt: "Crea un context Comandes i un LiveView per gestionar-les amb accés per usuari."
why: Catalan trigger — context + LiveView + scope-based per-user access.
should_not_trigger:
- prompt: "Design a supervision tree and restart strategy for a pool of workers."
route_to: elixir
why: Pure OTP/runtime — no web, Ecto or LiveView layer.
- prompt: "Add a GIN index and tune this slow Postgres query plan."
route_to: postgresdb
why: Raw SQL/index design below the Ecto line, framework-independent.
- prompt: "Containerize the release and deploy it to Fly.io."
route_to: fly-io
why: Shipping/runtime of the release, not Phoenix application code.
- prompt: "Build the REST API in Django with DRF serializers."
route_to: django
why: A different web framework, explicitly named — not Phoenix.
capability:
- scenario: "Implement a Catalog context managing a Product schema plus a LiveView index, scoped to the current user's org, with a create form and tests."
must_include:
- "Context functions are the public API; the LiveView/controller never calls Repo or builds a query directly"
- "Ecto.Changeset casts and validates (required fields, price > 0) at the boundary"
- "The scope (current user/org) is threaded into every context function and applied inside the query (where org_id ==), not in a post-fetch if"
- "LiveView uses stream/stream_insert for the product list, not a full-list assign"
- "Form uses to_form/2 and renders changeset errors on {:error, changeset}"
- "Verified routes (~p sigil) used for links/redirects, not hardcoded path strings"
- "Phoenix.LiveViewTest with live/2 and render_submit/render_click; context logic tested with DataCase"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |