/estack:estack-testingfrom estack
Tests Elixir/Phoenix apps with ExUnit, Ecto sandbox, Mox, and LiveViewTest. Covers vendor isolation, concurrent processes, and browser coverage.
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 existing test support and configuration. Preserve working test conventions. Ordinary tests must not need live vendor credentials, real funds, or uncontrolled external services. Use the database adapter the project supports; PostgreSQL is not mandatory for every Elixir app.
Test public context functions or Ash actions for domain behavior, plus focused tests for complex pure functions and changesets when useful. Build ordinary fixtures through valid application interfaces. Direct Repo fixtures can be appropriate for constraints, legacy states, or efficient setup; make the reason explicit and preserve invariants.
For every scoped operation, exercise another tenant/user and relevant roles. Test reads, writes, deletes, preloads, aggregates, and unauthorized events. Use :not_found when resource existence is private and explicit denial where the product intentionally distinguishes it.
Use behaviours and deterministic fakes for repeatable development/test flows when that fits the app. Preserve Mox where used; use expectations when interaction behavior matters. Prefer existing Req.Test or Bypass infrastructure for HTTP request/response assertions. Do not impose a mocking migration on an unrelated feature.
Keep fake behavior aligned with the boundary contract, including errors, timeouts, and malformed responses. Configure implementations before application startup. Do not mutate global Application env from an async test.
Use the project's DataCase/ConnCase and sandbox setup. Enable async only when the database adapter and shared state permit it. Spawned processes need explicit sandbox ownership/allowance or the established caller-tracking mechanism; arrange this before queries run.
Use start_supervised! for test-owned processes. Avoid global names when concurrent tests could collide. Synchronize with messages, monitors, or observable state rather than Process.sleep. Use bounded assert_receive timeouts and clean up tasks before sandbox checkout ends.
Bypass and property tests are not inherently synchronous: global configuration, process ownership, and database use determine whether async is safe.
Prefer LiveViewTest for server-side events, form validation, authorization, redirects, and streams. Select meaningful stable DOM IDs and assert behavior rather than large raw HTML snapshots.
Use focused browser tests/manual verification for JavaScript hooks, actual uploads, focus, navigation, and external browser integrations that the server test cannot execute. Keep that suite small and run it when the changed behavior requires it; do not ban browsers or require them for every server change.
Use Oban manual mode when asserting enqueueing; perform/drain jobs deliberately in worker tests. Exercise error results, retries, idempotency, and transactional rollback.
Use property tests for meaningful invariants: unauthorized transitions are rejected, totals are conserved, normalization is idempotent. Derive expectations from the domain specification, not the same implementation function being tested. Use state-machine sequences where ordering is the behavior under test.
Run the smallest relevant test first, then related tests and the project gate. Document any missing services/toolchain instead of claiming success. Use coverage to find untested behavior, not as a substitute for useful assertions.
For ExCoveralls, minimum_coverage sets the threshold; floor_coverage controls rounding. Keep approved exclusions narrow and documented. Use the installed coverage tool's actual capabilities rather than assuming per-file thresholds exist.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (singularityhacker/estack) — no native marketplace selected
npx claudepluginhub p/singularityhacker-estack20 skills in this plugin
/estack-architectureDesign Phoenix context boundaries and application interfaces. Use when adding a feature, deciding where modules belong, introducing API/MCP adapters, or working in an Ash or umbrella application./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.Other plugins' skills for the same job