convert-plaintext-to-md
Skill này làm gì
Công cụ này chuyển văn bản thuần thành tài liệu Markdown có định dạng. Nó có thể làm theo chỉ dẫn trực tiếp của bạn, dùng các tùy chọn đã định sẵn, hoặc bắt chước định dạng của một tệp Markdown khác.
Khi nào nên dùng
- ✓Khi bạn có văn bản thuần và muốn biến nó thành tài liệu có tổ chức.
- ✓Khi bạn muốn một văn bản theo phong cách của một tài liệu có sẵn.
- ✓Khi bạn cần điều chỉnh định dạng văn bản cho các nền tảng khác nhau (như GitHub hoặc VS Code).
Liên kết skill
https://github.com/github/awesome-copilot/blob/main/skills/convert-plaintext-to-md/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chuyển văn bản này sang Markdown, dùng 'guide.md' làm mẫu và đảm bảo tiêu đề cấp 2.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ phân tích văn bản bạn cung cấp và áp dụng các quy tắc định dạng. Nó có thể sao chép một tệp có sẵn, dùng tệp ví dụ làm hướng dẫn hoặc áp dụng chỉ dẫn cụ thể mà bạn đưa ra.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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:
- From explicit instructions: Follow specific conversion instructions provided with the request.
- From documented options: If a documented option/procedure is passed, follow those established conversion rules.
- 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}}.mdalready 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 ascopy FILE FILE.mdin 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]}} eofis 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]+
- If
- IMPORTANT: DO NOT only edit the selection when passed to
- 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
- #selection - A selected pattern to follow when updating the file or a portion of it
- -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
…
Câu hỏi thường gặp
Markdown là gì?
Markdown là ngôn ngữ đánh dấu đơn giản dùng để định dạng văn bản. Nó cho phép bạn dễ dàng thêm chữ đậm, chữ nghiêng, danh sách, liên kết và các thành phần khác, và được dùng rộng rãi trên web.
Nếu tệp .md đã tồn tại thì sao?
Nếu một tệp có cùng tên và đuôi .md đã có sẵn, công cụ sẽ dùng nội dung của nó làm cơ sở để chuyển đổi, thay vì tạo tệp mới từ đầu.
Công cụ biết dùng định dạng nào?
Bạn có thể chỉ rõ, cung cấp tệp ví dụ để bắt chước, hoặc công cụ có thể đoán định dạng tốt nhất dựa trên nội dung và các tùy chọn nền tảng bạn chọn (như GitHub, VS Code).
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 40k
- Vị trí xếp hạng
- #7124
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
acquire-codebase-knowledge
40kGiúp agent của bạn hiểu và ghi tài liệu cho một dự án mã nguồn có sẵn. Hữu ích khi đón thành viên mới hoặc nắm tổng quan về kiến trúc.
acreadiness-assess
40kGiúp agent của bạn đánh giá mức độ sẵn sàng cho AI của dự án và tạo báo cáo. Hữu ích để biết dự án đã sẵn sàng dùng công cụ AI đến đâu.
acreadiness-generate-instructions
40kGiúp agent của bạn tạo hướng dẫn cho công cụ AI dựa trên kết quả đánh giá. Hữu ích để cải thiện cách AI làm việc với mã và khắc phục các khoảng trống.
acreadiness-policy
40kGiúp agent của bạn xác định hoặc áp dụng chính sách đánh giá dự án bằng AI. Hữu ích để chuẩn hóa cách đánh giá dự án và đảm bảo tuân thủ.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.