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

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

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

A set of project rules for handling input and output operations asynchronously. Asynchronous code lets the application wait for network, file, or database work without blocking other tasks.

In plain words
What is it for?
Use it when building handlers, tools, services, or agent loops that access HTTP services, files, Telegram, SQLite, or Ollama, including when wrapping synchronous libraries.
Why use it?
It prevents slow operations from freezing the application and keeps shared service clients managed consistently.

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/async-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 async-discipline

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/async-discipline"><img src="https://agentmods.dev/badge/skills/radif-ru/ai-multi-agent-system/async-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00038 $0.00472
Opus 5 $0.00019 $0.00236
Sonnet 5 $0.00008 $0.00094
Haiku 4.5 $0.00004 $0.00047

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

Security

Grade A, and why

async-discipline scanned grade A with 1 finding 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 10d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `requests.get(...)`, `time.sleep(...)`, `open(...).read()` в hot path event loop'а.
.agents/skills/async-discipline/SKILL.md · 38 lines

What it actually says

Skill: async-discipline

Правила работы с асинхронностью. Источник истины — _docs/instructions.md §4.

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

  • Пишешь handler, tool, сервис или агентный цикл, где есть I/O (HTTP, файлы, Telegram API, sqlite-vec, Ollama).
  • Интегрируешь синхронную библиотеку (sqlite3, ddgs).
  • Создаёшь клиент внешнего сервиса.

Алгоритм

  1. Любой I/O — только через await. В hot path не должно быть блокирующих вызовов.
  2. Не используй requests, time.sleep, блокирующие SDK. Разрешено: httpx.AsyncClient, ollama.AsyncClient, aiofiles (если нужно).
  3. Синхронную библиотеку оборачивай в asyncio.to_thread(...) (например, sqlite3, ddgs).
  4. Не создавай новый event loop внутри handlers/tools — всё работает в loop'е, запущенном aiogram.
  5. Общие клиенты (HTTP, Ollama, SQLite-соединение) создавай один раз на приложение и закрывай при shutdown. В __init__ tool'а — никаких сетевых вызовов, только сохранение зависимостей.
  6. Метод run у tool — всегда async, даже если работа синхронная (единый контракт).

Пример

Синхронный поиск через ddgs внутри async-tool:

results = await asyncio.to_thread(lambda: DDGS().text(query, max_results=top_k))

Чего избегать

  • requests.get(...), time.sleep(...), open(...).read() в hot path event loop'а.
  • asyncio.run(...) / new_event_loop() внутри handlers и tools.
  • Создания нового HTTP/Ollama-клиента на каждый запрос вместо переиспользования общего.
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. 10d ago First seen · 38 lines · 38 tokens per session scan A 17d24da53095

Subscribe to this mod's changes

async-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 38 tokens to every session and 472 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

n8n-mcp-workflows

MCP-first patterns for designing, validating, and operating n8n automations with explicit retries, failure paths, and audit trails.

MRWillisT/PullNexus · 35 tokens

gmail-sync

API integration skill that fetches Gmail messages, syncs inbox labels, and processes attachments via the Gmail REST API. Use when fetching new emails, syncing inbox state, triaging unread messages, exporting mail data, or integrating Gmail into automated workflows.

Alex8791-cyber/cognithor · 52 tokens

api-request

Send HTTP API requests using curl. Use when the user asks to call an API, fetch data from a URL, send POST/PUT/PATCH/DELETE requests, work with REST or GraphQL endpoints, upload files, authenticate with Bearer tokens or API keys, debug HTTP responses, or interact with any web service via HTTP.

bug-ops/zeph · 69 tokens

svg-chart

Render data into a standalone SVG chart file — bar, line, or pie. Use when the user provides numbers (inline, JSON, or CSV) and asks for a chart, graph, plot, trend, comparison, breakdown, or any visual summary of the data. Produces a self-contained .svg viewable in any browser; no external libraries required.

NUGURI-7/CoCoWork · 75 tokens

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

backend-integrator

Complete guide for integrating a new LLM backend into MassGen. Use when adding a new provider (e.g., Codex, Mistral, DeepSeek) or when auditing an existing backend for missing integration points. Covers all 15 files that need touching.

massgen/MassGen · 57 tokens