From f15052d15aec15c580c53df6b04bc83acd6760c4 Mon Sep 17 00:00:00 2001 From: Dmitry Dementev Date: Thu, 9 Apr 2026 20:08:45 +0300 Subject: [PATCH] =?UTF-8?q?fix(skill):=20=D1=83=D0=B1=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BF=D1=80=D0=B5=D0=B2=D0=B5=D0=BD=D1=82=D0=B8=D0=B2?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20env-=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20Agent=20Teams?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Зачем: - проверка через Bash триггерила permission prompt, создавая лишний UX-барьер до начала работы. - Что: - удалена секция Prerequisites check с явной проверкой CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS. - добавлен fallback: если спавн тиммейта не удался — сообщить пользователю, как включить Agent Teams. - добавлена рекомендация не создавать вспомогательные файлы (memory, state, logs). - Проверка: - /claude-team-review — не должно быть промпта на echo $ENV_VAR. Co-Authored-By: Claude Opus 4.6 (1M context) --- SKILL.md | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/SKILL.md b/SKILL.md index 3c30595..94c0bbb 100644 --- a/SKILL.md +++ b/SKILL.md @@ -30,19 +30,6 @@ Maximum 5 rounds. - `/claude-team-review ` — review a specific file (argument contains `/` or `.`) - `/claude-team-review xhigh` — use max effort for the reviewer -## Prerequisites check - -Before proceeding, verify Agent Teams are available: -1. Check that `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` is set to `1`. -2. If not — tell the user: - ``` - Agent Teams are not enabled. Add this to your settings.json or environment: - CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 - Then restart Claude Code. - ``` - ---- - ## Instructions ### Step 1: Determine review mode @@ -78,6 +65,13 @@ enough context to start. The reviewer is a full Claude Code session — it will explore the repo, run git commands, and read files on its own. Do not pre-collect diffs or file lists for it. +If spawning the teammate fails (Agent Teams not available), tell the user: +``` +Agent Teams are not enabled. Add this to your settings.json or environment: +CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 +Then restart Claude Code. +``` + **For plan review:** If the plan exists as a file: @@ -241,6 +235,8 @@ Do NOT delete plan files that existed before the review. - Maximum 5 rounds to protect against infinite loops - Show the user reviews and fixes for each round - If Agent Teams are not enabled — tell the user how to enable them +- Avoid creating auxiliary files (memory files, state files, logs, temporary + markdown) — prefer working within the conversation context - If a fix contradicts user requirements — skip and explain why - The reviewer teammate is stateful — use message, not re-spawn, for subsequent rounds. Re-spawning wastes tokens on re-reading the project