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★ 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
- Read the contract design checklist. If it cannot be fetched, use the index below; it carries the defaults.
- 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 elseASK. 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. - Ask the
ASKitems 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 alwaysASKwhen 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. - Present the completed brief and wait for explicit confirmation. If nobody is available to confirm, stop after the brief.
- 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
- Operation — purpose, kind (
IQuery/IRequest/ICommand/event/message), owner; background work is a separate internal message. - 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. - Types and representation — value objects for domain primitives; NodaTime, never
DateTime; explicit precision, unit, currency. - Validation — stateless FluentValidation, 400/
InvalidArgument; every collection and page has a maximum; unknownEvolvableEnuminput is rejected. - Business rules — stateful rules in the handler; each one a named
BusinessRuleViolationsubclass documented on the contract. - Failure contract — every failure with Problem Details type: 400 validation and rule, 403, 404, 409 concurrency, 412 ETag.
- Concurrency and idempotency — ETag or version field; retry-safe POST; idempotent message handlers with a deduplication key.
- 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; gRPCService= plural resource,Method=VerbNoun; deviations need a reason. - Lists, streaming and files — paging, sort, filter and maximum page size, or
IAsyncEnumerable; upload size, count, content types; download disposition. - Limits and abuse — body, page, attachment and stream limits; rate limiting in the host; bounded expensive queries.
- Transport exposure and serialization — only transports with a named consumer; source-generated JSON; stable protobuf numbers; MCP description and destructiveness.
- Authorization —
Ark.Tools.Authorizationpolicy on the contract; instance checks; 403 by default, 404 when 403 discloses an unguessable id (GUID); list scoping; separate output models for re
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…