Prompt optimization

From chemistrywow31/A-Team · View interactive version

Prompt optimization is an AI agent skill from the GitHub repository chemistrywow31/A-Team. Improve prompt effectiveness while preserving role, workflow, runtime intent, and canonical policy

How to use this skill

Skill file

Prompt Optimization

Description

Improve prompt wording while preserving the original role, workflow, runtime intent, ownership model, and canonical policy.

Users

Core Knowledge

Application Guide

  1. Confirm task intent and the text-only lane. For a named existing team, classify that target; for capability-only maintenance, remain within assigned A-Team source paths.
  2. Stop and hand the task to team-restructuring-master when the requested change affects roles, rules, topology, runtime or config, ownership, mapping, canonical authority, parity, stamps, validation/preflight requirements, or a surface's runnable, reference-only, or activation state.
  3. Rewrite only owned text to make responsibilities, triggers, completion criteria, and uncertainty handling more explicit.
  4. Clarify vague instructions and remove conflicting, obsolete, or redundant controls. Keep examples and concrete steps that improve execution; do not categorically remove XML or useful public derivations. Use supported native thinking/effort controls rather than private-reasoning transcript requests, preserving existing settings outside authorized migration.
  5. Preserve valid paths, stable task-path terminology, and byte identity between touched .codex/skills/ and .agents/skills/ mirrors. Shared edits start at the declared canonical source before projection.
  6. Compare the result with the same task and acceptance criteria, then hand frozen artifacts to fresh-context verification. Record J5 size overages as REVIEW_REQUIRED with usefulness rationale; independent review resolves them. A shorter prompt is not evidence of better behavior.

Quality Checkpoints

Examples

Useful Structure

Keep a document-processing skill’s XML source labels and worked missing-evidence example when they make source attribution testable. Remove a duplicate paragraph only when its requirement remains executable.

Rejection Case

For Tighten the reviewer prompt, and also move config ownership to another role, stop the optimization lane after classification and route the request to restructuring: ownership transfer changes runtime intent, so it exceeds a wording-only edit.

Sources And Adaptation

Shared policy: .claude/skills/prompt-optimization/SKILL.md. Native controls: the inventoried .codex/rules/codex-runtime-config.md and .codex/rules/context-isolation.md. OpenAI’s GPT-6 Astra prompting guidance, checked 2026-10-06, supports task-routed context and concrete completion outcomes. Preserve useful structure and examples; use supported reasoning-effort controls without requesting private reasoning transcripts. This public guidance is not an internal prompt or a model-access claim.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.