agently-output-control✓ تایید شده
Use when the user wants stable structured fields, required keys, value-level output validation, reliable machine-readable sections, or downstream-consumable output from one model request, including prompt-config-owned output contracts, `.output(...)`, tuple ensure flags, runtime `ensure_keys`, `.validate(...)`, and structured streaming.
// نصب مهارت
نصب مهارت
مهارتها کدهای شخص ثالث از مخازن عمومی GitHub هستند. SkillHub الگوهای مخرب شناختهشده را اسکن میکند اما نمیتواند امنیت را تضمین کند. قبل از نصب، کد منبع را بررسی کنید.
نصب سراسری (سطح کاربر):
npx skillhub install agentera/agently-skills/agently-output-controlنصب در پروژه فعلی:
npx skillhub install agentera/agently-skills/agently-output-control --projectمسیر پیشنهادی: ~/.claude/skills/agently-output-control/
محتوای SKILL.md
---
name: agently-output-control
description: Use when the user wants stable structured fields, required keys, value-level output validation, reliable machine-readable sections, or downstream-consumable output from one model request, including prompt-config-owned output contracts, `.output(...)`, tuple ensure flags, runtime `ensure_keys`, `.validate(...)`, and structured streaming.
---
# Agently Output Control
Use this skill when the question is what shape the model should return and how that shape should stay reliable.
The user does not need to say `.output(...)`, tuple `ensure`, `ensure_keys`, or `.validate(...)`. Requests for stable JSON-like fields, structured reports, or machine-readable sections should route here.
## Native-First Rules
- default to async-first response consumption when structured output will be streamed, reused, or served over an async boundary
- prefer prompt-config-owned output contracts such as `.request.output` when the schema is stable and shared across a request family
- prefer `.output(...)` for machine-readable results when the schema is dynamic, exploratory, or easier to keep close to code
- for Agently `4.1.0.1+`, prefer tuple `ensure` in `.output(...)` for fixed required leaves
- use manual `ensure_keys` only when the required path is runtime-dependent, conditional, or awkward to express in the static schema
- prefer `.validate(...)` or `validate_handler=` when the field exists but the value still needs business validation
- keep output schema explicit when downstream systems, workflow branches, or later model steps consume the result
## Anti-Patterns
- do not handwrite JSON post-processors when `.output(...)` already owns the contract
- do not rebuild a stable shared schema in Python if prompt config can own it once
- do not build custom retry loops for missing keys before using tuple `ensure` or, when necessary, runtime `ensure_keys`
- do not overload tuple `ensure` or `ensure_keys` with value checks that belong in `.validate(...)`
- do not default to sync-only result handling when the caller is already async-capable
## Read Next
- `references/overview.md`
// نصب مهارت
نصب مهارت
مهارتها کدهای شخص ثالث از مخازن عمومی GitHub هستند. SkillHub الگوهای مخرب شناختهشده را اسکن میکند اما نمیتواند امنیت را تضمین کند. قبل از نصب، کد منبع را بررسی کنید.
نصب سراسری (سطح کاربر):
npx skillhub install agentera/agently-skills/agently-output-controlنصب در پروژه فعلی:
npx skillhub install agentera/agently-skills/agently-output-control --projectمسیر پیشنهادی: ~/.claude/skills/agently-output-control/