Official agent skill

Convert Plaintext To Md

by github in github/awesome-copilot

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

OfficialMITAuto-check passedDocuments & Office

Install Convert Plaintext To Md

skills CLI
$ npx skills add github/awesome-copilot --skill convert-plaintext-to-md -a claude-code

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

GitHub CLI
$ gh skill install github/awesome-copilot convert-plaintext-to-md --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/github/awesome-copilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/convert-plaintext-to-md .claude/skills/convert-plaintext-to-md && 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
convert-plaintext-to-md
GitHub stars
40k
Used in
1 other repo
Token cost
~2.8k tokens
SKILL.md length
893 words
Files
1
Skills in repo
417
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 2 steps: From explicit instructions: Follow… → From documented options: If a documented…
  • Tasks that involve Document parsing
  • SKILL.md covers Current Role, Conversion Methods, When Using a Reference File and Usage, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Convert Plaintext To Md is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Convert a text-based document to markdown following instructions from prompt, or if a documented option is passed, follow the instructions for that option.

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

It sits in Documents & Office, covering Document parsing. The repository describes itself as: Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot. The licence is MIT.

When your agent uses it

  • Tasks that involve Document parsing

Example prompts

  • “/convert-plaintext-to-md”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit 727ff2e. 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 (its code samples are bash).

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

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.github.com
    • markdownguide.org
    • learn.microsoft.com

    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

Convert Plaintext To Md loads about 2.8k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 893 words of instructions outside code blocks.

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

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 github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 893 words, ~2,849 tokens.

Download SKILL.mdSave it as .claude/skills/convert-plaintext-to-md/SKILL.md (or your agent's skills folder).
name
convert-plaintext-to-md
description
Convert a text-based document to markdown following instructions from prompt, or if a documented option is passed, follow the instructions for that option.

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 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
Show full SKILL.md (315 more words)Show less
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
bash
/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

bash
/convert-plaintext-to-md #file

Agent

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

    ```bash
    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

bash
/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
    ```text
    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
    ```markdown
    # Title

    Text in opening.

    ### [Section](#1-section)

    - [1.1](#11) 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
    ```text
    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
    ```markdown
    # Title

    ### [1. Command](#command)
    - [1.10.0](#1100-option-with-text-subheading) Option With Text Subheading

    ***

    ## Command

    ### 1.10.0 Option With Text Subheading
    Info on the commands' options.
    ```
Finalize is Clearly Triggered

User

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

    ```markdown
    # 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:

    ```markdown
    # 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:

    ```python
    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

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

    ```bash
    copy BUGS BUGS.md
    ```

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

    ```markdown
    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:

    ```markdown
    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 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

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

© github, MIT. 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/convert-plaintext-to-md of github/awesome-copilot.

Open the folder on GitHubat commit 727ff2e

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in github/awesome-copilot, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Convert Plaintext To Md 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.

Convert Plaintext To Md compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Convert Plaintext To Md this skillgithub/awesome-copilot40k1 repos~2.8kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
DOCX ToolkitXiaomiMiMo/MiMo-Code14k—~2.4kAutomated safety check: PassApache-2.0
Huashu Markdown Publishing Pipelinealchaincyf/huashu-md-html908—~4.8kAutomated safety check: PassMIT
Markitdownjimmc414/Kosmos5942 repos~1.7kAutomated safety check: PassNone
Liteparsebastani-inc/atomic846—~1.4kAutomated safety check: PassMIT

Similar skills

  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • DOCX Toolkit

    XiaomiMiMo/MiMo-Code

    Produces, edits and reads Microsoft Word files through python-docx and lxml, with a decision table for picking the lightest workflow for a given task.

    14k GitHub stars~2.4k tokensUpdated 4 days ago
    Documents & OfficeAuto-check passed
  • Huashu Markdown Publishing Pipeline

    alchaincyf/huashu-md-html

    Converts files and web pages into clean Markdown, then turns Markdown into polished HTML, Word, PDF and EPUB using four templates.

    908 GitHub stars~4.8k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Markitdown

    jimmc414/Kosmos

    Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing.

    594 GitHub starsUsed in 2 repos~1.7k tokens
    Documents & OfficeAuto-check passed
  • Liteparse

    bastani-inc/atomic

    A skill your agent uses whenever a task involves a document file (PDF, DOCX, PPTX, XLSX, or image) and you need to read it or pull text, tables, or specific values out of it — to answer a question…

    846 GitHub stars~1.4k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Beautiful Article

    ConardLi/garden-skills

    Turns a URL, PDF, DOCX, Markdown file, text or screenshots into a designed, shareable single-file HTML article through a staged review workflow.

    13k GitHub stars~4.7k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed

More from github/awesome-copilot

All 417 skills in this repo
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Draw.io Diagram Generator

    github/awesome-copilot

    Official

    Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.

    40k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Questions about Convert Plaintext To Md

What does Convert Plaintext To Md do?

Convert a text-based document to markdown following instructions from prompt, or if a documented option is passed, follow the instructions for that option. Convert Plaintext To Md is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Convert a text-based document to markdown following instructions from prompt, or if a documented option is passed, follow the instructions for that option.

When should I use Convert Plaintext To Md?

Convert Plaintext To Md fits situations like: tasks that involve Document parsing.

How do I install Convert Plaintext To Md in Claude Code?

Run `npx skills add github/awesome-copilot --skill convert-plaintext-to-md -a claude-code`. Or copy the skill folder (skills/convert-plaintext-to-md in github/awesome-copilot) into .claude/skills/convert-plaintext-to-md in your project. Claude Code loads it when a task matches its description.

How do I install Convert Plaintext To Md in Codex?

Run `npx skills add github/awesome-copilot --skill convert-plaintext-to-md -a codex`. Or copy the skill folder (skills/convert-plaintext-to-md in github/awesome-copilot) into .agents/skills/convert-plaintext-to-md in your project. Codex loads it when a task matches its description.

Can I use Convert Plaintext To Md 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 github/awesome-copilot --skill convert-plaintext-to-md -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/convert-plaintext-to-md, .gemini/skills/convert-plaintext-to-md, .github/skills/convert-plaintext-to-md and .opencode/skills/convert-plaintext-to-md in your project.

What does Convert Plaintext To Md need to run?

SKILL.md names no scripts, command-line tools or credentials: Convert Plaintext To Md is instructions for the agent only. Our summary lists: Python 3.

Does Convert Plaintext To Md access the network?

SKILL.md names 3 domains. As links in the text: docs.github.com, markdownguide.org and learn.microsoft.com. This is read from the text; nothing was executed.

Is Convert Plaintext To Md 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 Convert Plaintext To Md use?

Convert Plaintext To Md is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Convert Plaintext To Md use?

About 2.8k tokens (SKILL.md is roughly 11k 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 Convert Plaintext To Md?

Skills that share tags, products or a category with Convert Plaintext To Md: Markitdown (ImCa0/just-laws, 781 stars), DOCX Toolkit (XiaomiMiMo/MiMo-Code, 14k stars), Huashu Markdown Publishing Pipeline (alchaincyf/huashu-md-html, 908 stars) and Markitdown (jimmc414/Kosmos, 594 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Convert Plaintext To Md?

github (a GitHub organization, an official publisher) maintains it in github/awesome-copilot, which has 39,748 GitHub stars. The repository holds 417 skills in this directory. The repository was last updated on October 7, 2026.

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