structured-output
Skill0 starsChanged 4 months agoMITView on GitHub
Produce and repair strict JSON contract output from a model turn. Use whenever a step's result is consumed by code rather than read by a human.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- InterfazeAI/interfaze-skillstheir own version, first seen Sep 10, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Jul 14, 2026
- Archive228/loopkittheir own version, first seen Jun 29, 2026
- mykaarma/kaarma-skillstheir own version, first seen Apr 28, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Archive228/loopkit★ 756same name
- nahid-sparktales/agent-dispatcher★ 59same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- InterfazeAI/interfaze-skills★ 4same name
- mykaarma/kaarma-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- adaptive-pedagogySkill
- artifact-validatorSkill
- curriculum-graph-builderSkill
- deterministic-graderSkill
- evidence-emitterSkill
- formative-assessorSkill
- goal-interpreterSkill
- graceful-degradationSkill
- incremental-deliverySkill
- interactive-lecture-deckSkill
- interactive-visual-explainerSkill
- knowledge-qaSkill
- learner-interviewSkill
- learner-state-reflectorSkill
- learning-companionSkill
- learning-reportSkill
- lesson-introSkill
- negotiationSkill
- orchestrator-policySkill
- plan-presenterSkill
- prerequisite-analyzerSkill
- product-page-component-rewriterSkill
- profile-readerSkill
- quiz-generatorSkill
- retrieval-practice-builderSkill
- review-schedulerSkill
- skill-eval-harnessSkill
- skill-forgeSkill
- socratic-proberSkill
- tool-investigatorSkill
- your-skill-nameSkill
The file
Files
结构化输出
角色
运行时的每一步都由代码消费。散文没有消费者。这个 skill 规定契约输出怎么写、怎么修。
规则
- 只输出 JSON 对象,不要 Markdown 代码围栏之外的解释、不要思考过程、不要前后寒暄。
- 契约字段齐全:缺字段比多字段更危险,缺字段会让下游拿到
None继续跑。 - 不要把大产物塞进 JSON。HTML/SVG/课件通过 artifact 工具写文件,JSON 里只放回执。
- 枚举值用契约里的原文,不要翻译、不要同义替换(
emerging不是正在形成)。 - 数字就是数字,不要
"0.8"、不要"约 0.8"。 - 面向学习者的文案字段用简体中文;协议键、schema token、文件名、公式、代码、URL 保持原样。
修复阶梯
宿主解析失败时按顺序尝试,不要一次就让整步失败:
- 抽取第一个完整 JSON 对象(容忍围栏和前后散文)。
- 用契约默认值补齐缺失的可选字段。
- 用一次带错误信息的重试让模型自修(只重试一次)。
- 仍失败 → 走
graceful-degradation,用确定性回退结果继续循环。
反模式
- 返回
{"result": "```json ... ```"}这样的嵌套字符串。 - 把答案、解析等内部字段混进公开快照。
- 用
null表示"我不知道"却不带warnings说明。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

