haira: Skill for Claude Code

.claude/skills/haira-compiler/SKILL.md

haira-compiler is a skill for Claude Code from mrzdevcore/haira. It costs 96 tokens per session (3,209 once invoked), scanned A, original, Apache-2.0.

A development guide for the Haira compiler, which turns Haira source code into Go code and then into a program.

In plain words
What is it for?
Use it when working on Haira's lexer, parser, type checker, code generator, runtime, or abstract syntax tree.
Why use it?
It gives contributors the compiler's processing order and internal structure when changing or debugging the language implementation.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is mrzdevcore/haira's own configuration. It tells Claude Code how to work on haira itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything haira configures →

Part of the haira plugin — 2 skills shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to mrzdevcore/haira. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mrzdevcore/haira/main/.claude/skills/haira-compiler/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mrzdevcore/haira

Made for: Claude Code.

Or install haira, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for haira-compiler

README.md
[![agentmods](https://agentmods.dev/badge/skills/mrzdevcore/haira/haira-compiler/github.svg)](https://agentmods.dev/skills/mrzdevcore/haira/haira-compiler)
Your own site
<a href="https://agentmods.dev/skills/mrzdevcore/haira/haira-compiler"><img src="https://agentmods.dev/badge/skills/mrzdevcore/haira/haira-compiler/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for haira-compiler

Your own site · 80×15
<a href="https://agentmods.dev/skills/mrzdevcore/haira/haira-compiler"><img src="https://agentmods.dev/badge/skills/mrzdevcore/haira/haira-compiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.03209
Opus 5 $0.00048 $0.01605
Sonnet 5 $0.00019 $0.00642
Haiku 4.5 $0.00010 $0.00321

Measured 9d ago against content hash 3e96bf20e161, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

haira-compiler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/haira-compiler/SKILL.md · 367 lines

How it starts

The opening of the file, as written. The whole thing — 367 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Haira Compiler — Development Guide

Pipeline (immutable order)

Source (.haira) -> Lexer -> Parser -> Resolver -> Checker -> Codegen -> go build -> Binary

No AI phase in the compiler. All LLM interaction happens at runtime through agent method calls.

Directory Structure

compiler/
  main.go                          # CLI entry: build, run, parse, check, lex, emit, lsp
  go.mod                           # Go 1.22, zero external dependencies
  internal/
    token/token.go                 # TokenKind constants, Token struct
    lexer/lexer.go                 # Hand-written scanner
    ast/ast.go                     # AST nodes (Go interfaces as sum types), Span, Spanned[T]
    parser/parser.go               # Recursive descent + Pratt expression parsing
    resolver/resolver.go           # Multi-file import resolution
    checker/checker.go             # Type checking + semantic analysis (2 passes)
    codegen/
      codegen.go                   # 8-pass emission orchestrator
      emitter.go                   # Low-level Go source emitter (buffer + indent)
      expressions.go               # Expression-to-Go conversion
      statements.go                # Statement emission
      agentic.go                   # Provider/tool/agent/workflow emission
      stdlib.go                    # Standard library function mapping
      types.go                     # Haira-type-to-Go-type conversion
      project.go                   # Temp project setup + go build invocation
    driver/driver.go               # Pipeline orchestrator
    errors/errors.go               # Diagnostic system (Diagnostic, PrettyPrint)
    formatter/                     # Source code formatter
    lsp/                           # Language server protocol
    manifest/                      # package.haira handling
    runtime/
      runtime.go                   # go:embed bundle.tar.gz
      embedded/haira/*.go.src      # Runtime source files (renamed to avoid compilation)

Read the full file on GitHub · 367 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 367 lines · 96 tokens per session scan A 3e96bf20e161

Subscribe to this mod's changes

haira-compiler is a skill published in the GitHub repository mrzdevcore/haira (5 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 96 tokens to every session and 3,209 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.