Community编程与开发github.com

daymade/prompt-optimizer

使用 EARS(简易需求语法方法)将模糊的提示转化为精确、结构清晰的规范。当用户提供松散的需求、模糊的功能描述,或需要增强用于 AI 生成代码、产品或文档的提示时,应使用此技能。触发条件包括请求“优化我的提示”、“改进这个需求”、“使其更具体”,或当原始需求缺乏细节和结构时。

prompt-optimizer 是什么?

该技能旨在通过 EARS(简易需求语法方法)将模糊或不明确的提示转化为精确、结构化的规范。其核心价值在于提高 AI 生成输出(如代码、产品设计或文档)的质量,确保提示清晰、无歧义且易于解析。它支持主要的 AI 代理平台(如 Claude Code、Cursor、Codex 等),并在用户提供松散需求、模糊描述或要求“优化提示”时自动触发。工作流程包括分析原始提示、应用 EARS 规则(如通用、状态驱动、事件驱动等)重建结构、添加具体约束和格式要求,最终生成优化后的提示,从而减少输出偏差并提高效率。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/daymade/claude-code-skills/tree/main/skills/prompt-optimizer

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

prompt-optimizer 是做什么的?

使用 EARS(简易需求语法方法)将模糊的提示转化为精确、结构清晰的规范。当用户提供松散的需求、模糊的功能描述,或需要增强用于 AI 生成代码、产品或文档的提示时,应使用此技能。触发条件包括请求“优化我的提示”、“改进这个需求”、“使其更具体”,或当原始需求缺乏细节和结构时。

概述

此技能应用 EARS(Easy Approach to Requirements Syntax)方法论来重构和改进提示。EARS 是一种广泛使用的需求工程模式,有助于编写清晰、无歧义且可测试的规范。本技能将这些模式适应到 AI 提示上下文中,使您能够轻松生成高质量的输入。

适用平台

  • Claude Code
  • Cursor
  • Codex(GitHub Copilot)
  • 其他支持自定义技能的 AI 代理

工作原理

  1. 输入:接收一个模糊或结构不佳的提示(例如“创建一个登录页面”)。
  2. 分析:识别缺少的细节、歧义点和隐含假设。
  3. 应用 EARS 模式:根据输入选择合适的 EARS 模式:
    • 通用:适用于恒定行为(例如“系统应该验证电子邮件格式”)。
    • 状态驱动:在特定状态下应用(例如“当用户空闲时,显示注销确认对话框”)。
    • 事件驱动:响应特定事件触发(例如“当点击提交按钮时,发送表单数据”)。
    • 可选:定义非强制行为(例如“如果启用了 dark 模式,则应用暗主题”)。
    • 异常:处理错误或意外情况(例如“如果网络失败,显示错误消息”)。
  4. 增强:添加约束、示例、格式要求和错误处理。
  5. 输出:生成一个结构精确的优化后提示,可供 AI 代理直接使用。

示例

输入

制作一个 todo 应用。

输出(优化后)

为一个单页 todo 应用生成 HTML/CSS/JavaScript。它应支持:

  • 添加新任务(通用行为)
  • 通过点击checkbox标记任务完成(事件驱动)
  • 通过点击删除按钮移除任务(事件驱动)
  • 将任务持久化存储到 localStorage(通用行为)
  • 如果 localStorage 不可用,显示警告但允许应用降级运行(异常行为) 设计应采用简洁的 Material Design 风格,并针对移动设备进行响应式优化。

使用场景

  • 从产品经理或利益干系人那里接收模糊的需求。
  • 需要更详细的提示来为代码生成获得良好的 AI 输出。
  • 为文档或用户故事优化提示。
  • 希望结构化的输入以减少重复澄清和编辑迭代。

注意事项

  • 不要添加超出原始意图的无关功能。
  • 在你认为合适的地方添加具体约束(例如语言、框架、样式)。
  • 如果输入已经结构良好,只需轻微优化或保持原样。
  • 始终保留或指出用户可能有的任何隐含约束。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

daymade/claude-code-skills

