bradygaster/squad-irl/dynamic-json-guardrails

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Validate model JSON responses with strict schema checks and deterministic fallback

Install

npx vskill@latest install bradygaster/squad-irl/dynamic-json-guardrails

SKILL.md

Context

When model output drives user-facing flows, malformed JSON or partial objects can break demos and produce silent failures.

Pattern

  • Prompt for a strict JSON schema with explicit required keys and limits.
  • Validate response shape aggressively: object type, required fields, array bounds, per-item required string fields.
  • Reject (not partially accept) responses that exceed max item constraints.
  • On validation/runtime failure, switch to deterministic fallback logic and log a user-visible warning.

Example

  • mood-playlist-builder/index.ts: dynamic playlist generation via Squad SDK with warning-backed fallback.
  • mood-playlist-builder/mood-logic.ts: strict output validation and deterministic fallback resolver.

Anti-Patterns

  • Silently dropping malformed entries and pretending the model response was valid.
  • Accepting oversized arrays and truncating without signaling validation failure.
  • Hiding model connectivity failures from users.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bradygaster/squad-irl/dynamic-json-guardrails/badge)](https://verified-skill.com/skills/bradygaster/squad-irl/dynamic-json-guardrails)

Something wrong with this skill or its page? Tell us.