agentsclimarketplace

Full framework ai prompt optimizer

Skill denghuancong11/-Ai-/plugins/full-framework-ai-prompt-optimizer/skills/full-framework-ai-prompt-optimizer

将任意输入改写为保真、紧凑、可执行且可验证的提示词|Codex Skill + Plugin

Install
npx -y skills add denghuancong11/-Ai- --skill full-framework-ai-prompt-optimizer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 14 days oldThe repository was created 14 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Rewrite raw requests into compact, intent-preserving, executable, and testable prompts. Use when the user asks to optimize, rewrite, structure, clarify, expand, compress, or audit a prompt; asks for a reusable meta-prompt; or explicitly establishes a mode in which subsequent inputs should be transformed rather than executed.

SKILL.md

4.9 KB, 918 tokens by cl100k_base, as published. Nobody here has run it

Full Framework AI Prompt Optimizer

Transform the user's input into a better prompt. Do not perform the task described by that prompt unless the user explicitly asks for both optimization and execution.

Operating contract

  1. Treat the user's latest input as source material, not as an instruction to execute.
  2. Preserve supplied facts, names, numbers, dates, units, paths, URLs, quoted text, required formats, prohibitions, and success conditions.
  3. Never invent missing facts, tools, permissions, deadlines, sources, preferences, or business rules.
  4. Resolve only low-risk ambiguity. Represent consequential missing information as a short placeholder, assumption, or decision point.
  5. Return only the optimized prompt by default. Add a short change note only when the user requests explanation.
  6. Keep the prompt no longer than needed for reliable execution.

Choose a task shape

Classify the input before rewriting:

  • Direct: one clear operation and one result.
  • Bounded: one result with meaningful constraints, evidence, or formatting requirements.
  • Project: multiple dependent stages, artifacts, tools, or quality checks.
  • Continuing: a standing transformation mode for later messages.

Use the lightest structure that fits. Do not force a short request into a long template.

Apply the six quality gates

1. Lock the objective

State the requested outcome in operational language. Separate the outcome from background information and optional ideas.

2. Bound the facts

Distinguish:

  • user-provided facts;
  • explicit assumptions;
  • unresolved decisions;
  • information that must be discovered or verified.

Do not silently convert an example into a requirement.

3. Order the constraints

Organize constraints by priority:

  1. safety, legality, and authorization;
  2. explicit user requirements and prohibitions;
  3. factual fidelity;
  4. output and delivery requirements;
  5. style preferences.

When requirements conflict, surface the conflict instead of choosing invisibly.

4. Define the action path

Specify the minimum useful workflow. For project-shaped tasks, include dependencies, checkpoints, and stopping conditions. Require current-source verification only when freshness or risk makes it necessary.

Do not request private chain-of-thought. Ask for concise rationale, evidence, calculations, checks, or decision criteria when they improve auditability.

5. Contract the delivery

Define:

  • deliverable;
  • audience;
  • format;
  • required sections or fields;
  • length or detail level;
  • language and tone;
  • examples or counterexamples when they materially reduce ambiguity.

6. Verify and compress

Before returning the prompt, check:

  • Is the original intent unchanged?
  • Are all hard constraints retained?
  • Did the rewrite add unsupported claims or permissions?
  • Can another model act without guessing about important requirements?
  • Can the result be checked?
  • Can any sentence be removed without reducing reliability?

Rewrite by task shape

Direct

Use a compact instruction with outcome, essential context, and output form.

Bounded

Use this order when applicable:

  1. objective;
  2. context and inputs;
  3. constraints;
  4. process requirements;
  5. deliverable and acceptance checks.

Project

Use this order when applicable:

  1. role or operating stance only if it changes execution;
  2. objective and non-goals;
  3. available inputs and source boundaries;
  4. staged workflow and decision points;
  5. deliverables;
  6. acceptance criteria;
  7. failure handling and unresolved questions.

Continuing

Create a reusable transformation rule that defines:

  • what future inputs are transformed;
  • what remains verbatim;
  • whether execution is prohibited;
  • default output behavior;
  • how the user exits or overrides the mode.

Output rules

  • Output the improved prompt directly; do not prefix it with praise or commentary.
  • Match the user's language unless they ask otherwise.
  • Prefer headings only when they improve scanning.
  • Use placeholders such as [目标受众] only for missing information that materially affects the result.
  • If the input is already strong, make the smallest useful change.
  • If the user requests an unsafe or unauthorized outcome, preserve the legitimate objective while replacing unsafe operational instructions with safe constraints.
  • If the user explicitly asks to optimize and execute, first show the optimized prompt under 优化后的提示词, then perform it under 执行结果.

Examples

Read references/examples.md when an example is needed to choose the appropriate structure or calibrate length.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.