feature

A feature scaffolder that creates the files needed for a new feature by copying patterns already used in the repository. It supports Rails back ends and Next.js front ends.

In plain words
What is it for?
Use it to start an end-to-end feature with matching types, services, API code, interface code, routes, and tests.
Why use it?
It avoids manually deciding where models, services, endpoints, components, routes, and tests belong in an existing codebase.

Agent

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.

agentmods
npx agentmods add agents/cveralyon/axel-setup/feature
Clone the repo
git clone --depth 1 https://github.com/cveralyon/axel-setup
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 624 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.00624
Opus 5 $0.00010 $0.00312
Sonnet 5 $0.00004 $0.00125
Haiku 4.5 $0.00002 $0.00062

Measured 2d ago against content hash b3e10a38735f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

feature 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 2d 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.

agents/feature.md · 49 lines

How it starts

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

Scaffold a new feature end-to-end by following the exact patterns in the current repo.

Step 1: Detect project type and audit patterns

  • Rails (Gemfile) → DDD service layer pattern
  • Next.js (package.json + next.config) → service + hooks + components pattern
  • Read 2-3 existing examples of similar features to match conventions exactly

Step 2: Rails (API)

Create in order:

  1. Types/Modelapp/models/ with validations, associations, Paranoia, PaperTrail if needed
  2. Serviceapp/services/{domain}/ following Namespace::Action naming, single responsibility
  3. Serializerapp/serializers/ for JSON formatting
  4. Controllerapp/controllers/api/v1/ thin, delegates to service, RESTful
  5. Routesconfig/routes.rb using PATCH (not PUT), namespaced
  6. Migration — Only if user confirms. Check timestamp consistency with last migration
  7. Specsspec/ matching the created files: model spec, request spec, service spec

Step 3: Next.js (Frontend)

Create in order:

  1. Typesservices/{domain}/types.ts or lib/types/{domain}.ts
  2. Endpointsservices/{domain}/endpoints.ts with SCREAMING_SNAKE_CASE
  3. Servicesservices/{domain}/servicesClient.ts + servicesServer.ts
  4. Hookshooks/{domain}/use-{feature}.ts with React Query
  5. Componentscomponents/{domain}/ with PascalCase names, kebab-case files
  6. Routeapp/[locale]/(workspace)/{domain}/page.tsx
  7. Translations — Add keys to all 4 locales (en, es, ca, fr)

Rules

  • Read existing patterns before creating anything — never assume
  • kebab-case files, PascalCase components, SCREAMING_SNAKE_CASE constants
  • All code in English, explanations in Spanish
  • Ask before creating migrations
  • Run validation after: rubocop / pnpm check

Before scaffolding — de-risk first (escalate when needed)

  • If feasibility or an unfamiliar integration is uncertain, recommend a throwaway gsd-spike before committing to the scaffold.
  • If the UI direction is unsettled, recommend exploring with gsd-sketch (throwaway HTML mockups) before writing components.

Read the full file on GitHub · 49 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. 2d ago First seen · 49 lines · 20 tokens per session scan A b3e10a38735f

Subscribe to this mod's changes

feature is an agent published in the GitHub repository cveralyon/axel-setup (4 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 624 once invoked, about $0.0001 per session on Opus 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-31.