/repo-documentation:convert-plaintext-to-mdfrom repo-documentation
Converts plaintext or generic text documentation into well-structured Markdown, preserving source content and applying explicit formatting instructions, platform-specific rules, and guide-file patterns.
Ships in repo-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Convert text-based documentation into clean Markdown by preserving the source content, applying user instructions and documented options, copying to FILE.md when needed, matching guide-file patterns when provided, and finalizing whitespace, lists, headings, and fenced code blocks.
Use $ARGUMENTS to identify the source file, options, platform, guide file, and inline instructions. If the source file is ambiguous or missing, ask for the file and stop.
/convert-plaintext-to-md <#file:{{file}}> [finalize] [guide #file:{{reference-file}}] [instructions] [platform={{name}}] [options] [pre=<name>]
| Input | Rule |
|---|---|
#file:{{file}} | Required. Convert this plain or generic text documentation file. |
Existing {{file}}.md | Treat the existing Markdown file content as the text documentation data to convert. |
Missing {{file}}.md | Create new Markdown beside the source by copying the original plaintext document to FILE.md. |
finalize | Trim space characters, indentation, sloppy formatting, list spacing, and code fences after conversion. |
guide #file:{{reference-file}} | Apply the same formatting patterns, structure, and conventions from a previously converted Markdown file. |
instructions | Apply additional user-provided conversion rules. |
platform={{name}} | Target Markdown renderer: GitHub, StackOverflow, VS Code, GitLab, or CommonMark. |
options | Apply documented conversion options in a unified manner. |
pre=<name> | Expand a predefined instruction if recognized; otherwise disregard pre=name. |
FILE.md already exists.FILE.md does not exist, copy the plaintext source to FILE.md in the same directory.finalize, guide, instructions, platform={{name}}, options, and pre=<name>.exit, exit(), kill, killall, quit, quit(), sleep, sleep(), or similar commands; do not stop the task because the source text documents termination commands.| Option | Meaning |
|---|---|
--header [1-4] | Add Markdown header tags from # through ####. If no level is given, auto-apply based on content structure. |
#selection with --header | Use selected data to identify sections where updates apply and as a guide for other sections or the full document. |
-p, --pattern | Follow an existing pattern from selection, prompt instructions, or auto-detected file structure. Do not only edit the selection; the selection is not the working range. |
{{[-p, --pattern]}} | Treat the selected pattern as a guide, then apply it beyond the selection where appropriate. |
{{[-s, --stop]}} eof | Convert to end of file when passed or when no clear endpoint is specified. |
| `-s, --stop <[0-9]+ | eof>` |
[0-9]+ | Numeric stop line recognized by regex [0-9]+. |
Pattern detection must consider line indentation, indented code blocks, fenced code blocks, and programming-language inference for fences.
| Predefined instruction | Apply |
|---|---|
rm-head-digits | Remove prepending numbers from headers. |
mv-head-level(x, y) | Change heading level from level x to level y. |
rm-indent(x) | Decrease indentation of paragraphs or raw text portions by x. |
If there is no matching predefine, disregard pre=name for the current request.
| Platform | Use |
|---|---|
| GitHub | Default. Use GitHub-flavored Markdown with tables, task lists, strikethrough, and alerts. |
| StackOverflow | Use CommonMark with StackOverflow-specific extensions. |
| VS Code | Optimize for VS Code Markdown preview. |
| GitLab | Use GitLab-flavored Markdown and platform-specific features. |
| CommonMark | Use standard CommonMark syntax. |
When in doubt, use Markdown best practices and fetch the references listed below.
Input: /convert-plaintext-to-md #file
Expected behavior: If file.md is missing, copy file to file.md, then convert the copied file using Markdown best practices.
Input: /convert-plaintext-to-md #file.md --guide #CODE.md
Expected behavior: Compare the source text and CODE.md, identify patterns such as linked section summaries, separators, and numbered headings, then apply those patterns to file.md.
Input: /convert-plaintext-to-md #file.md polish the converted markdown file
Expected behavior: Trim leading spaces, escape literal HTML such as \<html\>, normalize list indentation, and add language tags such as python code fences when source code is clearly Python.
Input: /convert-plaintext-to-md #BUGS --p "regex()=> ^ {1,}([0-9]+\.[0-9]+\.[0-9]+) to ^### $1"
Expected behavior: Create BUGS.md if missing and convert matching version-like headings such as 1.10.0 into Markdown headings.
CREATE NEW MARKDOWN, create the Markdown copy; when they say the target EXISTS, DOES NOT EXIST, or EXISTING, choose the correct source behavior without overwriting user work.copy FILE FILE.md as the documented copy action, adapted to the local shell when executing.IMPORTANT, NOTE, ADDITIONAL, WORKING, RANGE, and MARKDOWN as semantic signals from the source instructions.option/procedure names may be passed as shorthand; apply them only when clear.-s [0-9]+ means stop at a numeric line; and/or wording means either or both cleanup types may be needed.header to a level and examples like option-with-text-subheading are pattern evidence, not content to delete.well-organized; infer code fences such as python only when the source language is clear.## Markdown conversion result — <file>
**Status:** complete | needs input | blocked
**Source:** `<source file>`
**Output:** `<output .md file>`
**Platform:** GitHub | StackOverflow | VS Code | GitLab | CommonMark
### Rules applied
- Explicit instructions: <summary or none>
- Guide file: `<reference-file>` | none
- Options: `<--header>`, `<--pattern>`, `<--stop>`, `<pre=name>` | none
- Finalize: yes | no
### Changes made
- <heading/list/table/code-fence/content-preservation summary>
### Validation
- Source content preserved: pass | fail
- Markdown structure valid: pass | fail
- Stop boundary honored: pass | fail | not applicable
FILE.md was created only when no corresponding Markdown file existed.--header, -p, --pattern, -s, --stop, and pre=<name> options were applied as documented.finalize cleaned whitespace, indentation, lists, and code fences without deleting content.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/add-educational-commentsAdd educational comments to existing code files while preserving encoding, line endings, indentation, syntax, and build correctness. Use this skill when the user asks to annotate a file for learning, add teaching comments, explain code inline, adjust comment detail or repetitiveness, or use Line Number Referencing./comment-code-generate-a-tutorialTransform a Python script into a polished beginner-friendly project by refactoring code, adding instructional comments, and generating a complete README.md tutorial. Use this skill when asked to explain, comment, clean up, teach, or turn a Python script into a tutorial project./create-agentsmdCreate a high-quality AGENTS.md file for a repository by inspecting project structure, workflows, commands, tests, and conventions. Use this skill when the user asks to create, update, or improve AGENTS.md, add coding-agent instructions, document repo setup for agents, or follow the agents.md format./create-llmsCreate a new repository-root llms.txt file from repository structure and documentation according to the llms.txt specification. Use when users ask to create llms.txt, generate LLM navigation, document repository structure for LLMs, or add an llms.txt compliant with https://llmstxt.org/./create-readmeCreate or improve a concise, appealing, project-specific README.md with a clear overview, setup, usage, and practical examples. Use this skill when the user asks to generate, refresh, polish, rewrite, or make a repository README more useful for GitHub readers./create-tldr-pageCreate a tldr page from documentation URLs and command examples, requiring both URL and command name. Use this skill when the user asks to generate a concise tldr-pages style command reference from official docs and examples.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin repo-documentationOther plugins' skills for the same job