devarch-module

devarch-module is a skill for Claude Code, Codex from byerlikaya/claude-starter-kit. It costs 47 tokens per session (942 once invoked), scanned A, original, MIT.

A backend coding guide for a .NET pattern that separates requests to change data from requests to read it, and organizes validation and cross-cutting behavior such as logging or authorization.

In plain words
What is it for?
Use it when creating a new backend handler, command, query, validator, or aspect. It also covers result types, dependency wiring, and translation support.
Why use it?
It gives the coding agent consistent rules for adding backend handlers, commands, queries, and validators while fitting the project's chosen architecture.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

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 skills/byerlikaya/claude-starter-kit/devarch-module
Any agent
npx skills add byerlikaya/claude-starter-kit --skill devarch-module
Clone the repo
git clone --depth 1 https://github.com/byerlikaya/claude-starter-kit

Made for: Claude Code, Codex.

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 devarch-module

README.md
[![agentmods](https://agentmods.dev/badge/skills/byerlikaya/claude-starter-kit/devarch-module.svg)](https://agentmods.dev/skills/byerlikaya/claude-starter-kit/devarch-module)
Your own site
<a href="https://agentmods.dev/skills/byerlikaya/claude-starter-kit/devarch-module"><img src="https://agentmods.dev/badge/skills/byerlikaya/claude-starter-kit/devarch-module.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 942 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.1 $0.00047 $0.00942
Opus 5 $0.00023 $0.00471
Sonnet 5 $0.00009 $0.00188
Haiku 4.5 $0.00005 $0.00094

Measured 6d ago against content hash d970a22a222a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

devarch-module 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 6d 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.

claude-starter/skills/devarch-module/SKILL.md · 69 lines

How it starts

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

Backend Pattern (MediatR CQRS / IResult / AOP)

Trigger phrases: "devarch-module", "new handler", "write a command", "add a query", "validator", "aspect"

This is the DEFAULT backend pattern, not the only one. backend-expert-csk is pattern-neutral; it applies whichever backend-pattern skill the project ships. A project on Clean Architecture, Vertical Slice, Minimal API, or plain layered replaces this skill with its own (same format) — the agent then follows that. Nothing forces DevArch.

Kit adaptation (local, .claude/): backend-expert-csk applies the devarch-module skill. Sources (alignment): the DevArchitecture pattern — its name does NOT leak into generated code / namespace / file / comment / csproj / Swagger / JWT (§4.2). The pattern lives here; the generated artifact is written with project-specific names.

Layout

Three folders under Business/Handlers/{Entity}/: Commands/ · Queries/ · ValidationRules/. Each request + its handler lives in a single file, nested.

Command pattern (write)

  • Request class: IRequest<IResult> (or IRequest<IDataResult<T>> if it returns data).
  • Handler: IRequestHandler<TRequest, IResult> inside the outer class; dependencies via the ctor (repository, cache, mediator).
  • Body: write via the repository → SaveChangesAsync() → clear the relevant cache key → return new SuccessResult(Messages.Added).

Query pattern (read)

  • Request: IRequest<IDataResult<IEnumerable<TDto>>> / IDataResult<TDto>.
  • The handler fetches the data via the repository/DTO → return new SuccessDataResult<...>(data).

Result contract (NO bare types)

  • Success: SuccessResult(message) / SuccessDataResult<T>(data, message?).
  • Error: ErrorResult(message) / ErrorDataResult<T>(message).
  • The handler never returns a raw T / void; always IResult/IDataResult<T>.

Read the full file on GitHub · 69 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 69 lines · 47 tokens per session scan A d970a22a222a

Subscribe to this mod's changes

devarch-module is a skill published in the GitHub repository byerlikaya/claude-starter-kit (22 stars, last pushed 5d ago), licensed MIT. It adds 47 tokens to every session and 942 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

find-skills

Helps discover and install agent skills when looking for functionality that might exist as an installable skill.

mcqua007/agents-skeleton · 24 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

haiku

When writing a haiku for this bot, follow these conventions.

agno-agi/agno · 0 tokens

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

fastapi-router-py

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

microsoft/skills · 46 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens