Chuyển đến nội dung
Skillpedia
Viết lách40k · #7273

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/make-blog-post/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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.

  1. 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.
  2. 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.
  3. 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:

  1. Samples named in the request: files, folders, URLs, or pasted text.
  2. A saved voice profile the user points to, in the request or in their custom instructions.
  3. 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự