/claude-eng-pack:engineering-prompts-and-outputfrom claude-eng-pack
Reference for writing system prompts, few-shot examples, structured output with tool use, JSON schema validation with retry loops, Message Batches API processing, and multi-pass review pipelines. Helps debug inconsistent outputs, invalid JSON, false positives, and hallucinated fields.
Ships in claude-eng-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Best-practice reference for the prompt-and-output layer: explicit criteria in system prompts, few-shot construction, schema-enforced output, validation/retry, batch processing, and review pipelines. Each reference module states the correct pattern, the named anti-patterns, and ends with an Audit Checklist of verifiable conditions.
tool_choice mode for extraction, retry strategy, batch vs real-timeNot for tool interface design itself (use designing-tools-and-mcp) or human-review calibration (use managing-context-reliability).
| Module | Read when the question is about |
|---|---|
references/4-1-system-prompts-with-explicit-criteria.md | Explicit severity criteria, the false-positive trust problem |
references/4-2-few-shot-prompting.md | Constructing examples, hallucination reduction, false-positive control |
references/4-3-structured-output-with-tool-use.md | The three tool_choice modes, what tool_use does not guarantee, schema design |
references/4-4-validation-retry-and-feedback-loops.md | Retry-with-error-feedback, its limits, schema vs semantic errors |
references/4-5-batch-processing-strategies.md | Message Batches API, result matching, SLA maths, failure handling |
references/4-6-multi-instance-and-multi-pass-review.md | Why self-review fails, multi-pass architecture, confidence-based routing |
file:line evidence and the module's recommended fix.For a fast full-domain sweep, checklists.md aggregates all six checklists.
Sampling and calibrating against human review: managing-context-reliability (5-5). Orchestrating multiple reviewer instances: auditing-agent-architecture (1-2, 1-3).
This skill is a best-practice reference for the layer where you shape what Claude is asked and what it must return: system prompts, few-shot examples, schema-enforced output, validation and retry, batch jobs, and review pipelines. Each of its six reference modules names the correct pattern, the anti-patterns that break it, and ends with an Audit Checklist of verifiable conditions you can run against real code.
tool_choice mode, or deciding batch versus real-time processing.designing-tools-and-mcp.managing-context-reliability.auditing-agent-architecture.Skill(skill: "claude-eng-pack:engineering-prompts-and-output")
Invoke it before you read the prompts or schemas under review, then follow its Quick reference table to the modules that match your question.
No files are written. You get the module contents loaded into your context, and an audit procedure: match the pipeline to modules, run each module's Audit Checklist item by item, and report every unchecked item as a finding with file:line evidence plus the module's recommended fix. For a fast sweep of the whole domain, checklists.md aggregates all six checklists in one place.
Skill(skill: "claude-eng-pack:engineering-prompts-and-output")
Request: "Our automated reviewer for orders/line-items returns a different
severity for the same diff on every run, and about half its findings are
false positives. Audit the prompt and the output path."
You are pointed at the modules on explicit severity criteria and on structured output with tool use. Running their checklists against the real prompt shows severity is described in adjectives rather than verifiable conditions, and that tool_use is treated as a guarantee of a valid schema. You end up with two findings, each carrying a file:line reference and the module's recommended fix.
designing-tools-and-mcp — when the problem is which tool Claude picks, not what it returns.managing-context-reliability — when quality drops over long sessions or you need human-review calibration.auditing-agent-architecture — when you need to orchestrate several reviewer instances rather than improve one.checklists.md (opens in a new tab)references/4-1-system-prompts-with-explicit-criteria.md (opens in a new tab)references/4-2-few-shot-prompting.md (opens in a new tab)references/4-3-structured-output-with-tool-use.md (opens in a new tab)references/4-4-validation-retry-and-feedback-loops.md (opens in a new tab)references/4-5-batch-processing-strategies.md (opens in a new tab)references/4-6-multi-instance-and-multi-pass-review.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub atretyak1985/swarmery --plugin claude-eng-pack5 skills in this plugin
/auditing-agent-architectureUse when designing or reviewing Claude-based agent systems — agentic loops and stop_reason handling, multi-agent orchestration, coordinators, subagent invocation and context passing, workflow enforcement, Agent SDK hooks (PreToolUse/PostToolUse), task decomposition, or session state and resumption. Also when an agent terminates prematurely, loops forever, repeats work, or subagents return inconsistent or incomplete results. NOT for tool schemas (use designing-tools-and-mcp), prompts (use engineering-prompts-and-output), or context degradation (use managing-context-reliability)./configuring-claude-codeUse when setting up or auditing Claude Code in a repository — CLAUDE.md hierarchy and imports, .claude/rules, custom slash commands and skills, path-specific rules, plan mode vs direct execution, iterative refinement workflow, or CI/CD integration with headless -p mode. Also when instructions get ignored, conventions load in the wrong scope, CLAUDE.md has grown bloated, or a CI pipeline needs non-interactive Claude runs. NOT for task prompt content (use engineering-prompts-and-output), agent loops/orchestration (use auditing-agent-architecture), or MCP tools (use designing-tools-and-mcp)./designing-tools-and-mcpUse when creating or reviewing tool definitions for Claude — tool names, descriptions, input schemas, structured error responses, tool_choice configuration, MCP server setup and scoping, or built-in tool usage (Grep, Glob, Read, Edit). Also when Claude picks the wrong tool, confuses similar tools, retries hopeless failures, treats empty results as errors, or degrades because too many tools are exposed. NOT for agent loops/orchestration (use auditing-agent-architecture), system prompts/schemas (use engineering-prompts-and-output), or multi-turn error loss (use managing-context-reliability)./managing-context-reliabilityUse when reviewing long-running or multi-agent Claude systems for reliability — context window management and summarisation, escalation and ambiguity resolution, error propagation between agents, codebase exploration and context degradation, human review and confidence calibration, or information provenance and multi-source synthesis. Also when quality degrades over long sessions, agents silently swallow failures, mid-context details get lost, or synthesised answers lose attribution. NOT for loop/orchestration structure (use auditing-agent-architecture), prompt/review false-positive tuning (use engineering-prompts-and-output), or tool schemas (use designing-tools-and-mcp).