Command Palette

Search for a command to run...

Назад к скиллам
скилл № 35562

ark-mediator-framework

Use when consuming Ark.Tools.MediatorFramework from NuGet to design, add, change or review a contract (query, request, command, event or message) — its…

БесплатноБез исполняемых скриптов
ARKlabот ARKlab★ 40 звёзд на GitHub

Установить ark-mediator-framework в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Ark.Tools.MediatorFramework

Use this skill for application code that consumes Mediator Framework from NuGet. It is not for developing the framework or its source generators.

A contract is a public or cross-process boundary. Its decisions (which fields a caller may send, which rule fails with which error, who may call it, how it evolves, what personal data it carries) are expensive to change after clients ship, so they are made with the human before any code is written.

Contract design gate

  1. Read the contract design checklist. If it cannot be fetched, use the index below; it carries the defaults.
  2. Draft the brief from the checklist's brief template. Answer what you can derive from the request, the existing contracts and code, and the guides, and tag each answer derived (<source>). Tag everything else ASK. Check the facts the request states (types, existing fields, classification, available data) against the code and put any correction at the top of the brief: a design built on a wrong premise is wrong however complete it is.
  3. Ask the ASK items one at a time. Each question lists the valid alternatives with their consequences and a recommendation with its reason, so the human chooses instead of designing from scratch. When the choice depends on input you lack (a business rule, an owner, a retention period), still list the alternatives and make the recommendation conditional ("if X, A; otherwise B"); never ask a bare question. Purpose, lawful basis, retention period and DPIA trigger are always ASK when the change touches personal data (see the scope rule below): they are decisions for the product owner and the DPO, and the brief records who decided them. Do not infer them from code; list the alternatives and label any recommendation as a suggestion the DPO must confirm.
  4. Present the completed brief and wait for explicit confirmation. If nobody is available to confirm, stop after the brief.
  5. Implement. Paste the brief into the pull request description. Put decisions that code cannot show into XML docs (<summary>, <remarks>); do not repeat what an attribute already states (route, verb, version, scope).

A new contract answers every section. A change answers the sections it affects, plus Versioning and Privacy every time. The legal items are ASK only when the contract carries personal data and the change touches a personal field, its exposure, transport or purpose; otherwise answer "N/A: no personal-data change". A documentation-only change needs only Documentation. "N/A" needs a reason.

Checklist index

  1. Operation — purpose, kind (IQuery/IRequest/ICommand/event/message), owner; background work is a separate internal message.
  2. Fields and updatability — per-field table (Field | Type | Updatability | Required | Null meaning | Default | Concurrency | Validation | Personal-data class) with every field of each touched model, changed or not; labels Updatable (Input), Create-only (Create : Input), Output-only (Output), Context-supplied (never in the body), Identity (envelope); PUT replaces everything and absent means default; partial update is its own operation.
  3. Types and representation — value objects for domain primitives; NodaTime, never DateTime; explicit precision, unit, currency.
  4. Validation — stateless FluentValidation, 400/InvalidArgument; every collection and page has a maximum; unknown EvolvableEnum input is rejected.
  5. Business rules — stateful rules in the handler; each one a named BusinessRuleViolation subclass documented on the contract.
  6. Failure contract — every failure with Problem Details type: 400 validation and rule, 403, 404, 409 concurrency, 412 ETag.
  7. Concurrency and idempotency — ETag or version field; retry-safe POST; idempotent message handlers with a deduplication key.
  8. API design — /api/v{version}/<plural-kebab-resource>/{id}/<sub-resource>; actions as sub-path verbs; status 200 read (404 on null), 201 create, 202 accepted background work, 204 command without value; contract names <Resource>_<Verb>Request/Query, events in the past tense; gRPC Service = plural resource, Method = VerbNoun; deviations need a reason.
  9. Lists, streaming and files — paging, sort, filter and maximum page size, or IAsyncEnumerable; upload size, count, content types; download disposition.
  10. Limits and abuse — body, page, attachment and stream limits; rate limiting in the host; bounded expensive queries.
  11. Transport exposure and serialization — only transports with a named consumer; source-generated JSON; stable protobuf numbers; MCP description and destructiveness.
  12. Authorization — Ark.Tools.Authorization policy on the contract; instance checks; 403 by default, 404 when 403 discloses an unguessable id (GUID); list scoping; separate output models for re
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл ark-mediator-framework?

Use when consuming Ark.Tools.MediatorFramework from NuGet to design, add, change or review a contract (query, request, command, event or message) — its fields, routes, gRPC methods, validators, business rules, authorization, versioning, enums or personal data — or its handler, participant or endpoint.

Как установить скилл ark-mediator-framework?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ark-mediator-framework запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ark-mediator-framework с