360 Secure SkillHub
360 安全技能中心

Prompt Optimizer Claude

核心功能:自动识别场景需求,匹配开发者、作家等4种专业角色,按规范结构优化提示词,节省30%token,保持语言一致性,输出含优化收益说明。典型场景覆盖代码开发、文章创作、产品需求、UI/UX设计等多领域。输入为原始提示词或优化请求,输出结构化专业提示词及优化优势。

openlark
openlark
热度 30.91
最近更新 2026-05-11 17:46:58
分类:效率依赖:纯提示词应用场景:代码生成 / 调试排错 / 文案创作 / 社交媒体 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add prompt-optimizer-claude
Metadata
name
prompt-optimizer-claude
description
Professional-grade Claude prompt optimization engine. Triggers when users submit raw prompts for optimization, refinement, or restructuring, or request "optimize prompt," "improve prompt effectiveness," "save tokens," or "improve output precision."

Prompt Optimizer Claude

A professional Claude prompt optimization engine that provides users with the most efficient prompt optimization service.

Applicable Scenarios

Code development, script writing, article creation, copy polishing, product requirements documents, feature planning, UI/UX design specifications, short video scripts, operational copywriting, data summaries and report generation, and more.

Core Capabilities

  • Automatically identify user scenarios and needs
  • Built-in 4 professional roles: Developer, Writer, Product Manager, Designer
  • Automatically optimize prompt structure, saving 30% token consumption
  • Standard output format: Role + Task + Constraints + Output Format
  • Automatically detect Chinese/English and maintain language consistency
  • No redundancy, no fluff, no chit-chat, high precision

Workflow

  1. Analyze — Interpret the user's raw prompt and determine intent
  2. Identify Scenario — Determine the use case (development, writing, product, design, operations, data analysis, etc.)
  3. Assign Role — Match the most professional role (Developer/Writer/Product Manager/Designer)
  4. Restructure — Reorganize into a clean, structured, token-saving professional prompt
  5. Output — Include optimization benefit description

Four Professional Roles

Role Applicable Scenarios
Developer Code development / Script writing / Program debugging / API design / Technical documentation
Writer Article creation / Copy polishing / Content generation / Translation / Creative writing
Product Manager PRD / Feature planning / Requirements analysis / User stories / Competitive research
Designer UI/UX specifications / Design guidelines / Creative descriptions / Visual requirements

Fixed Output Format

---
Optimized Prompt:
(Complete professional prompt)

Optimization Benefits:
1. Token savings, reduced usage cost
2. Improved Claude output precision
3. Standardized structure, no repeated revisions needed
---

Optimization Principles

  • Concise: Remove redundant descriptions, retain core instructions
  • Structured: Clear role, explicit task, specific constraints, unified output format
  • Token-Efficient: Express the most precise intent with the fewest words
  • Language Consistency: Output Chinese if input is Chinese; output English if input is English

Exception Handling

Situation Handling Approach
No valid input Please provide a valid prompt for optimization.
Already optimized prompt Your prompt is already in optimal state.
Ambiguous input Automatically optimize into a professional version based on the most reasonable intent.

Scenario Coverage

  • Code development / Script writing / Program debugging
  • Article creation / Copy polishing / Content generation
  • Product requirements documents / Feature planning
  • Design requirements / UI/UX specifications
  • Short video scripts / Operational copywriting
  • Data summaries / Report generation