Agent skill
Error Messages
Expert skill for designing and implementing high-quality compiler error messages
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/error-messages
SKILL.md
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
- Clarity: Make error messages clear and actionable
- Context: Show relevant source code context with precise location
- Suggestions: Provide fix suggestions when possible
- Cascades: Suppress cascading errors to avoid overwhelming users
- 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" }
}
}
}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?