make-blog-post
Skill này làm gì
Biến một đoạn mã thành bài blog, được viết theo phong cách của tác giả. Nó tập trung vào một hàm, script, lớp hoặc công cụ cụ thể, kèm ví dụ tổng quát và ví dụ sử dụng.
Khi nào nên dùng
- ✓Khi bạn muốn biến mã đang chạy thành một bài viết.
- ✓Khi bạn yêu cầu tạo một hướng dẫn hoặc bài hướng dẫn về một đoạn mã.
- ✓Khi bạn muốn AI viết bài blog theo phong cách của mình, dùng ví dụ từ các bài viết cũ.
Liên kết skill
https://github.com/github/awesome-copilot/blob/main/skills/make-blog-post/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
“Biến đoạn mã này thành bài blog theo phong cách của tôi, rồi lưu vào /my-blog.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Đầu tiên, AI xác định phần nào của mã bạn muốn biến thành bài viết. Sau đó, nó học phong cách viết của bạn dựa trên các bài viết cũ bạn cung cấp hoặc những bài đã đăng. Cuối cùng, nó tạo bản nháp để bạn phê duyệt.
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.
Make Blog Post
Turn code from the current session into a blog post that reads as if its author wrote it: one walkthrough of one function, script, class, or tool, built around a generalized sample and a usage example.
This skill runs only when the user asks for a post. The natural moment is the end of a turn, once the code works: /make-blog-post, optionally followed by what to cover, where the post goes, and links or files of the author's past posts.
When to Use This Skill
- The user asks to write, draft, or turn code into a blog post, article, tutorial, walkthrough, or gist.
- The user invokes
/make-blog-post, with or without naming the subject, the destination, or writing samples.
Do not use it for API reference, READMEs, changelogs, or release notes, or for a post that needs several unrelated examples or a multi-file walkthrough.
Examples
/make-blog-post
/make-blog-post the retry helper in src/http.ts
/make-blog-post the slugify function, as a gist
/make-blog-post put it in the blog, match https://example.com/posts/one and https://example.com/posts/two
Workflow
Work through the steps in order. Nothing is written to disk until the draft is approved in step 5.
1. Pick the subject
- Use what the user named: a function, file, selection, snippet, or topic. Code pasted into the conversation is in scope too.
- Otherwise, take the code written or changed in this session. When more than one piece qualifies, list up to three, each with a one-line purpose, and ask which one to write up.
- Check that the subject works as a standalone post. It should:
- Solve one clear, general-purpose problem.
- Fit in one self-contained example.
- Not depend on project-specific state, services, or configuration that cannot be replaced with a stand-in.
- Not be trivial. A one-line wrapper or a lone standard-library call does not qualify.
- When a check fails, say which one and suggest an angle that works, such as the technique behind the code. Proceed with the original subject if the user still wants it.
2. Resolve the destination
Consider only what the user said, the current workspace, and paths the user provides. Do not assume any folder exists, and do not walk parent or sibling directories looking for one.
- The user named a destination (a local path, the current workspace repository, a venue such as a gist, or "just show me"): use it, and do not move the post elsewhere because another place fits conventions better. If the user names another repository, ask for its local checkout path; do not clone or modify it remotely. A partial name such as "the blog" resolves against the current workspace only. If the workspace is not that blog, ask for the path.
- The workspace is a blog or site: take the posts folder from the generator's own configuration, and match an existing post's folder, extension, file naming, and front matter. See references/blog-platforms.md for detection and each generator's contract.
- Otherwise: write no file. Deliver the post in chat and offer to save it to a path the user names.
A default destination or voice profile recorded in the user's custom instructions counts as named by the user. That is the place for a personal workflow, such as a folder where every post is archived.
When writing to a named path:
- Create missing subfolders under a root that exists. If the root itself does not exist, ask instead of building a tree that may be a typo.
- If the path breaks the detected generator's contract (the wrong folder for the collection, a missing date prefix), state in one line what would break, offer the compatible path, and ask which to use.
- If the request conflicts with the site's conventions, say so once, then follow the request. The security rules and the approval gate still apply.
3. Learn the author's voice
A post that reads like generic documentation is not the author's post. Before drafting, collect three to five samples of the author's own writing, from these sources in order:
- Samples named in the request: files, folders, URLs, or pasted text.
- A saved voice profile the user points to, in the request or in their custom instructions.
- When step 2 resolved a blog repository, the most recent posts by this author in its posts folder.
…
Câu hỏi thường gặp
Điều gì xảy ra nếu tôi không có bài viết cũ để AI học phong cách?
AI có thể dùng một phong cách trung tính hoặc hỏi vài câu ngắn để hiểu sở thích viết của bạn.
AI có thể viết về nhiều đoạn mã khác nhau trong một bài không?
Không, tính năng này chỉ tập trung vào một đoạn mã tại một thời điểm để bài viết rõ ràng và tập trung hơn.
Bài viết sẽ được lưu ở đâu?
Tùy theo yêu cầu của bạn. Bài có thể được lưu ở vị trí bạn chỉ định, trên blog của bạn, hoặc chỉ hiển thị trong cuộc trò chuyện nếu không chỉ định vị trí.
Chi tiết
Mô tả gốc của tác giả
Turn code from the current session into a blog post written in the voice of its author. Covers one function, script, class, or tool as a focused walkthrough with a generalized sample and a usage example, learns tone and structure from existing posts or writing samples by the same author, takes the destination from what the user names or the blog repository in use instead of assumed folders, and sa
repo: github/awesome-copilot
Độ phổ biến
- Sao GitHub
- 40k
- Vị trí xếp hạng
- #7273
- 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ự
obsidian-vault-maintainer
394kGiúp agent của bạn giữ gọn kho ghi nhớ kiểu Obsidian, với liên kết wiki hoạt động tốt, thuộc tính nhất quán và các phần tự tạo an toàn.
wiki-maintainer
394kGiúp agent của bạn duy trì wiki bộ nhớ OpenClaw với các trang có thể lặp lại, khối được quản lý an toàn và kiểm tra mâu thuẫn hoặc thiếu sót.
obsidian
394kCho phép agent của bạn đọc, tìm, tạo và sửa ghi chú, công việc, liên kết và thuộc tính trong Obsidian bằng dòng lệnh Obsidian chính thức.