360 Secure SkillHub
360 安全技能中心

Prompt Optimizer Claude

面向 Claude 的提示词优化 Skill:先识别用户场景,再从开发者、写作者、产品经理、设计师四类角色中匹配其一,将原始提示词重构为「角色+任务+约束+输出格式」结构,最后输出优化后的提示词与优化收益说明,并保持中英文语言一致。

openlark
openlark
热度 30.90
最近更新 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