kind: InlineAgentSkill
content: |
  ---
  name: brainstem-doctor
  description: Diagnose this brainstem from the inside — which agents and skills are loaded, what is quarantined, whether Copilot sign-in is healthy — and explain any problem in plain words. Use when the user asks "is the brainstem healthy", "why isn't my agent loading", "what skills do I have", or "doctor".
  argument-hint: "[what to check]"
  allowed-tools: run_skill_script read_skill_file
  ---

  # Brainstem doctor

  1. Run the bundled check with the `run_skill_script` tool:
     `skill=brainstem-doctor`, `script=scripts/check.py`. It prints JSON: agents, skills,
     quarantined files with reasons, skill problems, and the skill roots being scanned.
  2. Read the JSON. For each quarantined file or skill problem, say the file, the reason,
     and the one-line fix (rename the class, fix the metadata schema, add a description,
     make the directory name match the `name` field).
  3. If the user asked about something specific ($ARGUMENTS), answer that first.
  4. Finish with one sentence: healthy, or the single most important thing to fix.

  Keep the whole answer under 150 words unless the user asks for detail.
