Runtime Validation

Runtime Validation is a skill for Claude Code from nxtg-ai/forge-plugin. It costs 132 tokens per session (2,292 once invoked), scanned A, original, MIT.

A runtime-checking guide for validating the running application through logs, real HTTP responses, and data-integrity rules. Runtime validation checks the system in operation, beyond isolated unit tests.

In plain words
What is it for?
Use it during test or server runs to monitor logs, compare API responses with their schemas, and verify invariants such as valid relationships and bounded percentages.
Why use it?
It catches failures that can remain hidden when tests use mocks or never start the actual server, such as broken routes, schema drift, and cross-layer data problems.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the nxtg-forge plugin — 27 skills, 23 commands, 33 agents, 3 hooks, 3 MCP servers shipped together

Good fit Use it during test or server runs to monitor logs, compare API responses with their schemas, and verify invariants such as valid relationships and bounded percentages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nxtg-ai/forge-plugin/runtime-validation
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 nxtg-ai/forge-plugin --skill runtime-validation
Clone the repo
git clone --depth 1 https://github.com/nxtg-ai/forge-plugin

Made for: Claude Code.

Or install nxtg-forge, the plugin that ships this one along with the rest of its 27 skills, 23 commands, 33 agents, 3 hooks, 3 MCP servers.

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 Runtime Validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/nxtg-ai/forge-plugin/runtime-validation/github.svg)](https://agentmods.dev/skills/nxtg-ai/forge-plugin/runtime-validation)
Your own site
<a href="https://agentmods.dev/skills/nxtg-ai/forge-plugin/runtime-validation"><img src="https://agentmods.dev/badge/skills/nxtg-ai/forge-plugin/runtime-validation/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 Runtime Validation

Your own site · 80×15
<a href="https://agentmods.dev/skills/nxtg-ai/forge-plugin/runtime-validation"><img src="https://agentmods.dev/badge/skills/nxtg-ai/forge-plugin/runtime-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,292 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 58
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 173
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00132 $0.02292
Opus 5 $0.00066 $0.01146
Sonnet 5 $0.00026 $0.00458
Haiku 4.5 $0.00013 $0.00229

Measured 6d ago against content hash 6345aae690ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

Runtime Validation 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 6d 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.

plugins/nxtg-forge/skills/runtime-validation/SKILL.md · 186 lines

How it starts

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

Runtime Validation

Unit tests assert on mocked inputs and isolated functions. Runtime validation asserts on the actual running system — logs, real HTTP responses, and cross-layer data. A suite can be 100% green while the product is broken, because the mocks never hit the code path that fails. This skill is the discipline that closes that gap.

Why this exists (real forge incident, not hypothetical)

hooks/scripts/smoke-test-reminder.sh in this plugin carries the origin verbatim:

On 2026-02-06, an agent spent an entire day writing 2326 mock unit tests while the actual product was broken. A duplicate placeholder route intercepted all real requests. Nobody caught it because nobody started the actual server.

That is the whole thesis: a passing mock suite is not evidence the running system works. The three techniques below are how you get that evidence.

The three techniques

Technique What it observes Catches
Log monitoring app logs during a test/server run validation errors, stack traces, swallowed exceptions the assertion never saw
Contract validation real HTTP responses vs their schema schema drift, missing/renamed fields, type mismatches between layers
Invariant checking derived data values math/domain violations (density > 1.0, negative counts, % > 100)

Runtime validation composes with your existing tests — it does not replace them. Run the unit suite for logic, then observe the running system for everything the mocks hid.

1. Log monitoring during test/server runs

The cheapest, highest-yield technique: watch the app's own logs for error signatures while you exercise it, and fail the run if any appear — even when every assertion passed.

# Tail logs while a test or smoke run executes; fail on known error signatures.
: > logs/app.log                      # truncate so you only see this run
npx vitest run                        # or: cargo test / pytest / your smoke script
if grep -Eiq 'validation error|panicked at|Input should be|type=\w+_error|Unhandled' logs/app.log; then
  echo "RUNTIME ERRORS in logs despite green suite:" >&2
  grep -Ei 'validation error|panicked at|Input should be|type=\w+_error|Unhandled' logs/app.log >&2
  exit 1
fi

Read the full file on GitHub · 186 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. 6d ago First seen · 186 lines · 132 tokens per session scan A 6345aae690ee

Subscribe to this mod's changes

Runtime Validation is a skill published in the GitHub repository nxtg-ai/forge-plugin (5 stars, last pushed today), licensed MIT. It adds 132 tokens to every session and 2,292 once invoked, about $0.0007 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-09-03.