ai-multi-agent-system: Skill for Claude Code

.agents/skills/architecture-discipline/SKILL.md

architecture-discipline is a skill for Claude Code, Codex from radif-ru/ai-multi-agent-system. It costs 54 tokens per session (798 once invoked), scanned A, original, MIT.

A set of architecture rules for a layered agent application. The layers separate adapters, core task handling, agents, tools, services, language models, and memory so each part has a clear responsibility.

In plain words
What is it for?
Use it when adding components, tools, memory, or agent flows, and when deciding where new code belongs.
Why use it?
It prevents new features from bypassing the project’s agreed structure or creating tightly connected code that is harder to change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is radif-ru/ai-multi-agent-system's own configuration. It tells Claude Code and Codex how to work on ai-multi-agent-system itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-multi-agent-system configures →

Reuse

Borrowing it

Nothing to install: this file belongs to radif-ru/ai-multi-agent-system. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/radif-ru/ai-multi-agent-system/main/.agents/skills/architecture-discipline/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/radif-ru/ai-multi-agent-system

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 architecture-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/radif-ru/ai-multi-agent-system/architecture-discipline/github.svg)](https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/architecture-discipline)
Your own site
<a href="https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/architecture-discipline"><img src="https://agentmods.dev/badge/skills/radif-ru/ai-multi-agent-system/architecture-discipline/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 architecture-discipline

Your own site · 80×15
<a href="https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/architecture-discipline"><img src="https://agentmods.dev/badge/skills/radif-ru/ai-multi-agent-system/architecture-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 798 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.00054 $0.00798
Opus 5 $0.00027 $0.00399
Sonnet 5 $0.00011 $0.00160
Haiku 4.5 $0.00005 $0.00080

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

Security

Grade A, and why

architecture-discipline 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 12d 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/skills/architecture-discipline/SKILL.md · 38 lines

How it starts

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

Skill: architecture-discipline

Базовые архитектурные правила репозитория. Загружай первым для широкой/неочевидной задачи, затем — профильный скилл. Источник истины — _docs/architecture.md и _docs/instructions.md §11.

Когда использовать

  • Задача широкая или неочевидная — начни отсюда, чтобы выбрать следующий скилл.
  • Добавляешь компонент или поток, трогаешь границы слоёв, реестр tools, память или агентный цикл.
  • Сомневаешься, не выходит ли решение за рамки уже принятой архитектуры.

Алгоритм

  1. Слоистая изоляция. Поток: адаптер (app/adapters/) → core (app/core/orchestrator.py) → executor (app/agents/) → tools / LLM / memory (app/tools/, app/services/). Слой ниже не знает про слой выше: tool не знает про aiogram, memory — про executor, executor — про Telegram.
  2. Единая точка входа. Любой адаптер вызывает только core.handle_user_task(...). Адаптер не дёргает Executor / Planner / Critic напрямую.
  3. JSON-only цикл. Ответ LLM в агентном цикле — строго JSON одной из форм _docs/agent-loop.md. Prose-ответ в цикле считается ошибкой.
  4. Tools as a registry. Новый tool — отдельный модуль с контрактом name / description / args_schema / async run(args, ctx), регистрация в app/tools/registry.py (_docs/tools.md).
  5. Memory split. Краткосрочная — in-memory ConversationStore; долгосрочная — sqlite-vec (SemanticMemory), пополняется только саммари при /new, не сырыми сообщениями (_docs/memory.md).
  6. Local-first, без облака. Только локальная Ollama; единственная БД — sqlite-vec; polling, не webhook (_docs/instructions.md §11).
  7. Async-first. Любой I/O — через await; общие клиенты создаются один раз на приложение → скилл async-discipline.
  8. Без новой архитектуры без согласования. Новый слой/сервис/абстракция/паттерн/зависимость или смена структуры каталогов — сначала проговорить с пользователем (_docs/instructions.md §11). В рамках задачи — только локальные технические решения.

Read the full file on GitHub · 38 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. 12d ago First seen · 38 lines · 54 tokens per session scan A d73136b61c8f

Subscribe to this mod's changes

architecture-discipline is a skill published in the GitHub repository radif-ru/ai-multi-agent-system (6 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 798 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

ai-portable-setup

Erstellt einen portablen KI-Arbeitsbereich auf einem USB-Stick oder beliebigen Laufwerk. RAG-Pipeline mit lokalen LLM-Modellen (Ollama), Vektordatenbank (ChromaDB) und vorkonfigurierten Prompts.

ellmos-ai/skills · 62 tokens

ai-image-color-cycling

Generate an AI image, quantize it to a 256-color indexed palette, and produce BOTH a self-contained HTML artifact AND a perfect-loop animated GIF that bring the image to life via classic 1990s palette cycling — the trick where rotating palette entries makes water flow, fire flicker, and stars twinkle without ever…

MRWillisT/PullNexus · 272 tokens

skill-creator

Create 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 existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

MRWillisT/PullNexus · 64 tokens

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright…

MRWillisT/PullNexus · 62 tokens

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when…

MRWillisT/PullNexus · 168 tokens

frontend-slides

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

MRWillisT/PullNexus · 63 tokens