validated-structured-output

validated-structured-output is a skill for Claude Code, Codex from Firstp1ck/pi-coding-agent-forge. It costs 45 tokens per session (622 once invoked), scanned A, original, MIT.

A workflow for producing output in a fixed, checkable format such as JSON, CSV, a list of allowed values, plain text, or a Markdown checklist. It checks the shape and stated limits of the result.

In plain words
What is it for?
It helps require exact JSON fields, limit CSV columns and rows, enforce an approved status value, or validate a bounded checklist.
Why use it?
It prevents malformed or extra fields from breaking systems that consume the response. It does not by itself prove that the information in the output is factually correct.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps require exact JSON fields, limit CSV columns and rows, enforce an approved status value, or validate a bounded checklist.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/firstp1ck/pi-coding-agent-forge/validated-structured-output
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 Firstp1ck/pi-coding-agent-forge --skill validated-structured-output
Clone the repo
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge

Made for: Claude Code, Codex.

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 validated-structured-output

README.md
[![agentmods](https://agentmods.dev/badge/skills/firstp1ck/pi-coding-agent-forge/validated-structured-output/github.svg)](https://agentmods.dev/skills/firstp1ck/pi-coding-agent-forge/validated-structured-output)
Your own site
<a href="https://agentmods.dev/skills/firstp1ck/pi-coding-agent-forge/validated-structured-output"><img src="https://agentmods.dev/badge/skills/firstp1ck/pi-coding-agent-forge/validated-structured-output/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 validated-structured-output

Your own site · 80×15
<a href="https://agentmods.dev/skills/firstp1ck/pi-coding-agent-forge/validated-structured-output"><img src="https://agentmods.dev/badge/skills/firstp1ck/pi-coding-agent-forge/validated-structured-output.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 622 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.00045 $0.00622
Opus 5.5 $0.00018 $0.00249
Sonnet 5.5 $0.00009 $0.00124
Haiku 4.5 $0.00005 $0.00062

Measured 1mo ago against content hash 085dd49b470d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

validated-structured-output 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (tests/test_skill_contract.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

pi-extension-small-modal-reliability/skills/validated-structured-output/SKILL.md · 52 lines

How it starts

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

Validated structured output

Use this skill when the task needs a mechanically checkable response shape. Validation proves only the declared shape and bounded checks; it does not prove facts, extraction correctness, or behavior.

When to use

Should trigger

  • “Return exactly one approved status from this list.”
  • “Produce JSON with these fields and no extra properties.”
  • “Give me a CSV with these columns and no more than 20 rows.”

Should not trigger

  • “Research whether this claim is true.”
  • “Fix this repository bug.”
  • “Write a normal explanation with no machine-checkable shape.”

Inputs

Identify the desired format, fields or columns, required values, size limits, whether human semantic review remains required, and the candidate output. Keep the contract declarative JSON. Do not include commands, remote schema references, regexes, templates, or executable expressions. A literal URL value does not authorize network access.

Portable workflow

  1. State the smallest output shape that can be checked mechanically.
  2. Express it as a bounded declarative contract: JSON schema subset, CSV columns, enum values, string limits, or checklist items.
  3. Inspect the full contract or its hash-bound artifact before activation.
  4. Validate the candidate for syntax and declared structure.
  5. Mark factual, extraction, interpretation, and behavioral claims for independent evidence or human review.
  6. Stop after the original candidate plus at most two repairs; escalate rather than looping.

Safety boundary

Do not treat a schema pass as factual correctness. Do not execute contract content, fetch referenced resources, compile generated code, follow URLs, or silently repair unlimited candidates. Reject malformed or oversized contracts and candidates.

Verification

Report the contract identifier or hash, candidate attempt count, syntax result, structural result, semantic-review requirement, and any unresolved human review. A pass may mean only that the output matches the declared form.

Read the full file on GitHub · 52 lines

Files

What ships with it

2 files 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. 1mo ago First seen · 52 lines · 45 tokens per session scan A 085dd49b470d

Subscribe to this mod's changes

validated-structured-output is a skill published in the GitHub repository Firstp1ck/pi-coding-agent-forge (91 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 622 once invoked, about $0.0002 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-09-14.

Related

Other skills, from other repositories

convex-component-authoring

How to create, structure, and publish self-contained Convex components with proper isolation, exports, and dependency management.

waynesutton/convexskills · 28 tokens

npm-docs

Use this skill whenever the user asks about npm, package management, publishing packages, semantic versioning, npm CLI commands, or Node.js dependencies. Covers npm 12.x including the registry, scopes, organizations, security (audit, provenance, 2FA), CI/CD integration, workspaces, scripts, .npmrc configuration, and…

pledgeandgrow/pledge-skills · 91 tokens

convex-component-authoring

How to create, structure, and publish self-contained Convex components with proper isolation, exports, and dependency management.

J-StaR-Films-Studios/VibeCode-Protocol-Suite · 28 tokens

dependency-manager

Manage project dependencies — update packages, audit vulnerabilities, resolve conflicts, and keep dependencies healthy. Use when updating packages, fixing vulnerability alerts, or resolving dependency issues.

asgarovf/locusai · 35 tokens

colab-finetuning

Fine-tune LLMs on Google Colab GPUs directly from openscience. Connects to Colab runtimes via WebSocket bridge for remote training with Unsloth. Supports SFT, GRPO, DPO, vision, and TTS workflows on free T4 to Pro A100 GPUs.

synthetic-sciences/openscience · 67 tokens

swarm-pr-review

Run a graph-guided, tool-augmented PR review using context packing, parallel exploration, mandatory repository-agnostic risk-family coverage with dispatch scaled to diff size and risk, independent reviewer validation, critic challenge, and metrics writeback. Use for deep pull request review with low false-positive…

ZaxbyHub/opencode-swarm · 91 tokens