Why compiler-verified skills leave less to review in your agent’s Nim

Maintained instructions, tested against the real Nim compiler, so your agent does the careful work before you review.

The problem: Nim that passes and still needs a careful reviewer

Code models are weaker on low-resource languages, and Nim is one.9 Even code that builds and passes its tests can be missing the work a careful Nim engineer adds: a trimmed and confirmed reproducer, a record of the bug a port inherits, one validation at the trust boundary. Your review has to ask for it, run after run.

Guidance can close that gap only if the guidance is right, and Nim’s sharpest rules are where fluent advice goes wrong. The dangerous mistakes compile: ownership hooks that crash on legal reuse, copy guards that miss aliasing, fuzz harnesses that die on an empty input. They pass the happy-path test and fail in production.

In each example the code reads as correct, and the failure appears only when a test reuses a moved-from value, counts hook calls on raw storage or runs an aliased copy under valgrind. See three real examples →

A skill helps only if its guidance is right

Claude Code and Codex both ship skill creators.1 A drafted skill is only as good as the testing behind it.

SkillsBench measured this directly. Curated skills raised task success by about 16 percentage points. Skills that models wrote for themselves gave no average gain.2 In the authors’ words, models “cannot reliably author the procedural knowledge they benefit from consuming.”

Generated skills improve with a test loop.3 For Nim, that loop is test programs run against the real compiler, in debug and release, on every new build. That loop is our product.

Our earlier trials compared verified skills directly with their unverified drafts. Verification improved the result on all three tasks tested: bug reports, a C port and error handling. See the comparison and its limits.

Docs for lookup, skills for the work

Context7 indexes Nim and Nimony, and nimlangserver has an MCP mode.8 Keep them for API lookup. Docs can carry examples and safety notes too.

The skills are maintained, compiler-tested instructions for doing the work. They tell the agent to check ownership hooks against legal reuse, confirm a bug reproduces before reporting it, validate input once at the trust boundary and record the bugs a port inherits. Running those tests also found a release build that silently drops errors, which was fixed upstream.

Use both

Keep a docs MCP for lookup, add Verified Nim Skills for the work, and put a two-line pointer in AGENTS.md so the agent loads them. Copy the pointer.

Consistent work, less to review

In our latest blind benchmark, runs with and without the skills generally passed the build, tests and output checks. Without the skills, runs often skipped further checks: the confirmed reproducer, the recorded defect, the single validation at the trust boundary. With the skills, the agent passed the full set of checks in nearly every run, at low reasoning effort as well as at maximum. Each skipped check is something you notice, ask for and wait on. See the benchmark.

Why our skills are small, targeted and tested

Two studies found little or no benefit from bulk context:

  • In SkillsBench, focused sets of two or three skills beat comprehensive bundles, which came out slightly negative.2
  • An ETH study found generic context files raised inference cost by over 20% without improving success.4 Model quality also drops as input grows.5

Each of our skills covers one topic, so the agent loads one or two, not twenty. Every edit is evidence-gated: we tighten or delete before we add. Trimming one verified skill that made agents over-measure cut mean agent time per task by 44%, at the same pass rate.

Skills also have to load. Agents skip unforced skills often,67 so onboarding includes a two-line AGENTS.md pointer that tells the agent to load them.

What the skills do to cost

API spend is only part of the cost. The rest is your time reviewing unfinished work and sending the agent back. In our latest benchmark, the skills improved the work and lowered cost per passing run on DeepSeek V4.1 Flash. A skill-guided run often does more work, but far more runs pass, which also leaves fewer failed runs for you to review. See cost per passing run.

Published work, not specific to Nim, finds smaller models with good skills competing with larger models without them.26

Why a subscription, not a download

Compilers move, and correct guidance goes stale without anyone touching it. A moved library path broke all 12 tests of one skill during our own verification. Newer rules required an explicit std/syncio import. An API a skill named had been renamed.

Re-running the test suite on each new compiler build turns that drift into a list of failures, which we fix before your agent hits them. The same tests have caught wrong statements in our own skills. Fixes reach you as NYX updates. Cancel, and you keep what you received.

Give your agent a careful Nim engineer’s habits

The full verified catalog, re-tested as Nim changes.

Sources

  1. Anthropic: Improving skill-creator; OpenAI: Build skills. ↩
  2. SkillsBench, arXiv:2602.12670 (v1 figures: 24.3% → 40.6% curated; −1.3pp self-generated; v1 HTML). Not a Nim-specific study. ↩
  3. SkillAxe, arXiv:2606.10546: evaluation-guided refinement closed 47–67% of the gap to human-written skills. ↩
  4. Evaluating AGENTS.md (ICLR 2026), arXiv:2602.11988. ↩
  5. Chroma: Context rot. ↩
  6. Tessl: A proposed framework for evaluating skills. ↩
  7. Vercel: AGENTS.md outperforms skills in our agent evals. ↩
  8. Context7 library search: nimony; nimlangserver MCP. ↩
  9. MultiPL-T, arXiv:2308.09895; survey of low-resource code generation, arXiv:2410.03981. ↩