Skip to content
Skill Authoring
Skill

/skill-prompt-convert

在 Skill(SKILL.md)与 Prompt(聊天框指令)两种格式之间相互转换。支持 Skill→Prompt 与 Prompt→Skill 双向转换,保持核心信息零丢失。当用户提到 Skill 转 Prompt、Prompt 转 Skill、格式互转、SKILL.md 转换时使用。

From plugin
best-skills
3.2k16 skills

Claude Code

$ npx -y skills add xstongxue/best-skills --skill skill-prompt-convert --agent claude-code

SKILL.md

skill-prompt-convert.SKILL.md
name: skill-prompt-convert
description: 在 Skill(SKILL.md)与 Prompt(聊天框指令)两种格式之间相互转换。支持 Skill→Prompt 与 Prompt→Skill 双向转换,保持核心信息零丢失。当用户提到 Skill 转 Prompt、Prompt 转 Skill、格式互转、SKILL.md 转换时使用。

Skill 与 Prompt 互转

使用时机

  • 用户需要将 Skill 转为可直接复制到聊天框的 Prompt
  • 用户需要将 Prompt 转为 SKILL.md 格式的 Skill
  • 用户提到 Skill 与 Prompt 互转、格式转换

Step 1:获取输入并确认方向

从用户消息或粘贴/附件中获取待转换内容,判断方向:

  • **A. Skill → Prompt**:输入为 SKILL.md 内容,输出聊天框可用的 Prompt
  • **B. Prompt → Skill**:输入为 Prompt 内容(含 ``` 代码块),输出 SKILL.md 格式

Step 2:执行转换

**Skill → Prompt 时**:将 `name`、`description` 融入 `# Role` 和 `# Task`;将「使用时机」转化为适用场景;将 Step 1/2... 转化为 `# Workflow` 或 `# Constraints`;补充 `# Output Format` 和 `# Input` 占位符;输出用 ``` 包裹。

**Prompt → Skill 时**:从 `# Role`、`# Task` 提炼 `name`(英文小写短横线)和 `description`;从 `# Task` 或 `# Constraints` 提炼「使用时机」;将 `# Workflow`、`# Constraints` 拆解为 Step 1、Step 2...;保留 `# Output Format` 到「注意事项」;输出完整 SKILL.md,**必须符合标准 Skill 格式**。

Step 3:输出结果

  • **Part 1 [转换说明]**:简要说明映射关系(如:Step 1 映射为 Workflow 第一步)
  • **Part 2 [转换结果]**:完整的转换后内容(可直接粘贴使用)

注意事项

  • **信息零丢失**:不得删减核心逻辑、步骤、约束条件
  • **格式适配**:Skill 强调「何时触发」「Agent 如何执行」;Prompt 强调「用户输入什么」「输出什么格式」
  • **命名规范**:`name` 必须英文、小写、短横线(如 `wechat-article-writer`);reference 文件名同理(如 `outline-review-science.md`)
  • **description 质量**:需包含「什么时候用」「用来干什么」及关键词
  • **Skill 正文结构**:标题 → 使用时机 → Step 1/2... → 注意事项/示例;多输入任务需补充「触发时的输入方式」
  • **标准 Skill 格式**:YAML 前置元数据必须用 `---` 开头和结尾闭合,使用 `name:` 和 `description:`(严禁 `## name:`),示例:
  ---
  name: skill-name
  description: 触发场景与功能描述
  ---

  # 标题
  ...
Read more
@xstongxue
Ships withbest-skills

通用高质量 Skill 合集,可安装到 Cursor、Claude Code、Codex、OpenClaw 等 Agent 工具的 skills 目录使用。 与 best-prompts 的区别:best-prompts 是面向聊天框的 Prompt,需手动复制粘贴;best-skills 是面向 Agent 的 SKILL.md,Agent 会根据 description 中的关键词与触发场景自动判断是否调用,无需每次手动选择。

Stars on GitHub

Momentum

stars in total
3.2k
Star history of xstongxue/best-skills on GitHub, a chart by star-history.com

Other skills on best-skills.

codegen-diagram

codegen-diagram

基于当前项目/代码生成 Draw.io 图表,支持技术栈图、系统架构图、数据结构图、E-R 图四种类型。输出符合 Draw.io 语法的 .drawio 文件(mxGraph XML),可直接导入 Draw.io…

codegen-doc

codegen-doc

基于当前项目/代码生成各类文档,支持论文章节、项目梳理、重点问题、简历项目描述四种类型。当用户提到生成论文章节、项目梳理、技术难点、简历项目描述时使用。要给新同事看的上手文档(新人文档、架构文档、代码导读、onboarding)用 project-docs。

dev-workflow

dev-workflow

开发流程五步法。支持需求理解、方案设计、代码实现、代码审查、Bug 修复。当用户提到「需求分析」「方案设计」「代码实现」「代码审查」「理解需求」「技术设计」「开始写代码」「Review」「检查代码」「bug」「报错」「崩溃」「异常」「出错了」时使用。

drawio-diagram

drawio-diagram

为深度学习模型、网络架构、算法流程等生成标准 Draw.io (.drawio) 格式的可视化图表;支持从零生成与风格迁移两种模式。从零生成:模型架构图、流程图、感受野示意图等;风格迁移:参考图 + 内容描述/项目 → 按参考图风格生成新图。确保 XML…

excalidraw-diagram

excalidraw-diagram

基于文字说明或结构信息,生成可直接在 Excalidraw 中打开的手绘风 `.excalidraw` 图表;支持系统架构图、流程图、数据结构图与自由白板草图,输出标准 Excalidraw JSON。

frontend-design

frontend-design

创建具有高设计品质、可交付生产的前端界面。当用户要求构建 Web 组件、页面、海报或应用(如官网、落地页、仪表盘、React/Vue 组件、HTML/CSS 布局,或对任意 Web UI 进行样式/美化)时使用本技能。产出有创意、打磨到位且避免「AI…

More skills from other plugins.

gstack-openclaw-ceo-review

gstack-openclaw-ceo-re…

Use when asked to review a plan, challenge a proposal, run a CEO review, poke holes in an approach, think bigger about scope, or…

gstack3w138k
@garrytan@garrytanInstall Skill
book-to-skill

book-to-skill

Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…

@virgiliojr94@virgiliojr94Install Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

@titanwings@titanwingsInstall Skill

Questions about skill-prompt-convert.

Which coding agents can use skill-prompt-convert?
skill-prompt-convert installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.