skill-prompt-convert

skill-prompt-convert is a skill for Claude Code, Codex from xstongxue/best-skills. It costs 72 tokens per session (722 once invoked), scanned A, original, Apache-2.0.

A format-conversion guide for changing a Skill file into a chat prompt, or a chat prompt into a SKILL.md file. SKILL.md is the standard file format used to give an agent reusable task instructions.

In plain words
What is it for?
Use it when converting Skill to Prompt, Prompt to Skill, or when discussing SKILL.md format. It produces a directly usable prompt or a complete skill file.
Why use it?
It helps preserve the important steps, limits, and expected outputs when moving instructions between a reusable file and a one-off chat request. It also adapts the structure to fit each format.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when converting Skill to Prompt, Prompt to Skill, or when discussing SKILL.md format. It produces a directly usable prompt or a complete skill file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xstongxue/best-skills/skill-prompt-convert
About the project

best-skills is a collection of reusable skills for coding agents, including tools for writing papers, creating diagrams and presentations, generating code documentation, and other tasks. Users install its skills into agents such as Cursor, Claude Code, Codex, or OpenClaw so those agents can recognize relevant requests and run the corresponding workflows. The catalogue entries are examples of the skills included in the collection.

xstongxue/best-skills · 2,814 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xstongxue/best-skills --skill skill-prompt-convert
Clone the repo
git clone --depth 1 https://github.com/xstongxue/best-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-prompt-convert

README.md
[![agentmods](https://agentmods.dev/badge/skills/xstongxue/best-skills/skill-prompt-convert/github.svg)](https://agentmods.dev/skills/xstongxue/best-skills/skill-prompt-convert)
Your own site
<a href="https://agentmods.dev/skills/xstongxue/best-skills/skill-prompt-convert"><img src="https://agentmods.dev/badge/skills/xstongxue/best-skills/skill-prompt-convert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-prompt-convert

Your own site · 80×15
<a href="https://agentmods.dev/skills/xstongxue/best-skills/skill-prompt-convert"><img src="https://agentmods.dev/badge/skills/xstongxue/best-skills/skill-prompt-convert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 722 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.00722
Opus 5 $0.00036 $0.00361
Sonnet 5 $0.00014 $0.00144
Haiku 4.5 $0.00007 $0.00072

Measured 13d ago against content hash f56a2962ceed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

skill-prompt-convert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/skill-prompt-convert/SKILL.md · 48 lines

What it actually says

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 必须英文、小写、短横线(如 wechat-article-writer);reference 文件名同理(如 outline-review-science.md
  • description 质量:需包含「什么时候用」「用来干什么」及关键词
  • Skill 正文结构:标题 → 使用时机 → Step 1/2... → 注意事项/示例;多输入任务需补充「触发时的输入方式」
  • 标准 Skill 格式:YAML 前置元数据必须用 --- 开头和结尾闭合,使用 name:description:(严禁 ## name:),示例:
    ---
    name: skill-name
    description: 触发场景与功能描述
    ---
    
    # 标题
    ...
    
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 48 lines · 72 tokens per session scan A f56a2962ceed

Subscribe to this mod's changes

skill-prompt-convert is a skill published in the GitHub repository xstongxue/best-skills (2,814 stars, last pushed 18d ago), licensed Apache-2.0. It adds 72 tokens to every session and 722 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

CherryHQ/cherry-studio · 64 tokens

gh-pr-review

Automated Cherry Studio review for local branches, PRs, commits, files, architecture docs, and repository skills. Use for code or documentation reviews that need project-specific naming, main/renderer/shared placement and dependency rules, IpcApi and DataApi boundaries, lifecycle/service ownership, renderer hooks…

CherryHQ/cherry-studio · 147 tokens

prepare-release

Prepare a new release by collecting commits, generating bilingual release notes, updating version files, and creating a release branch. Use when asked to prepare/create a release, bump version, or run /prepare-release.

CherryHQ/cherry-studio · 44 tokens

claude-automation-recommender

Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what…

CherryHQ/cherry-studio · 77 tokens

gh-create-issue

Use when user wants to create a GitHub issue for the current repository. Must read and follow the repository's issue template format.

CherryHQ/cherry-studio · 31 tokens

gh-create-pr

Create or update GitHub pull requests using the repository-required workflow and template compliance. Use when asked to create/open/update a PR so the assistant reads .github/pullrequesttemplate.md, fills every template section, preserves markdown structure exactly, and marks missing data as N/A or None instead of…

CherryHQ/cherry-studio · 65 tokens