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.
curl -O https://raw.githubusercontent.com/mrzdevcore/haira/main/.claude/skills/haira-compiler/SKILL.mdgit clone --depth 1 https://github.com/mrzdevcore/hairaWrote 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.
[](https://agentmods.dev/skills/mrzdevcore/haira/haira-compiler)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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)
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.
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.
- 9d ago First seen · 367 lines · 96 tokens per session scan A 3e96bf20e161
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.
Other skills, from other repositories
goga-cell-cpp
C++ CODEMANIFEST contract implementation rules.
goga-cell-go
Golang rules for implementing CODEMANIFEST contracts.
goga-cell-javascript
JavaScript CODEMANIFEST contract implementation rules.
goga-cell-kotlin
Kotlin rules for implementing CODEMANIFEST contracts.
goga-cell-python
Python rules for implementing CODEMANIFEST contracts.
goga-cell-swift
Swift CODEMANIFEST contract implementation rules.