ash-resource-designer

ash-resource-designer is an agent for Claude Code from oliver-kriska/claude-elixir-phoenix. It costs 44 tokens per session (3,708 once invoked), scanned A, original, MIT.

A design agent for Ash resources, which are structured representations of domain data and the actions allowed on it. It produces a design document rather than changing source files.

In plain words
What is it for?
Use it when planning a new Ash resource or extending one, including its actions, fields, relationships, policies, and domain code interface.
Why use it?
It helps plan Ash resources with the framework's generators, validations, relationships, identities, and access policies before implementation.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the phx plugin — 50 skills, 26 agents, 8 hooks shipped together

Good fit Use it when planning a new Ash resource or extending one, including its actions, fields, relationships, policies, and domain code interface.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/oliver-kriska/claude-elixir-phoenix/ash-resource-designer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/oliver-kriska/claude-elixir-phoenix

Made for: Claude Code.

Or install phx, the plugin that ships this one along with the rest of its 50 skills, 26 agents, 8 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ash-resource-designer

README.md
[![agentmods](https://agentmods.dev/badge/agents/oliver-kriska/claude-elixir-phoenix/ash-resource-designer/github.svg)](https://agentmods.dev/agents/oliver-kriska/claude-elixir-phoenix/ash-resource-designer)
Your own site
<a href="https://agentmods.dev/agents/oliver-kriska/claude-elixir-phoenix/ash-resource-designer"><img src="https://agentmods.dev/badge/agents/oliver-kriska/claude-elixir-phoenix/ash-resource-designer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ash-resource-designer

Your own site · 80×15
<a href="https://agentmods.dev/agents/oliver-kriska/claude-elixir-phoenix/ash-resource-designer"><img src="https://agentmods.dev/badge/agents/oliver-kriska/claude-elixir-phoenix/ash-resource-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,708 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.03708
Opus 5.5 $0.00018 $0.01483
Sonnet 5.5 $0.00009 $0.00742
Haiku 4.5 $0.00004 $0.00371

Measured 25d ago against content hash 2c95de0f255c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ash-resource-designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/elixir-phoenix/agents/ash-resource-designer.md · 364 lines

How it starts

The opening of the file, as written. The whole thing — 364 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ash Resource Designer

Design Ash resources, actions, identities, relationships, policies, and domain code interfaces the Ash Way — reach for built-in changes, validations, types, and policy checks before writing a custom module. Your output is a design document with runnable code and generator commands; you do not modify source files.

CRITICAL: Save Design File First

Your output is a file. Save early; refine later.

Turn budget:

  1. First ~8 turns: Read 2–3 existing resources in the target context for naming/patterns
  2. By turn ~10: Write an initial design with at minimum the resource skeleton, code interface, and generator command
  3. Remaining turns: Fill in actions, policies, identities, calculations/aggregates

Default output path if none given in the prompt: .claude/ash-designs/{ResourceName}-design.md

Iron Laws — Apply During Design

  1. GENERATORS FIRST — Open every design with mix ash.gen.resource MyApp.Context.Resource --yes. Hand-writing skips snapshot scaffolding and will desync mix ash.codegen later.
  2. DOMAIN CODE INTERFACES ALONGSIDE EVERY RESOURCE — Every resource gets a define block in its domain. Resources without a code interface force callers into Ash.create/Ash.read, which violates the framework's public-API model.
  3. NAMED ACTIONS OVER GENERIC CRUD — Prefer many narrowly-named actions (:archive, :publish, :assign_owner) over a single update :update do accept :*. If one update branches on input, that's two actions.
  4. BUILT-IN BEFORE CUSTOM — Default to built-in changes, validations, types, and policy checks. Escape to a custom module only when the built-in genuinely can't express the rule (see tables below).
  5. ATTRIBUTES ARE FOR PERSISTED FACTS — Derived values belong in calculations (per-record) or aggregates (across relationships), never as attributes computed by changes on every write.
  6. POLICIES BEFORE GO-LIVE — Every user-accessible resource ships with authorizers: [Ash.Policy.Authorizer] and a policies do block that reaches a decision for every action. Ash is fail-closed; uncovered actions silently 403.
  7. IDENTITIES FOR UNIQUENESS BEYOND PK — Any "this email/slug/handle is unique" rule belongs in identities do with eager_check?: true (or pre_check?: true for ETS), not a hand-written validation.
  8. CODEGEN AFTER DESIGN — End every design with mix ash.codegen <name> && mix ash.migrate. Never instruct the user to run mix ecto.migrate for Ash resources, and never hand-edit migrations.

Read the full file on GitHub · 364 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed · -1 lines 2c95de0f255c
  2. 1mo ago First seen · 365 lines · 44 tokens per session scan A 0ec970a2910b

Subscribe to this mod's changes

ash-resource-designer is an agent published in the GitHub repository oliver-kriska/claude-elixir-phoenix (571 stars, last pushed 5d ago), licensed MIT. It adds 44 tokens to every session and 3,708 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

craft-site-builder

Builds Craft CMS site front ends — content models (sections, entry types, fields, Matrix), Twig templates, atomic components, layouts, and Vite buildchain — with layered build-verify gates. Use for multi-template site work or content architecture; not for plugin/module PHP.

michtio/craftcms-claude-skills · 61 tokens

genpage-customapi-builder

Owns ALL GenPage Dataverse Custom API (plug-in) work: it discovers the Custom APIs a page can bind to (Global and entity-bound Actions/Functions) plus their declared request-parameter kinds, and produces the ## Custom API Bindings contract. It also owns the dataverse-operations gate and the offer of the two reviewed…

microsoft/power-platform-skills · 173 tokens

enterprise-saas-reviewer

B2B / enterprise-SaaS pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off tenant-isolation decisions before senior-dev claims tasks.

avelikiy/great_cto · 40 tokens

craft-code-reviewer-deep

Deep code review on Opus for high-stakes PRs — release branches, security-sensitive code, large architectural changes, migrations, multi-service flows. Read-only. Use when extra scrutiny is worth the token cost; use craft-code-reviewer for daily review.

michtio/craftcms-claude-skills · 61 tokens

litestar-reviewer

Use when reviewing Litestar PRs/code for stack-aware DTOs, guards, DI, data services, pagination, settings, async I/O, plugins, and wire format. Not for non-Litestar reviews.

litestar-org/litestar-skills · 48 tokens

php-expert

Use when: composer.json present WITHOUT an artisan file. Do NOT use for: Laravel apps (composer.json + artisan → laravel-expert), frontend (framework experts).

fusengine/agents · 38 tokens