MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Convert-Plaintext-To-Md

Convert-Plaintext-To-Md是一款code方向的AI技能,核心价值是Convert a text-based document to markdown following instructions from prompt, or if a documented option is passed, follow the instructions for that option,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Convert a text-based document to markdown following instructions from prompt, or if a documented option is passed, follow the instructions for that option.

Last verified on: 2026-05-30
mkdir -p ./skills/convert-plaintext-to-md && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/convert-plaintext-to-md/SKILL.md -o ./skills/convert-plaintext-to-md/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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.


bash
/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 wi

🎯 Best For

  • Technical writers
  • API documentation teams
  • Claude users
  • GitHub Copilot users
  • Software engineers

💡 Use Cases

  • Generating JSDoc/TSDoc comments
  • Writing README files for new projects
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Convert-Plaintext-To-Md to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does it follow my documentation style?

Most documentation skills respect existing style. Provide a style guide or example in your prompt.

Is Convert-Plaintext-To-Md compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Convert-Plaintext-To-Md?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Convert-Plaintext-To-Md?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/convert-plaintext-to-md/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Auto-generating without reviewing

AI documentation can contain inaccuracies. Always verify technical accuracy.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills