monitoring-terminal-errors — скилл для Claude Code: следит
Скилл смотрит за выводом запущенного процесса — dev-сервера, тестов, сборки — и чинит падения по стек-трейсу. Пригодится, когда сервер сыпет ошибками, а вы не хотите читать лог вручную.
npx skills add spencerpauly/awesome-cursor-skills --skill monitoring-terminal-errors -a claude-codeЧто делает monitoring-terminal-errors
Скилл берёт на себя цикл: найти терминал с нужным процессом, прочитать его вывод, вытащить из стек-трейса путь к файлу и номер строки, открыть этот файл и починить. После правки он перечитывает лог и проверяет, поднялся ли сервер — обычно хватает горячей перезагрузки. Если ошибка осталась, цикл повторяется.
Внутри описан порядок работы по шагам. Сначала агент просматривает файлы терминалов и ищет среди них тот, где крутится npm run dev, pnpm dev или python manage.py runserver. Потом ищет в выводе знакомые шаблоны: стек-трейсы вида at <function> (<file>:<line>:<col>), ошибки Node.js и Python, Unhandled Runtime Error из React и Next.js, Failed to compile, [vite] Internal server error:, error TS\d+:. Из найденного он достаёт путь, строку и текст ошибки.
Ограничение простое: после пяти попыток без результата скилл останавливается и отдаёт отчёт вам. Ещё он советует смотреть на exit_code в конце файла терминала — если он есть, процесс упал целиком и его надо перезапускать, а не править код. Каскадные ошибки лучше чинить с первой: остальные часто уходят сами.
Какие задачи решает
- найти терминал с упавшим dev-сервером среди нескольких запущенных
- вытащить из стек-трейса файл и строку с ошибкой
- починить
Module not foundпосле переезда файла - разобрать
Unhandled Runtime Errorв React или Next.js - отличить упавший процесс от ошибки, которую лечит горячая перезагрузка
Примеры запросов агенту
- посмотри, что пишет терминал с dev-сервером, и почини ошибку
- сервер падает со стек-трейсом — найди файл и исправь
- проверь лог сборки и убери
Failed to compile
Как установить monitoring-terminal-errors
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill monitoring-terminal-errors -a claude-code2Вручную: положить файлы
~/.claude/skills/monitoring-terminal-errors/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/monitoring-terminal-errors/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill monitoring-terminal-errors -a codex2Вручную: положить файлы
.agents/skills/monitoring-terminal-errors/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill monitoring-terminal-errors -a cursor2Вручную: положить файлы
.cursor/skills/monitoring-terminal-errors/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills monitoring-terminal-errors2Вручную: положить файлы
.github/skills/monitoring-terminal-errors/SKILL.md1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill monitoring-terminal-errors -a gemini-cli2Командой платформы
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/monitoring-terminal-errorsВручную: положить файлы
.devin/skills/monitoring-terminal-errors/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill monitoring-terminal-errors -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора59
Похожие
Рядом в теме «Настройка агента: память, контекст, субагенты»
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Вопросы о monitoring-terminal-errors
Как установить monitoring-terminal-errors в Claude?
Выполните npx skills add spencerpauly/awesome-cursor-skills --skill monitoring-terminal-errors -a claude-code. Файл скилла окажется по пути ~/.claude/skills/monitoring-terminal-errors/SKILL.md.
Что делает monitoring-terminal-errors?
Следит за выводом запущенного процесса, находит ошибки и стек-трейсы, переходит к нужному файлу и строке и вносит правку. Потом перечитывает лог и проверяет, что сервер восстановился.
Сколько попыток делает скилл, прежде чем остановиться?
Пять. Если после них ошибки не ушли, он прекращает цикл и сообщает вам о результате.
Исходный текст
SKILL.md · CC0-1.0
--- name: monitoring-terminal-errors description: Watch running terminal processes for crashes and stack traces. When an error appears, navigate to the failing file and line, diagnose, and fix it automatically. user-invocable: true --- # Monitoring Terminal Errors Continuously watch a running process (dev server, test runner, build) for errors and fix them as they appear. ## Workflow ### 1. Identify the Terminal List terminal files and find the one running the target process: ```bash head -n 10 <terminals_folder>/*.txt ``` Look for terminals running dev servers (`npm run dev`, `pnpm dev`, `python manage.py runserver`, etc.). ### 2. Read Terminal Output Read the full terminal file content. Search for error patterns: - **Stack traces**: `at <function> (<file>:<line>:<col>)` - **Node.js**: `Error:`, `TypeError:`, `ReferenceError:`, `ENOENT`, `ECONNREFUSED` - **Python**: `Traceback (most recent call last):` followed by `File "<path>", line <n>` - **React/Next.js**: `Unhandled Runtime Error`, `Error: ...`, `Module not found` - **Build errors**: `ERROR in`, `Failed to compile`, `SyntaxError` - **Vite**: `[vite] Internal server error:` - **TypeScript**: `error TS\d+:` ### 3. Extract the Source Location From the stack trace, extract: - File path - Line number - Error message For Node.js: `at functionName (/path/to/file.ts:42:10)` For Python: `File "/path/to/file.py", line 42, in function_name` ### 4. Navigate and Fix 1. Read the identified file around the error line 2. Understand the error (missing import, type mismatch, undefined variable, etc.) 3. Apply the fix 4. Re-read the terminal file to confirm the server recovered (hot reload should pick it up) ### 5. Loop If the server is still showing errors after the fix, repeat from step 2. Stop when: - The terminal shows a clean "compiled successfully" or equivalent - No new errors appear in the output - You've made 5 attempts without resolution (report to user) ## Tips - Check for `exit_code` in the terminal file footer — if present, the process has crashed entirely and needs a restart - Some errors cascade — fix the first/root error and the rest often disappear - For HMR errors, the fix might just be saving the file again to trigger a rebuild
© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills