Agent skill

Skill Prompt Convert

by xstongxue in xstongxue/best-skills

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

Apache-2.0Auto-check passed

Install Skill Prompt Convert

skills CLI
$ npx skills add xstongxue/best-skills --skill skill-prompt-convert -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xstongxue/best-skills skill-prompt-convert --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xstongxue/best-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/skill-prompt-convert .claude/skills/skill-prompt-convert && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
skill-prompt-convert
GitHub stars
3k
Token cost
~382 tokens
SKILL.md length
123 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • Works in 3 steps: :获取输入并确认方向 → :执行转换 → :输出结果
  • SKILL.md covers 使用时机, Step 1:获取输入并确认方向, Step 2:执行转换 and Step 3:输出结果, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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

Its SKILL.md is about 380 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is Apache-2.0.

Example prompts

  • “/skill-prompt-convert”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. :获取输入并确认方向
  2. :执行转换
  3. :输出结果

What it can do on your machine

Read from SKILL.md and the folder at commit 9aa4e55. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Skill Prompt Convert loads about 382 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 123 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~382

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from xstongxue/best-skills at commit 9aa4e55, republished under its Apache-2.0 licence (© xstongxue). 123 words, ~382 tokens.

Download SKILL.mdSave it as .claude/skills/skill-prompt-convert/SKILL.md (or your agent's skills folder).
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: 触发场景与功能描述
    ---
    
    # 标题
    ...

© xstongxue, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/skill-prompt-convert of xstongxue/best-skills.

Open the folder on GitHubat commit 9aa4e55

Compare with similar skills

Skill Prompt Convert next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Skill Prompt Convert compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Prompt Convert this skillxstongxue/best-skills3k—~382Automated safety check: PassApache-2.0
Convertremotion-dev/remotion63k—~247Automated safety check: PassCustom licence
Convertpartcad/partcad503—~1.5kAutomated safety check: PassApache-2.0
Word to Markdown Convertergithub/awesome-copilot40k—~1.6kAutomated safety check: PassMIT
Codebase To Wordpress Convertersickn33/agentic-awesome-skills47k1 repos~1.1kAutomated safety check: PassMIT
Postman Openapi Convertersickn33/agentic-awesome-skills47k1 repos~1.5kAutomated safety check: PassMIT

Similar skills

  • Convert

    remotion-dev/remotion

    Official

    Start the local @remotion/convert app and open it in the Codex browser.

    63k GitHub stars~247 tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Convert

    partcad/partcad

    Convert a CAD file or a PartCAD object to another geometry format - STEP, BREP, STL, 3MF, OBJ, IGES, glTF, three.js, SVG, DXF, URDF, ASSY - with pc convert for an object a package declares (which…

    503 GitHub stars~1.5k tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Word to Markdown Converter

    github/awesome-copilot

    Official

    Converts Word .docx files to Markdown with a bundled script before analysis, extracting embedded images and handling whole folders alongside the PDF and Excel converters.

    40k GitHub stars~1.6k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Codebase To Wordpress Converter

    sickn33/agentic-awesome-skills

    Expert skill for converting any codebase (React/HTML/Next.js) into a pixel-perfect, SEO-optimized, and dynamic WordPress theme.

    47k GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-check passed
  • Postman Openapi Converter

    sickn33/agentic-awesome-skills

    Convert OpenAPI 3.x or Swagger 2.0 specs (YAML or JSON) into complete, import-ready Postman Collection v2.1 JSON files.

    47k GitHub starsUsed in 1 repo~1.5k tokens
    Backend & APIsAuto-check passed
  • Analyzes Chinese A-share convertible bonds with a three-part valuation, clause game analysis, the double-low strategy and a rotation framework for choosing bonds; instructions are in Chinese.

    35k GitHub stars~1.1k tokensUpdated today
    Business, Finance & HRAuto-check passed

More from xstongxue/best-skills

All 15 skills in this repo
  • Create Skill

    xstongxue/best-skills

    Guides users through creating effective Agent Skills for Cursor.

    3k GitHub starsUsed in 1 repo~3.6k tokens
    Auto-check passed
  • Office File Process

    xstongxue/best-skills

    处理 Office 文档的一站式 skill:Word(.doc/.docx/.dotx)、Excel(.xls/.xlsx/.xlsm/.csv)、PowerPoint(.ppt/.pptx/.potx) 的创建、读取、编辑、提取、转换、校验。触发:『读取 word 文档』『提取 excel 内容』『看 ppt 讲了什么』、.doc 老格式打不开、生成/编辑 Word…

    3k GitHub stars~1.8k tokensUpdated 28 days ago
    Auto-check passed
  • Pptgen Drawio

    xstongxue/best-skills

    根据论文或汇报内容生成多页 Draw.io 格式 PPT,支持论文答辩与通用汇报两种模式,自动导出为 .pptx。当用户提到论文答辩 PPT、答辩幻灯片、通用 PPT、汇报 PPT、根据模板生成 PPT、drawio2pptx 时使用。

    3k GitHub stars~2.1k tokensUpdated 28 days ago
    Auto-check passed
  • Wechat Article Writer

    xstongxue/best-skills

    公众号/自媒体全流程。根据用户表述自动匹配:撰写文章、封面图、正文插图、风格提取。支持多种写作风格。当用户提到写公众号、技术博客、公众号封面、正文插图、步骤图、演示图、流程示意、分析写作风格、克隆文风、模仿爆款、提取风格时使用。详见 reference 目录。

    3k GitHub stars~2k tokensUpdated 28 days ago
    Auto-check: notes
  • Drawio Diagram

    xstongxue/best-skills

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

    3k GitHub stars~487 tokensUpdated 28 days ago
    Auto-check passed
  • Project Docs

    xstongxue/best-skills

    对任意代码项目生成一套面向新人的循序渐进文档集,输出到 docs/ 目录。含架构、设计思想、语言特性、代码导读、运行时模型、构建、对接、调试、设计规范共 9 篇,支持全部生成 / 只写几篇 / 更新已有文档。当用户提到"生成项目文档"、"新人文档"、"上手文档"、"架构文档"、"代码导读"、"项目理解"、"深入理解项目"、"onboarding…

    3k GitHub stars~720 tokensUpdated 28 days ago
    Auto-check passed

Questions about Skill Prompt Convert

What does Skill Prompt Convert do?

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

How do I install Skill Prompt Convert in Claude Code?

Run `npx skills add xstongxue/best-skills --skill skill-prompt-convert -a claude-code`. Or copy the skill folder (skills/skill-prompt-convert in xstongxue/best-skills) into .claude/skills/skill-prompt-convert in your project. Claude Code loads it when a task matches its description.

How do I install Skill Prompt Convert in Codex?

Run `npx skills add xstongxue/best-skills --skill skill-prompt-convert -a codex`. Or copy the skill folder (skills/skill-prompt-convert in xstongxue/best-skills) into .agents/skills/skill-prompt-convert in your project. Codex loads it when a task matches its description.

Can I use Skill Prompt Convert in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xstongxue/best-skills --skill skill-prompt-convert -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-prompt-convert, .gemini/skills/skill-prompt-convert, .github/skills/skill-prompt-convert and .opencode/skills/skill-prompt-convert in your project.

What does Skill Prompt Convert need to run?

SKILL.md names no scripts, command-line tools or credentials: Skill Prompt Convert is instructions for the agent only.

Does Skill Prompt Convert access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Skill Prompt Convert safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Skill Prompt Convert use?

Skill Prompt Convert is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Skill Prompt Convert use?

About 382 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Skill Prompt Convert?

Skills that share tags, products or a category with Skill Prompt Convert: Convert (remotion-dev/remotion, 63k stars), Convert (partcad/partcad, 503 stars), Word to Markdown Converter (github/awesome-copilot, 40k stars) and Codebase To Wordpress Converter (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skill Prompt Convert?

xstongxue (a GitHub user) maintains it in xstongxue/best-skills, which has 2,966 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on September 13, 2026.

Source: xstongxue/best-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.