improve-agent-setup — скилл для Claude Code
Скилл improve-agent-setup для Claude Code разбирает ошибки в записях сессий агента и предлагает улучшения для его инструкций. Запускается по просьбе найти повторяющуюся ошибку или оценить, помогло ли изменение правила.
MIT ★ 149 обновлён 2026-11-16
npx skills add jackulau/coding.sh --skill improve-agent-setup -a claude-codeЧто делает improve-agent-setup
Скилл ищет повторяющиеся сбои в записанных сессиях репозитория и находит строку в AGENTS.md или CLAUDE.md, которая может их исправить. Он открывает пример сессии для проверки проблемы, а затем сообщает о прошлых изменениях и их результатах.
Для оценки правки скилл сравнивает сессии до и после коммита: учитывает число сбоев и то, следовал ли агент новым правилам. При регрессии открывает свежую проблемную сессию. Данные читает через MCP-сервер coding.sh; он использует сессии, записанные на этой машине. Файлы инструкций скилл меняет только после согласия пользователя.
Какие задачи решает
- найти частую ошибку агента в записях сессий
- проверить, подтверждает ли пример сессии найденную проблему
- сопоставить сбои до и после коммита с правилом
- выяснить, следует ли агент новой строке инструкции
Примеры запросов агенту
- Найди повторяющиеся ошибки агента в этом репозитории.
- Почему агент снова допускает эту ошибку? Проверь записи сессий.
- Сравни сессии до и после коммита с изменением в
AGENTS.md.
Как установить improve-agent-setup
1Через Skills CLI (Vercel)
npx skills add jackulau/coding.sh --skill improve-agent-setup -a claude-code2Вручную: положить файлы
~/.claude/skills/improve-agent-setup/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/improve-agent-setup/
1Через Skills CLI (Vercel)
npx skills add jackulau/coding.sh --skill improve-agent-setup -a codex2Вручную: положить файлы
.agents/skills/improve-agent-setup/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jackulau/coding.sh --skill improve-agent-setup -a cursor2Вручную: положить файлы
.cursor/skills/improve-agent-setup/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jackulau/coding.sh packages/coding.sh/skills/improve-agent-setup2Вручную: положить файлы
.github/skills/improve-agent-setup/SKILL.md1Через Skills CLI (Vercel)
npx skills add jackulau/coding.sh --skill improve-agent-setup -a gemini-cli2Командой платформы
gemini skills install https://github.com/jackulau/coding.sh --path packages/coding.sh/skills/improve-agent-setupВручную: положить файлы
.devin/skills/improve-agent-setup/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об improve-agent-setup
Как установить improve-agent-setup в Claude Code?
Выполни npx skills add jackulau/coding.sh --skill improve-agent-setup -a claude-code. Файл скилла находится по пути ~/.claude/skills/improve-agent-setup/SKILL.md.
Что делает improve-agent-setup?
Он находит повторяющиеся проблемы в записанных сессиях, связывает их с инструкциями агента и сравнивает результаты до и после изменения. Правки файлов вносит только после согласия пользователя.
Что нужно для работы improve-agent-setup?
Нужен MCP-сервер coding.sh и записанные на этой машине сессии агента.
Исходный текст
SKILL.md · MIT
--- name: improve-agent-setup description: "Finds what goes wrong most in this repo's recorded agent sessions and the AGENTS.md or CLAUDE.md line that fixes it, then checks whether a committed change helped. Use when the user asks to improve their agent setup, asks why the agent keeps repeating a mistake, or asks whether an AGENTS.md, CLAUDE.md, rule or skill change worked." license: MIT --- # Improve the agent setup Uses three tools of the coding.sh MCP server: `improve`, `harness_changes` and `session_get`. They read sessions recorded on this machine and change nothing. ## Find what to fix 1. Call `improve`. Pass `repo` only when the user means a repo other than the one you are in. 2. Take the first entry of `issues`. Open its `example.sessionId` with `session_get` and check that the session shows the problem. Say what you found in one or two sentences. If the session does not show it, say so and take the next issue. 3. When the issue has `line` and `file`, show the user both. Add the line only after they say yes. When it has no `line`, tell the user what to do from `fix`: no instruction line fixes it. When it has `quietSince`, it has not come back since that change: say the change may have fixed it, and do not propose a new line. 4. After the edit, tell the user to commit the file. The verdict on a change comes from sessions recorded after its commit. 5. When `changes` is not empty, give each earlier change's `verdict` and `reason` in one sentence. When `issues` is empty, say so and give `scope.sessions`, the number of sessions it read. With few sessions, call `status` to check that sessions are being captured. ## Check whether a change helped 1. Call `harness_changes`. Pass `commit` when the user names one. 2. For each change, give `verdict` and `reason` with the counts behind them: sessions and flagged sessions in `before` and `after`, and `rules`, which says how often the agent followed each new line before and after. 3. Use the table for what to say next. 4. List `after.flaggedSessions` with their flags. For `regressed`, open the newest one with `session_get` and say what went wrong. | Verdict | What to tell the user | |---|---| | `helped` | Fewer sessions went wrong after the change. Give the counts. | | `regressed` | More sessions went wrong after it. Show the flagged sessions and offer to revert the line. | | `followed-no-effect` | The agent follows the new line, but the failures did not fall. Give the command in `next`. | | `costlier` | Sessions after it do more work and the failures did not fall. Give the command in `next`. | | `no-clear-change` | The difference could be chance. More sessions will narrow it. | | `too-early` | Fewer than 5 sessions ran with the change. Ask again after more sessions. | | `no-sessions-after` | No session ran with the change yet. | | `no-baseline` | No session ran before the change, so there is nothing to compare with. | ## Rules - Never edit AGENTS.md, CLAUDE.md, a rule or a skill before the user says yes. - Do not claim more than the numbers show. A verdict from a handful of sessions is a hint. - A command in `next` can run for minutes and can call a model. Give it to the user to run.
© jackulau · MIT · jackulau/coding.sh