360 Secure SkillHub
360 安全技能中心

prompt-optimizer

核心功能:集成58种成熟提示词技巧,支持查看全部技巧清单、单技巧详情,以及用指定技巧优化提示词。典型场景:当需要提升提示词清晰度、针对性,或生成不同场景的提示词变体时使用。采用命令行操作,输入对应指令即可输出对应内容。

autogame-17
autogame-17
热度 23.94
最近更新 2026-08-14 09:30:04
分类:效率依赖:代码执行应用场景:模板

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add prompt-optimizer
Metadata
name
prompt-optimizer
description
Evaluate, optimize, and enhance prompts using 58 proven prompting techniques. Use when user asks to improve, optimize, or analyze a prompt; when a prompt needs better clarity, specificity, or structure; or when generating prompt variations for different use cases. Covers quality assessment, targeted improvements, and automatic optimization across techniques like CoT, few-shot learning, role-play, and 50+ more.

Prompt Optimizer

A Node.js implementation of 58 proven prompting techniques cataloged in references/prompt-techniques.md.

Usage

1. List Available Techniques

See all 58 techniques with their IDs and descriptions.

node skills/prompt-optimizer/index.js list

2. Get Technique Details

View the template and purpose of a specific technique.

node skills/prompt-optimizer/index.js get <technique_name>

Example: node skills/prompt-optimizer/index.js get "Chain of Thought"

3. Optimize a Prompt

Apply a specific technique's template to your prompt.

node skills/prompt-optimizer/index.js optimize "<your_prompt>" --technique "<technique_name>"

Example:

node skills/prompt-optimizer/index.js optimize "Write a python script to reverse a string" --technique "Chain of Thought"

References

  • references/prompt-techniques.md: Full catalog of techniques.
  • references/quality-framework.md: Framework for evaluating prompt quality manually.