Agent Skills

monitoring-terminal-errors

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.

Install

npx skills add https://github.com/spencerpauly/awesome-cursor-skills --skill monitoring-terminal-errors
SKILL.md

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:

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

Related skills

azure-diagnosticsmicrosoft608KDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, troubleshoot functions, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, aazure-preparemicrosoft608KPrepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azazure-aimicrosoft608KUse for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.azure-deploymicrosoft607KExecute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: \"run azd up\", \"run azd deploy\", \"execute deployment\",

Search skills and MCP servers

Fuzzy search across 23,137 skills and servers