/estack:estack-architecturefrom estack
Guides Phoenix context boundary design, module organization, and multi-transport adaptation for Ash, umbrella, and API-only apps.
Ships in estack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read project instructions, neighboring modules, and mix.lock. Preserve the existing context layout; Phoenix generators commonly place a context at lib/my_app/orders.ex and schemas under lib/my_app/orders/.
Keep business rules, schemas, and durable job orchestration in the domain application. Keep HTTP, LiveView, serialization, and transport authentication at the web boundary. Call public context functions from web code; avoid reaching into context internals or querying Repo directly from an event handler.
Use modules to organize code. Add a GenServer only when a runtime requirement justifies one.
If Boundary is already installed, check its configuration and exported interfaces before changing dependencies. Propose it for a project that needs enforced boundaries; do not add it to every app automatically. Exporting everything from the top-level application does not enforce isolation between individual contexts.
For Phoenix scope-based apps, pass the existing scope struct into context functions. For older apps, preserve their authenticated-user or policy interface. Do not mechanically replace %User{} with %Scope{} without adapting callers and tests.
Stamp ownership server-side and authorize the operation inside the public boundary so REST, LiveView, and jobs do not accidentally enforce different policies.
Let each transport decode input and encode responses around the same business operation. Introduce a shared application-service adapter only when it removes real duplication. Keep transport-specific tool names and JSON envelopes out of the domain unless the project intentionally models them there.
Use an explicit dispatch allowlist. Never derive module/function atoms from untrusted tool names. Classify tools by actual read/write/admin capability and enforce permissions on the server.
ash_* UsageRules. Use the established actions rather than introducing a parallel context/Repo implementation that bypasses policies.apps/*/mix.exs, application dependencies, and the shared configuration. Do not assume one web app or Repo.Use the project's MyAppWeb macros so components inherit imports, layouts, and verified routes. Prefer ~p where Phoenix.VerifiedRoutes is configured; do not rewrite legacy routes as unrelated cleanup.
Keep naming consistent with neighboring code: plural contexts, singular schemas, and established LiveView/worker names. Reuse Req/Finch if present; preserve an existing HTTP adapter until a migration is requested.
Use the project's UUID, opaque identifier, or integer convention. Opaque IDs can reduce enumeration, but do not provide authorization. Verify access regardless of identifier format. Changing public IDs requires API and migration planning.
Record meaningful boundary decisions and exceptions in the repository's existing documentation. If docs and code disagree, investigate whether the code is defective or the docs stale; do not automatically treat the implementation as the intended contract.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (singularityhacker/estack) — no native marketplace selected
npx claudepluginhub p/singularityhacker-estack20 skills in this plugin
/estack-debugInvestigate and fix Elixir/Phoenix failures from symptoms and code evidence. Use for crashes, failed tests, incorrect queries, LiveView events, Oban retries, or production error reports./estack-deployPrepare Phoenix releases, migrations, health checks, and observable rollouts. Use when editing runtime config, deployment pipelines, Docker builds, production topology, or release diagnostics./estack-doctorInspect an Elixir/Phoenix project's setup without modifying it. Use for readiness checks, installed dependency/tool detection, initial Estack adoption, or a prioritized engineering report.Other plugins' skills for the same job