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.
curl -O https://raw.githubusercontent.com/radif-ru/ai-multi-agent-system/main/.agents/skills/testing-discipline/SKILL.mdgit clone --depth 1 https://github.com/radif-ru/ai-multi-agent-systemWrote 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.
[](https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/testing-discipline)<a href="https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/testing-discipline"><img src="https://agentmods.dev/badge/skills/radif-ru/ai-multi-agent-system/testing-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.
<a href="https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/testing-discipline"><img src="https://agentmods.dev/badge/skills/radif-ru/ai-multi-agent-system/testing-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.00632 |
| Opus 5 | $0.00018 | $0.00316 |
| Sonnet 5 | $0.00007 | $0.00126 |
| Haiku 4.5 | $0.00004 | $0.00063 |
Grade A, and why
testing-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 8d 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.
What it actually says
Skill: testing-discipline
Правила тестирования этого проекта. Источник истины — _docs/testing.md и _docs/instructions.md §8.
Когда использовать
- Пишешь или меняешь код в
app/— нужен unit-тест на новое поведение. - Готовишь задачу к коммиту — нужен зелёный
pytest -q. - Чинишь баг — нужен падающий тест, воспроизводящий дефект.
Не использовать для чисто-документационных задач (правят только _docs/, _board/, README.md, .env.example, app/skills/, app/prompts/) — они освобождены от теста, в DoD ставится n/a.
Алгоритм
- Размести тест зеркально коду:
tests/<пакет>/test_<name>.py. - Используй
pytest+pytest-asyncio(asyncio_mode = "auto"), фикстуруmocker. - Замокай все внешние системы (никакой реальной сети):
- Telegram:
Message/Bot→MagicMock/AsyncMock; - Ollama:
mocker.patch.object(client, "chat"/"embed", ...); ddgs:mocker.patch("ddgs.DDGS.text", ...);httpx:MockTransport/respx;app/skills/,app/prompts/: путь →tmp_path.
- Telegram:
- Исключение:
SemanticMemoryтестируй с реальнымsqlite-vecнаtmp_path; если extension не грузится —pytest.skip. - Покрой happy path, ошибки домена (
ToolError,LLMTimeout,LLMUnavailable,LLMBadResponse,ArgsValidationError), границы (пустой результат, усечение до лимита, превышение лимитов цикла). - При необходимости проверь логи через
caplog(step=,tool=<name>,status=). - Прогон:
pytest -q— зелёный. Цель покрытия:app/≥ 70%,services//agents//tools/≥ 85%,app/agents/protocol.py— 100%.
Чего избегать
- Реальных вызовов Telegram / Ollama / интернета.
- Маскировки падений через
pytest -k/skipвместо починки. - Ослабления или удаления существующих тестов без явного указания.
- Недетерминизма (зависимость от времени, порядка, внешних данных).
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.
- 8d ago First seen · 39 lines · 37 tokens per session scan A 58b56a9143e9
testing-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 37 tokens to every session and 632 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-31.
Other skills, from other repositories
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
skill-authoring
Use when creating new skills, editing existing skills, or verifying skills work before deployment. Applies TDD methodology to skill documentation.
python-testing
Guidelines for writing and running tests in the Agent Framework Python codebase. Use this when creating, modifying, or running tests.
neuron-test-engineer
Write tests for Neuron AI agents, RAG systems, workflows, and tools using the built-in testing utilities. Use this skill when the user mentions testing agents, writing unit tests, mocking AI providers, testing tool execution, verifying RAG retrieval, testing workflow behavior, or creating test cases for Neuron AI…
test-writer
How to write pytest tests for modules in this workspace. Load whenever you are about to write or extend tests.