Harn diagnostics

From burin-labs/harn · View interactive version

Harn diagnostics is an AI agent skill from the GitHub repository burin-labs/harn. Use for Harn diagnostics, looking up any HARN-* error code, the full code index/catalog, explain output, repair metadata, and fix application safety.

How to use this skill

Skill file

Harn diagnostics

Use this skill when changing errors, warnings, explain output, repair metadata,

or fix application behavior. Use it also when you need to look up what a

HARN-<CAT>-<NNN> code means.

Pair it with [[harn-language]] for syntax and type contracts and [[harn-agent]] for autonomy gating.

Code index (look up any HARN-* code)

Every diagnostic harn check, harn lint, and harn fmt emit carries a stable

HARN-<CAT>-<NNN> code. The code registry is the single source of truth. It is

crates/harn-parser/src/diagnostic_codes.rs, plus the per-code explanation in

crates/harn-parser/src/diagnostic_codes/explanations/<CODE>.md. Everything

below is generated from it, so never hand-maintain a parallel list.

harn explain HARN-TYP-014 --json (structured: category, summary, repair,

safety class, related codes).

--format markdown or --format json). This is the complete cheat sheet —

one entry per code with its summary, repair, and safety class.

consumed by downstream tooling (IDE diagnostic panels, hosted error pages).

Tools should read this, not regex prose.

make sync-diagnostics-catalog (CI guard: make check-diagnostics-catalog).

The category prefixes below are the mental map for the index; harn explain

resolves any individual code.

Start here

Diagnostic categories

Message rules

Structured metadata

Repair safety

Cross-surface alignment

Verify

HARN_BIN_NO_BUILD=1 ./scripts/harn_bin.sh -- test conformance --filter <name>.

HARN_BIN_NO_BUILD=1 ./scripts/harn_bin.sh -- lint <path>.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.