skillfed

skill-prompt-convert

This skill bridges SKILL.md and Prompt formats in both directions—convert structured skill definitions into copy-paste chat instructions, or reverse the process. It maps skill components like triggers and steps into prompt sections while ensuring zero information loss.

skill-prompt-convert transforms SKILL.md files into chat-ready Prompt instructions and vice versa, preserving all core logic.

AI-generated summary based on this skill's SKILL.md

2,407 169 Apache-2.0 updated by xstongxue

Install

xstongxue/best-skills/skill-prompt-convert · repository language: JavaScript

CLI (skillfed)coming soon
git clone https://github.com/xstongxue/best-skills
cp -r best-skills/skills/skill-prompt-convert ~/.claude/skills/skill-prompt-convert

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I convert a skill to prompt format?

skill-prompt-convert transforms your SKILL.md file into chat-ready Prompt instructions. The converter maps skill components—triggers, steps, and logic—into prompt sections you can copy directly into a chat interface. Each element preserves its meaning and function during the conversion.

Can skill-prompt-convert turn a prompt back into SKILL.md?

Yes. skill-prompt-convert supports bidirectional conversion between Skill and Prompt formats. You can reverse the process by converting a Prompt back into standardized SKILL.md structure, ensuring no information is lost in either direction.

What happens to core logic when skill-prompt-convert converts formats?

skill-prompt-convert preserves and maps all core logic during format conversion. Triggers, steps, conditions, and decision trees remain functionally intact whether you're moving from SKILL.md to Prompt or vice versa—the underlying behavior never changes.

How does skill-prompt-convert handle SKILL.md to prompt transformation?

skill-prompt-convert restructures SKILL.md components into chat-ready sections. Structured skill definitions become natural language instructions suitable for prompts, while maintaining all procedural details and ensuring the converted output is immediately usable in chat contexts.

Can I convert between skill and prompt formats bidirectionally?

skill-prompt-convert enables full bidirectional conversion between Skill and Prompt formats. Whether you start with a structured SKILL.md or a chat Prompt, the tool converts to the other format while preserving all essential information and logic.

What license does skill-prompt-convert use?

skill-prompt-convert is released under the Apache-2.0 license, allowing broad use, modification, and distribution under the terms of that open-source license.

SKILL.md

rendered from the published skill — quoted content, verbatim

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 时:将 namedescription 融入 # 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 必须英文、小写、短横线(如

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
skills/skill-prompt-convert/SKILL.md

Related skills

Tags

format-conversion bidirectional-transformation skill-management prompt-engineering metadata-mapping workflow-translation instruction-formatting agent-skill-tools content-restructuring