>- Generates Chinese/Japanese speech with StepFun's Contextual TTS — default stepaudio-2.5-tts, stepaudio-3-tts for whisper/inline-() prosody. Replaces step-tts-2's voice_label with natural-language instruction. Use for emotional/prosody-controlled synthesis, batch voice lines, migrating from step-tts-2, or cloned voices (2.5/step-tts-2, not v3). Triggers on 阶跃 TTS, 语音合成, 配音. Not for transcription (use stepfun-asr).

daymade/claude-code-skills

This skill should be used when comparing two videos to analyze compression results or quality differences. Generates interactive HTML reports with quality metrics (PSNR, SSIM) and frame-by-frame visual comparisons. Triggers when users mention "compare videos", "video quality", "compression analysis", "before/after compression", or request quality assessment of compressed videos.

daymade/claude-code-skills

Download YouTube videos and HLS streams (m3u8) from platforms like Mux, Vimeo, etc. using yt-dlp and ffmpeg. Use this skill when users request downloading videos, extracting audio, handling protected streams with authentication headers, or troubleshooting download issues like nsig extraction failures, 403 errors, or cookie extraction problems.

daymade/local-conversation-history

Entry point for local AI conversation history across providers. Routes a request to the one skill that owns it, by platform (Claude Code, OpenAI Codex, Kimi CLI) and action (read evidence vs continue interrupted work), and owns the one job none of them own alone: a single inventory spanning all three providers. Use when the provider is unknown or plural ("our history", "what have I been working on", "which chats did I have"), when the user wants Kimi CLI history at all, when it is unclear whether they need evidence or resumption, or when they ask for this skill by name. Vague recall that names no platform ("we discussed this once, when was it?") belongs here rather than to a single-provider reader, because a Claude-only answer to an unscoped question cannot support an absence claim. When the platform and the action are both already clear, load that executor skill directly instead — except Kimi CLI, which has no reader or continuation skill of its own and always routes through here.

daymade/ppt-creator

Create professional slide decks from topics or documents. Generates structured content with data-driven charts, speaker notes, and complete PPTX files. Applies persuasive storytelling principles (Pyramid Principle, assertion-evidence). Supports multiple formats (Marp, PowerPoint). Use for presentations, pitches, slide decks, or keynotes.

daymade/qa-expert

This skill should be used when establishing comprehensive QA testing processes for any software project. Use when creating test strategies, writing test cases following Google Testing Standards, executing test plans, tracking bugs with P0-P4 classification, calculating quality metrics, or generating progress reports. Includes autonomous execution capability via master prompts and complete documentation templates for third-party QA team handoffs. Implements OWASP security testing and achieves 90% coverage targets.

daymade/read-claude-code-history

Reads, searches, and exports local Claude Code history without resuming work. Covers recent session inventory, exact session timelines, verbatim human input including queued mid-turn prompts, full-event keyword search, hybrid recall when wording changed, end-state triage, and deleted-file recovery across active Claude homes plus registered archives. Use whenever the user asks what they or Claude said, wants a Claude Code session ID or original context, remembers prior work vaguely, needs an old file from a transcript, or must prove what a Claude session contained before continuing it. Also owns the only Kimi CLI surface, via its Kimi inventory and search flags. For Codex history use read-codex-history; when the request names no platform at all or spans providers, start at local-conversation-history.

daymade/read-codex-history

Reads, searches, and exports local OpenAI Codex history without continuing the old task. Lists recent Codex sessions, extracts exact prompt-ledger inputs by Session, locates a rollout by verified session_meta identity, reconstructs one chronological user/assistant timeline with fork and compaction lineage, and performs bounded keyword search across live and archived rollouts. Use whenever the user asks what they told Codex, wants recent original inputs, a Codex Session ID, full prior context, fork ancestry, or evidence of what a Codex run did. For Claude Code history use read-claude-code-history.

daymade/twitter-reader

Fetch Twitter/X post content including long-form Articles with full images and metadata. Use when Claude needs to retrieve tweet/article content, author info, engagement metrics, and embedded media. Supports individual posts and X Articles (long-form content). Automatically downloads all images to local attachments folder and generates complete Markdown with proper image references. Preferred over Jina for X Articles with images.

相关技能