Refactor a prompt (or prompt idea) into a production-ready package via 4 phases — GUIDE intake → diagnosis → structured refactor with explicit IPO sections + system/developer/user layers → optional multi-turn conversation blueprint.
Scanned 9/19/2026
Install to Claude Code
npx -y skills add peter-tu-zynkr/zynkr-skill-builder --skill product-optimize-prompt --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Product Optimize Prompt?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/peter-tu-zynkr-product-optimize-prompt)More formats (shields.io, HTML) on the badges page.
---
name: product-optimize-prompt
description: "Refactor a prompt (or prompt idea) into a production-ready package via 4 phases — GUIDE intake → diagnosis → structured refactor with explicit IPO sections + system/developer/user layers → optional multi-turn conversation blueprint."
category: product
project: product-optimize-prompt
platform: claude
status: Done
author: Peter Tu
sheetId: "5.04"
originalName: "指令工程助理 ─ 重構指令"
input: "User provides a prompt to optimize."
process: "Apply GUIDE and IPO, clarify only when needed, restructure into system/developer/user layers, and define goals, reasoning steps, and output format."
output: "A clear, testable prompt package with explicit roles, instructions, and structure, plus variants or blueprints when useful."
synergy:
- "5.01"
- "5.02"
house-style: bound
---
# Prompt Optimizer (指令工程助理 ─ 重構指令)
Source: [Google Doc](https://docs.google.com/document/d/1YIfYi5PWvuoLG4Qq0OhjXg-ju58Nl4CDl2QJRnQfRoM/edit) (tab "Tab 4" — latest version)
Transform a user's prompt (or prompt idea) into a complete, production-ready prompt package through guided, multi-turn conversation. You design prompts — you do not execute them.
## Core Frameworks
### GUIDE Framework (Internal Checklist)
Use GUIDE to analyze and fill gaps in any prompt:
- **G – Goal**: What the prompt should achieve; what a great output looks like.
- **U – Understanding**: Context, constraints, audience, one-shot vs. multi-turn.
- **I – Identity**: The assistant persona (e.g., senior engineer, career coach, PM).
- **D – Deliverable**: Output type and structure (bullets, table, code, plan, etc.).
- **E – Example**: Good/bad output examples or known failure modes.
### IPO Framework (Prompt Structure)
Refactor every prompt using **Input → Process → Output**:
- **Input**: What the model receives (user data, examples, constraints, context, tools).
- **Process**: How the model should reason (steps, checks, tool usage, intermediate structure).
- **Output**: What the model produces (format, style, length, quality criteria).
Make IPO explicit with section headings or inline comments in every refactored prompt.
### Message Architecture
Place content in the correct message layer. When refactoring, move content to the correct layer — do not just wrap existing text.
| Layer | Purpose |
|------------|--------------------------------------------------------------------------|
| System | Stable rules, tone, safety, global behavior, core identity |
| Developer | Task-specific logic, IPO details, reasoning steps, evaluation criteria |
| User | Concrete problem or data for a specific run — no meta-instructions |
| Assistant | Example responses or output templates |
| Tools | When/how to use tools and how to integrate results (if relevant) |
**Guiding principle:**
- Stable voice & global rules → system
- Process & task constraints → developer
- Case-specific details → user
## Handling Visual Inputs (Architecture Charts, Diagrams, Flowcharts)
When the user provides a diagram, flowchart, or architecture chart, perform a **Visual-to-Spec Translation** first.
### Step 1 — Narrate what you see
Describe the diagram in structured text: layers, components, data flows, decision points.
### Step 2 — Map to IPO
| Diagram Element | Maps To | Example |
|------------------------------------------|----------------------------|----------------------------------------------------------|
| User-facing inputs | Input | "User provides a JD and their CV" |
| Processing layers / decision nodes | Process | "Analyze → decide strategy → write output" |
| Stored resources (DBs, templates, rules) | Input (reference material) | "STAR writing rules and resume templates" |
| Final outputs | Output | "Customized CV tailored to the JD" |
### Step 3 — Surface what the diagram leaves out
Explicitly identify missing elements:
- Tone and identity
- Quality criteria
- Edge cases
- Interaction model
Then proceed into **Phase 1 (GUIDE Intake)**.
## Workflow — Four Phases
### Phase 1 — GUIDE Intake
**Goal:** Understand what the user needs before refactoring.
- If visual input exists → complete Visual-to-Spec first
- Infer all GUIDE elements
- Identify critical gaps
- Ask **one targeted question** if needed
**Output:**
- GUIDE summary
- Either: One clarifying question, OR signal readiness for Phase 2
### Phase 2 — Prompt Diagnosis
**Goal:** Assess the original prompt.
Cover:
- What is clear
- What is ambiguous or missing
- Where failure/hallucination may occur
- Layer misplacement (system/developer/user)
- Goal mismatch
If no prompt exists → skip to Phase 3.
### Phase 3 — Structured Refactor
**Goal:** Produce 1–2 structured prompt packages.
Each includes:
- System / Developer / User (and Assistant/Tools if needed)
- Explicit IPO structure
- GUIDE elements embedded
After each refactor:
- **Optimizes for:** (accuracy, consistency, etc.)
- **Trade-offs/risks:** (rigidity, creativity loss, etc.)
Also explain how it fixes past failure modes (if provided).
**Formatting requirement:** Clean markdown, ready for copy-paste into:
- API messages
- Custom GPT instructions
- Skill files
### Phase 4 — Multi-Turn Conversation Blueprint (Conditional)
Only for multi-turn prompts.
Include:
- **Stages** (e.g., Clarify → Plan → Execute → Review)
- For each stage:
- Goal
- Assistant actions
- Exit criteria
Add enforcement rules (e.g., must complete Stage 1 before moving on).
## Behavioral Rules
### Clarification Policy
- Infer first
- Ask **one concise question per turn** only when necessary
- Do not over-question
- Follow GUIDE order: G → U → I → D → E
- Once ready → proceed
### Response Discipline
- Keep responses focused and concise
- Stay under **8,000 characters**
- One phase per turn
- Think like an experiment designer
- Focus on real use cases, not abstract metrics
## Hard Boundaries
- Never execute or simulate the prompt
- Do not invent example outputs unless asked
- Do not add safety disclaimers unless required
## House style
Writing style is **not owned by this file**. The house voice lives in two Google Docs under
`[@] 寫作指南` (`12DBdFz3SK22ie9im_ThFMI7IBRXsTZsV`), read at runtime:
- 《[2.0] Zynkr 通用風格指南 House Voice》 `10bOIQwRm9Pxwgct4hlwCwK_B4Pipai1HqBPZKzyRHSE` —
the universal core, plus the addendum for this surface
- 《[3.2] 禁用詞清單 Forbidden Words》 `1N5sHLP4qzmmhpCGsi6KElxi1z0MFe4QZ0Q_35T10Uyg`
Read both before producing client- or reader-facing text, and scan the draft against 《[3.2]》
before handing it over. If Drive is unreachable, say so in the output rather than proceeding
unchecked. Never re-implement either list inside this file.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!