OpenParable
Skip to content
← Back to skills

Error Messages

Development

Error Messages is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Expert skill for designing and implementing high-quality compiler error messages

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/programming-languages/skills/error-messages/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/error-messages-e34040ed, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Error Messages Skill

Overview

Expert skill for designing and implementing high-quality compiler error messages.

Capabilities

  • Design clear, actionable error message templates
  • Implement source context display with underlines
  • Generate fix suggestions and quick fixes
  • Handle error cascades and suppression
  • Implement multi-span error annotations
  • Support machine-readable error output (JSON)
  • Implement color/styled terminal output
  • Design error recovery strategies for better diagnostics

Target Processes

  • error-message-enhancement.js
  • parser-development.js
  • type-system-implementation.js
  • semantic-analysis.js
  • lsp-server-implementation.js

Dependencies

Elm/Rust error message guidelines

Usage Guidelines

  1. Clarity: Make error messages clear and actionable
  2. Context: Show relevant source code context with precise location
  3. Suggestions: Provide fix suggestions when possible
  4. Cascades: Suppress cascading errors to avoid overwhelming users
  5. Machine-Readable: Support JSON output for tooling integration

Output Schema

{
  "type": "object",
  "properties": {
    "errorFormat": {
      "type": "string",
      "enum": ["human", "json", "sarif"]
    },
    "features": {
      "type": "array",
      "items": { "type": "string" }
    },
    "colorSupport": { "type": "boolean" },
    "generatedFiles": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}