prompt-optimizer
Transforms vague or simple user prompts into high-quality, structured, and high-performance AI instructions using systematic optimization techniques like XML tagging, few-shot examples, and Chain-of-Thought. Use this skill when you need to improve the reliability, accuracy, or formatting of an AI's output.
- License 许可
- MIT
- 所属仓库
- Yukiniro/skills
- 最近更新
- 2026-10-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- prompt-optimizer
- description
- Transforms vague or simple user prompts into high-quality, structured, and high-performance AI instructions using systematic optimization techniques like XML tagging, few-shot examples, and Chain-of-Thought. Use this skill when you need to improve the reliability, accuracy, or formatting of an AI's output.
02 资源文件 2
- 许可证LICENSE.txt1.0 KB
- 参考文档references/GUIDE.md573 B
03 SKILL.md 正文
Prompt Optimizer
This skill enables agents to systematically optimize prompts based on the "AI as a New Employee" philosophy. It applies structural, contextual, and technical enhancements to ensure AI models perform tasks with maximum clarity and precision.
Instructions
1. Analysis Phase
Before generating the optimized prompt, analyze the following in a <thinking> block:
- Core Objective: What is the primary goal?
- Target Audience: Who will consume the output?
- Professional Role: What persona best fits this task?
- Complexity: Does it require step-by-step reasoning (Chain-of-Thought)?
- Structure: Which XML tags are needed to organize the components?
2. Construction Phase
Build the optimized prompt using these mandatory components:
<role>: Define a specialized persona with relevant expertise.<context>: Provide background information and the "why" behind the task.<task>: State the instructions clearly and concisely.<requirements>: List specific success criteria and constraints.<output_format>: Define the expected structure (e.g., JSON, Markdown).
3. Enhancement Phase
- XML Tagging: Wrap different sections in clear XML tags for structural clarity.
- Few-shot Examples: Include 2-3 high-quality
<example>blocks if the task is pattern-based. - Chain-of-Thought: For complex logic, instruct the AI to reason inside
<thinking>tags. - Response Prefilling: If a strict format is required, provide the starting characters of the response.
Examples
Example 1: Simple to Structured
Input: "Write a product description for a smartwatch." Optimized Output:
<role>
Senior Marketing Copywriter specializing in wearable technology.
</role>
<context>
We are launching the 'Apex-1' smartwatch targeting fitness enthusiasts who value data accuracy and battery life.
</context>
<task>
Write a compelling 200-word product description for the Apex-1 smartwatch.
</task>
<requirements>
1. Highlight the 14-day battery life and dual-band GPS.
2. Use an energetic and professional tone.
3. Include a clear Call to Action (CTA) at the end.
</requirements>
<output_format>
Markdown with headers for 'Features', 'Benefits', and 'Specifications'.
</output_format>
Reference
For deep dives into the underlying methodology, see the systematic guide.
04 同仓库更多 Skills
技能开发模板
template-skill
替换为该技能的描述及使用时机。
工作周报生成
work-weekly-report
根据每日工作日志生成结构化的每周工作总结。使用时机:用户提供每日工作日志/笔记并要求创建周报/每周总结(周报/周工作总结),或用户粘贴零散的每日记录并希望将其整理为分类汇总。触发关键词:周报、周工作总结、weekly summary、weekly report、工作日志整理、每日日志汇总。
提交记录压缩合并
squash-commits
将当前分支上的所有提交(相对于主分支)压缩为单个提交,同时保留分支名称。使用时机:用户想要压缩提交、清理分支历史、将多个提交压缩为一个,或在合并前进行整理。触发词:squash commits、压缩提交、合并提交、clean up commits、compress commits、squash branch、整理提交记录、合并为一个提交。当用户提到压缩、合并或清理分支上的提交历史时,务必使用该技能,即使他们没有使用确切的术语“squash”。
smart-commit
Automated Git commit with Conventional Commits format. Analyzes staged changes, determines commit type and scope, detects description language from commit history (defaults to English), and generates a complete commit message. Use when the user says "commit", "smart commit", "提交代码", "帮我提交", or any variation of requesting a git commit with an auto-generated message.
setup-agents-md
创建、初始化或更新 AGENTS.md 通用工程原则文档时使用。触发词包括“创建 AGENTS.md”、“更新 AGENTS.md”、“初始化 AGENTS.md”、“setup AGENTS.md”、“create AGENTS.md”、“update AGENTS.md”。
resume-screener
Evaluate and grade resumes against job requirements using a 10-level grading system (C, B-, B, B+, A-, A, A+, S, SS, SSS). Provides multi-dimensional scoring with evidence-based reasoning and hiring recommendations. Use when screening candidates, comparing applicants, assessing resume-job fit, or filtering resumes. Supports Chinese and English resumes in any format (PDF, DOCX, text, image).