Aller au contenu
Skillpedia
Analyse et tableurs40k · #7124

convert-plaintext-to-md

Ce qu’il fait

Cet outil convertit du texte brut en documents Markdown mis en forme. Il peut suivre vos instructions directes, utiliser des options prédéfinies ou imiter la mise en forme d'un autre fichier Markdown.

Quand l’utiliser

  • ✓Lorsque vous avez du texte brut et que vous souhaitez en faire un document structuré.
  • ✓Lorsque vous voulez qu'un texte suive le style d'un document existant.
  • ✓Lorsque vous devez adapter la mise en forme du texte à différentes plateformes (comme GitHub ou VS Code).

Lien du skill

https://github.com/github/awesome-copilot/blob/main/skills/convert-plaintext-to-md/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/github/awesome-copilot/blob/main/skills/convert-plaintext-to-md/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Convertissez ce texte en Markdown, en utilisant « guide.md » comme modèle et en veillant à ce que les titres soient de niveau 2.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'outil analyse le texte que vous fournissez et applique des règles de mise en forme. Il peut copier un fichier existant, utiliser un fichier d'exemple comme guide ou appliquer les instructions précises que vous donnez.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

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

…

Questions fréquentes

Qu'est-ce que Markdown ?

Markdown est un langage de balisage simple utilisé pour mettre en forme le texte. Il permet d'ajouter facilement du gras, de l'italique, des listes, des liens et d'autres éléments. Il est largement utilisé sur le web.

Que se passe-t-il si un fichier .md existe déjà ?

Si un fichier portant le même nom et l'extension .md existe déjà, l'outil utilisera son contenu comme base de conversion, au lieu de créer un nouveau fichier à partir de zéro.

Comment l'outil sait-il quel format utiliser ?

Vous pouvez le lui indiquer explicitement, lui fournir un fichier d'exemple à imiter, ou il peut essayer de deviner le format le plus adapté en fonction du contenu et des options de plateforme que vous choisissez (GitHub, VS Code, etc.).

Détails

Description originale de l’auteur

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

repo: github/awesome-copilot

Popularité

Étoiles GitHub
40k
Position au classement
#7124
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires