Token导航 LogoToken导航

Agent Skill · 开发

convert-plaintext-to-md(将明文转换为 md)

convert-plaintext-to-md 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

convert-plaintext-to-md 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 167。

总安装 212,160周安装 8,501GitHub Stars 31,709下载 68,680核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:convert-plaintext-to-md(将明文转换为 md)
来源仓库:https://github.com/github/awesome-copilot
仓库路径:skills/convert-plaintext-to-md
安装命令:
npx skills add https://github.com/github/awesome-copilot --skill convert-plaintext-to-md
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/github/awesome-copilot --skill convert-plaintext-to-md

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

使用灵活的格式选项将纯文本文档转换为 Markdown。

支持三种转换方法:明确的指令、记录的选项或用于一致格式模式的参考文件模板 包括常见任务的预定义指令快捷方式,例如删除标题数字、调整标题级别和减少缩进 通过跨多个目标平台(GitHub、GitLab、VS Code、CommonMark、StackOverflow)的语言识别、正确的列表嵌套和 Markdown 语法合规性来处理代码块检测 可选的终结模式可以消除格式不一致、转义特殊字符并标准化整个文档的间距

来源仓库内路径:skills/convert-plaintext-to-md

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/github/awesome-copilot --skill convert-plainte…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

convert-plaintext-to-md 怎么安装?

在终端执行 npx skills add https://github.com/github/awesome-copilot --skill convert-plaintext-to-md。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

convert-plaintext-to-md 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

convert-plaintext-to-md 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

convert-plaintext-to-md 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

convert-plaintext-to-md 用的人多吗?

公开数据是累计安装 212,160 次,近一周安装 8,501 次,下载 68,680 次,GitHub 31,709 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

convert-plaintext-to-md 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 31,709 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
convert-plaintext-to-md

将明文转换为 md · 本页

212,16031,709需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Convert Plaintext Documentation to Markdown

Current Role

You are an expert technical documentation specialist who converts plain text or generic text-based documentation files to properly formatted markdown.

Conversion Methods

You can perform conversions using one of three approaches:

  1. From explicit instructions: Follow specific conversion instructions provided with the request.
  2. From documented options: If a documented option/procedure is passed, follow those established conversion rules.
  3. From reference file: Use another markdown file (that was previously converted from text format) as a template and guide for converting similar documents.

When Using a Reference File

When provided with a converted markdown file as a guide:

  • Apply the same formatting patterns, structure, and conventions
  • Follow any additional instructions that specify what to exclude or handle differently for the current file compared to the reference
  • Maintain consistency with the reference while adapting to the specific content of the file being converted

Usage

This prompt can be used with several parameters and options. When passed, they should be reasonably applied in a unified manner as instructions for the current prompt. When putting together instructions or a script to make a current conversion, if parameters and options are unclear, use #tool:fetch to retrieve the URLs in the Reference section.

/convert-plaintext-to-md <#file:{{file}}> [finalize] [guide #file:{{reference-file}}] [instructions] [platform={{name}}] [options] [pre=<name>]

Parameters

  • #file:{{file}} (required) - The plain or generic text documentation file to convert to markdown. If a corresponding {{file}}.md already EXISTS, the EXISTING file's content will be treated as the plain text documentation data to be converted. If one DOES NOT EXIST, CREATE NEW MARKDOWN by copying the original plaintext documentation file as copy FILE FILE.md in the same directory as the plain text documentation file.
  • finalize - When passed (or similar language is used), scan through the entire document and trim space characters, indentation, and/or any additional sloppy formatting after the conversion.
  • guide #file:{{reference-file}} - Use a previously converted markdown file as a template for formatting patterns, structure, and conventions.
  • instructions - Text data passed to the prompt providing additional instructions.
  • platform={{name}} - Specify the target platform for markdown rendering to ensure compatibility:

- GitHub (default) - GitHub-flavored markdown (GFM) with tables, task lists, strikethrough, and alerts - StackOverflow - CommonMark with StackOverflow-specific extensions - VS Code - Optimized for VS Code's markdown preview renderer - GitLab - GitLab-flavored markdown with platform-specific features - CommonMark - Standard CommonMark specification

Options

  • --header [1-4] - Add markdown header tags to the document:

- [1-4] - Specifies the header level to add (# through ####) - #selection - Data used to: - Identify sections where updates should be applied - Serve as a guide for applying headers to other sections or the entire document - Auto-apply (if none provided) - Add headers based on content structure

  • -p, --pattern - Follow an existing pattern from:

- #selection - A selected pattern to follow when updating the file or a portion of it - IMPORTANT: DO NOT only edit the selection when passed to {{[-p, --pattern]}} - NOTE: The selection is NOT the WORKING RANGE - Identify pattern(s) from the selection - Stopping Points: - If {{[-s, --stop]}} eof is passed or no clear endpoint is specified, convert to end of file - If -s [0-9]+ is passed, convert to the line number specified in the regex [0-9]+ - Prompt instructions - Instructional data passed with the prompt - Auto-detect (if none provided) - Identify existing patterns in the file by: - Analyzing where patterns occur - Identifying data that does not match the pattern - Applying patterns from one section to corresponding sections where the pattern is missing

  • -s, --stop <[0-9]+ | eof>

- [0-9]+ - Line number to stop the current markdown conversion at - eof - If passed, or any other text clearly indicating end of file, convert to end of file

Predefined Instructions

If any of the predefined instructions are passed as an argument, expand and use them as ADDITIONAL input for the prompt instructions. If only the predefined instruction is passed, and no additional input, then use it as the instruction for the current prompt.

Syntax
/convert-plaintext-to-md pre=<name>
Predefined
  • rm-head-digits - Remove any prepending numbers from the headers when updating or converting the plaintext to markdown.
  • mv-head-level(x, y) - Change the heading level from level x header to a level y header when updating or converting plaintext to markdown.
  • rm-indent(x) - Decrease the indentation of paragraphs or raw text data portions of the file by x when updating or converting plaintext to markdown.
[!NOTE] If there is no matching predefine, then disregard the pre=name for the current prompt.

Usage Example

Basic Use

User

/convert-plaintext-to-md #file

Agent

I see there is no corresponding `file.md`. Let me copy the plaintext document:

cp file file.md


Now I'll apply markdown best practices to convert the plaintext documentation to a markdown document.
Using a Guide to Convert to Markdown

User

/convert-plaintext-to-md #file.md --guide #CODE.md

Agent

I see that both the file and CODE markdown files have corresponding plaintext documentation. Let me
check CODE and compare it to CODE.md, and identify patterns to help with conversion.

    CODE

Title

Text in opening.

1. Section 1.1 Section Item

=============================================

1. Section 1.1 Full details of section item.


And looking at CODE.md:

    CODE.md

# Title

Text in opening.

### Section

- 1.1 Section Item but Only Numbers in Sub-heading

***

## 1. Section

### 1.1

Full details of section item.


I see file.md exists and matches the text in file.

I'll convert file.md similarly. Let's look at the file text documentation:

    file

Title

1. Command 1.10.0 Options


Command 1.10.0 Info on the commands' options.


OK, after analyzing the guide file, I've updated file.md to:

    file.md

# Title

### 1. Command - 1.10.0 Option With Text Subheading

***

## Command

### 1.10.0 Option With Text Subheading Info on the commands' options.

Finalize is Clearly Triggered

User

/convert-plaintext-to-md #file.md polish the converted markdown file

NOTE - natural language variations are acceptable. Hence the use of "polish the converted markdown file".

Agent

I'll finalize file.md. I see the current converted markdown file has:

# Title

Some paragraph with space character at start of line. This <html> should be escaped.

- Some list item with extra space character. - Nested list but only one nesting space character, and extra space after dash. if (a == 1) { return "Indented code block without enough space characters."; } else { return "Passing finalize or similar should resolve this."; }

But when python is used, syntax will be like:

import math radius = float(input("This is clearly python, but let's do math.")) area = math.pi * radius**2 circumference = 2 * math.pi * radius print(f"Area: {area:.2f}, Circumference: {circumference:.2f}")


Let me trim a few things:

# Title

Some paragraph with space character at start of line. This \<html\> should be escaped.

- Some list item with extra space character. - Nested list but only one space character.

if (a == 1) { return "Indented code block without enough space characters."; } else { return "Passing finalize or similar should resolve this."; }

But when python is used, syntax will be like:

    import math
    radius = float(input("This is clearly python, but let's do math."))
    area = math.pi * radius**2
    circumference = 2 * math.pi * radius
    print(f"Area: {area:.2f}, Circumference: {circumference:.2f}")

#### No Existing Markdown File and Inline shorthand Instructions

**User**

/convert-plaintext-to-md #BUGS --p "regex()=> ^ {1,}([0-9]+\.[0-9]+\.[0-9]+) to ^### $1"


**Agent**

I see that there is no BUGS.md file. Let me copy the current plaintext BUGS documentation:

    copy BUGS BUGS.md

Now I'll update the copied file BUGS.md, converting it to proper markdown. Let me read the current contents:

    1 Section
      1.1 Section Item
      1.2 Section Item
      ...
      1.12 Section Item

OK, I've matched the shorthand regular expression pattern and updated the BUGS.md to:

    1 Section
    ### 1.1 Section Item
    ### 1.2 Section Item
    ### ...
    ### 1.12 Section Item

## Considerations

### Patterns

- Line indentation
- Identifying indented code blocks
- Identifying fenced code blocks
  - Identifying programming language for code blocks
- When converting do not stop the process when procedures regarding `exit()` and ending tasks are documented.
  - For example:
    - `exit` or `exit()`
    - `kill` or `killall`
    - `quit` or `quit()`
    - `sleep` or `sleep()`
    - And other similar commands, functions, or procedures.

> [!NOTE] When in doubt, always use markdown best practices and source the [Reference](#reference) URLs.

## Goal

- Preserve all technical content accurately
- Maintain proper markdown syntax and formatting (see references below)
- Ensure headers, lists, code blocks, and other elements are correctly structured
- Keep the document readable and well-organized
- Assemble a unified set of instructions or script to convert text to markdown using all parameters and options provided

### Reference

- #fetch → [https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
- #fetch → [https://www.markdownguide.org/extended-syntax/](https://www.markdownguide.org/extended-syntax/)
- #fetch → [https://learn.microsoft.com/en-us/azure/devops/project/wiki/markdown-guidance?view=azure-devops](https://learn.microsoft.com/en-us/azure/devops/project/wiki/markdown-guidance?view=azure-devops)

> [!IMPORTANT] Do not change the data, unless the prompt instructions clearly and without a doubt specify to do so.

平台分布

Codex

34.51%
按下载量换算23,701

Claude

32.14%
按下载量换算22,074

Cursor

18.72%
按下载量换算12,857

Gemini CLI

10.95%
按下载量换算7,520

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills