nifra-errors

nifra-errors is a skill for Claude Code from nifrajs/nifra. It costs 79 tokens per session (17,285 once invoked), scanned A, original, MIT.

A reference skill that maps stable Nifra error codes and development-overlay findings to their causes, fixes, and verification steps. Nifra is a web development framework or tool with its own diagnostics.

In plain words
What is it for?
Use it to repair Nifra build and runtime errors, including backend code being imported into browser code and Solid 2.0 reactivity diagnostics.
Why use it?
It turns cryptic error codes into specific repair steps and helps prevent fixes that break the server and browser boundary.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the nifra plugin — 5 skills shipped together

Good fit Use it to repair Nifra build and runtime errors, including backend code being imported into browser code and Solid 2.0 reactivity diagnostics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nifrajs/nifra/nifra-errors
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nifrajs/nifra --skill nifra-errors
Clone the repo
git clone --depth 1 https://github.com/nifrajs/nifra

Made for: Claude Code.

Or install nifra, the plugin that ships this one along with the rest of its 5 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 nifra-errors

README.md
[![agentmods](https://agentmods.dev/badge/skills/nifrajs/nifra/nifra-errors/github.svg)](https://agentmods.dev/skills/nifrajs/nifra/nifra-errors)
Your own site
<a href="https://agentmods.dev/skills/nifrajs/nifra/nifra-errors"><img src="https://agentmods.dev/badge/skills/nifrajs/nifra/nifra-errors/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 nifra-errors

Your own site · 80×15
<a href="https://agentmods.dev/skills/nifrajs/nifra/nifra-errors"><img src="https://agentmods.dev/badge/skills/nifrajs/nifra/nifra-errors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 17,285 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.00079 $0.17285
Opus 5.5 $0.00032 $0.06914
Sonnet 5.5 $0.00016 $0.03457
Haiku 4.5 $0.00008 $0.01728

Measured today against content hash dc573cb9d074, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nifra-errors 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 today.

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.

packages/skills/skills/nifra-errors/SKILL.md · 1,521 lines

How it starts

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

Nifra: repairing from an error code

Generated from the catalogs nifra explain answers from; do not edit by hand (bun run gen:errors). Find the code in the error or finding, jump to its heading (the lower-cased code), apply the fix, then run the verify step. A code is stable forever: it is never renumbered or reused.

nifra explain <code-or-message> returns the same entry live, with the frame in your source.

Runtime and build errors

NIFRA_BACKEND_ONLY_IN_CLIENT

Cause: A module that imports the @nifrajs/web/backend-only marker was reachable from a client entry, so it would ship to the browser.

Fix: Follow the import chain in the message and move the module under backend/, reached from the route's x.backend.ts (loader/action) or a *.fn.ts server function.

Ways to fix it:

  • Load it on the server: Move the module under backend/ and call it from the route's x.backend.ts loader or action; the page receives the result through loaderOutput/actionOutput.
  • Make it a server function: Move the call into a backend/*.fn.ts server function and import that from the page; the browser bundle gets a stub that calls the server.

Docs: https://nifra.dev/docs/errors#backend-only-in-client

NIFRA_BACKEND_IN_CLIENT

Cause: Browser code imported a module the zones keep on the server: backend/, a route's x.backend.ts, a server package, or a module outside every zone.

Fix: Reach backend code through the route's x.backend.ts (loader/action) or a *.fn.ts server function; put code both sides need in shared/. The message names the import chain.

Ways to fix it:

  • Load it on the server: Call the backend code from the route's x.backend.ts loader or action and pass the result to the page through loaderOutput/actionOutput.
  • Make it a server function: Wrap the call in a backend/*.fn.ts server function and import that from the page; the browser bundle gets a stub that calls the server.
  • Share pure code: If the imported code needs nothing from the server (no secrets, database or Node APIs), move it to shared/ so both sides may import it.

Read the full file on GitHub · 1,521 lines

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. today Changed · +8 lines dc573cb9d074
  2. 2d ago Changed · +60 lines 8b77f32183b9
  3. 9d ago First seen · 1,453 lines · 79 tokens per session scan A 11dfddc54c1b

Subscribe to this mod's changes

nifra-errors is a skill published in the GitHub repository nifrajs/nifra (7 stars, last pushed today), licensed MIT. It adds 79 tokens to every session and 17,285 once invoked, about $0.0003 per session on Opus 5.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-11-21.

Related

nifra-errors compared with skills from other repositories

nifra-errors next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nifra-errorsnifrajs/nifraSkill7todayMITA79Claude Code
flywheelveryfront/veryfront-codeSkill20todayApache-2.0A26Claude Code, Codex
detect-ssr-leakcabloy/cabloySkill9872d agoMITC75Claude Code
debug-buildveryfront/veryfront-codeSkill20todayApache-2.0A14Claude Code, Codex
debug-runtimeveryfront/veryfront-codeSkill20todayApache-2.0A15Claude Code, Codex
deep-investigationvercel/eveSkill6.1ktodayApache-2.0A28Claude Code, Codex
suggest-follow-upsvercel/eveSkill6.1ktodayApache-2.0A49Claude Code, Codex