gemini-structured-output — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited gemini-structured-output (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Use this skill when Gemini should return validated JSON instead of prose. It covers the modern google-genai SDK path and a salvage parser for older REST-style responses.
User input:
Make Gemini return a validated verdict object for this idea score.Output:
from pydantic import BaseModel
from google import genai
class Verdict(BaseModel):
label: str
score: int
reasons: list[str]
client = genai.Client()
resp = client.models.generate_content(
model="gemini-2.5-flash",
contents="Score this idea 0-100 and label GO/NO-GO: a CLI that lints SKILL.md files.",
config={"response_mime_type": "application/json", "response_schema": Verdict},
)
verdict = Verdict.model_validate_json(resp.text)
print(verdict.label, verdict.score)For REST or older SDK paths, use extract_json() from the asset before Pydantic validation.
response_schema and set response_mime_type to application/json.resp.text back into the model.$ref, deep oneOf, and deep anyOf.Reference: assets/structured.py.
Distilled from production use across the author's automation projects. v0.1.0. See also: [[gemini-cost-tracker]].
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.