Prompt Optimizer
Paste the following prompt into your AI chat to install this skill:
Install @user_7871dce1/prompt-optimizer-zh by following https://skillhub.cn/install/skillhub.md.
About this skill
Problem
When a request is only one or two sentences, models often guess at goals, format, constraints, and acceptance criteria. A prompt like write an article about AI lacks audience, length, structure, tone, and delivery format, so output can be generic. For code prompts, missing input/output, error handling, and test constraints can make results hard to reproduce.
How It Works
The skill is not mainly for generating the final artifact; it rewrites vague requests into clearer AI instructions:
- Decompose intent: identify task type, audience, deliverable, and success criteria.
- Add structured fields: split missing role, constraints, format, examples, and counterexamples into executable requirements.
- Control output shape: when needed, ask for fields step by step and write results into
JSONto reduce skipped steps. - Adapt code prompts: add inputs, outputs, edge cases, error handling, and acceptance checks.
Boundaries
It helps turn scattered notes into a stable prompt, but it does not invent business facts. If the original request conflicts, lacks key data, or depends on internal systems, human context is still required. For specialized content, provide sources, acceptance criteria, and prohibited items.
Use Cases
- Before drafting launch copy, turn scattered selling points into a prompt with audience, tone, length, and prohibited items.
- When debugging a code-generation prompt, add inputs, outputs, edge cases, error handling, and acceptance criteria.
- When defining meeting-notes requirements, ask the AI to output step-by-step into `JSON` fields with a fixed schema.
- When reviewing complaint-handling scripts, rewrite brief complaints into prompts with role, constraints, and deliverable.
Best For
- Product operations writers who repeatedly generate marketing copy and need stable audience, tone, and length constraints
- Independent developers who need structured `JSON` output and want fewer missing fields or format drift
- Engineering leads optimizing code-generation prompts who need edge cases, error handling, and acceptance criteria
- AI product managers who need to turn customer requirements into executable prompts
Related Skills
Collects daily conversations, task logs, and errors, then runs a nine-module review to surface blind spots, generate actions, and update memory.
Local long-term memory for AI agents that appends key facts and daily logs, supports cross-session context and search recall, and auto-archives old diaries to gzip files.
Run a grilling session to interact with or test AI agents.
A systematic prompt optimization skill that refines prompts using a four-step distillation framework (diagnose, structure, think, compress) and methodologies from four prompting masters.