Skill prompt convert

From xstongxue/best-skills · View interactive version

Skill prompt convert is an AI agent skill from the GitHub repository xstongxue/best-skills. 在 Skill(SKILL.md)与 Prompt(聊天框指令)两种格式之间相互转换。支持 Skill→Prompt 与 Prompt→Skill 双向转换,保持核心信息零丢失。当用户提到 Skill 转 Prompt、Prompt 转 Skill、格式互转、SKILL.md 转换时使用。

How to use this skill

Skill file

Skill 与 Prompt 互转

使用时机

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

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

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:输出结果

注意事项

```


name: skill-name

description: 触发场景与功能描述


# 标题

...

```

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.