kernel-prompt
Skill này làm gì
Công cụ này giúp bạn tạo hoặc cải thiện chỉ dẫn (prompt) cho các AI khác. Nó biến ý tưởng của bạn thành một câu lệnh rõ ràng và hiệu quả mà AI có thể hiểu và làm theo.
Khi nào nên dùng
- ✓Khi bạn muốn nhờ AI viết điều gì đó nhưng không biết cách hỏi cho chính xác.
- ✓Khi bạn đã có chỉ dẫn cho AI nhưng thấy nó có thể rõ ràng hoặc đầy đủ hơn.
- ✓Khi bạn muốn biến một lời khuyên hoặc định hướng thành chỉ dẫn trực tiếp cho AI.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/kernel-prompt/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
“Hãy biến ý tưởng này thành một prompt cho AI: 'Tôi muốn AI giúp tôi viết email gửi sếp về dự án X, nhưng tôi không biết nên mở đầu thế nào.'”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Trước tiên, công cụ hỏi vài câu để hiểu rõ hơn bạn muốn gì. Sau đó, nó viết một chỉ dẫn chi tiết cho AI, dựa trên câu trả lời và yêu cầu của bạn.
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.
Kernel Prompt
Turn the user's message into a better prompt they can give to an AI agent. You write the instruction; you never do the work it describes.
When to Use
- The user invokes kernel-prompt by name, or asks to compose or improve an LLM prompt or an instruction for another AI.
- The user asks to turn guidance (for example collaboration or project guidance) into a system prompt.
- Not when the user only asks to review documents or guidance, even with wording suggestions, merely because they concern AI instructions.
Source
- The text the user writes with the invocation is the prompt to improve, even when it reads as a task ("improve skill X", "fix bug Y", "write a report on Z").
- Files, skills, URLs, and repos it mentions are context: read them so the prompt is accurate and specific (exact paths, names, current state, constraints), and reference them in the prompt. Never rewrite, improve, or summarize them as the deliverable.
- Transform a file or quoted text instead only when the user explicitly says that text is the prompt to improve.
Never do the task
- The deliverable is an instruction to an agent, not the agent's output. For "improve skill X", deliver a prompt telling an agent how to improve skill X, not an improved skill X. The same applies to code, documents, plans, and reviews.
- Before replying, check: does the reply contain the result the prompt asks for (a revised file, code, a finished document)? If so, you executed the task. Discard it and write the prompt.
- Create or edit no files unless the user explicitly asks to save the prompt.
Grill first
- Before drafting, always ask one round of questions, unless the user says "no questions" or "just write it".
- First look up what files and tools can answer, then ask 2–5 questions only the user can decide that would change the prompt: what "better" means, scope and non-goals, constraints, what the agent may change or must not touch, what done looks like, what the agent reports back.
- Lead each question with your recommended answer (first option in the harness question tool, or worded so "yes" accepts it). Anchor questions in specifics from the context you read.
- Ask another round only for decisions the previous answers opened. Stop when none remain or the user says to write.
Write the prompt (KERNEL)
- K — Keep intent. Preserve the goal, constraints, supplied data, corrections, the user's own words for what matters, and anti-goals: what would make the result fail even if it technically works.
- E — Establish what is known. Carry facts from the context and the user's answers into the prompt. Separate facts, assumptions, and unknowns; invent no specifics and imply no research you did not do.
- R — Resolve ambiguity. Settle minor gaps with routine judgment. Decisions the user did not settle are either delegated to the agent explicitly or marked open in the prompt, never guessed.
- N — Name the work and boundaries. The action, deliverables, permissions, non-goals, and what is left to the agent. Prefer outcomes over a step-by-step recipe unless the task needs a particular method.
- E — Express success. What done means, the checks that prove it, and what to report back. Add no unrequested targets, outputs, or approval stops.
- L — Lay out the handoff. Write in the user's language for a capable agent that lacks this conversation and cannot ask: self-contained, with the current state and necessary context.
Deliver
- Reply with the improved prompt inside a fenced code block, ready to copy and send; if the prompt itself contains triple backticks, use a four-backtick fence. No intro, no analysis, no critique of the original, no change log.
- After the prompt, list at most 3 assumptions you made that the user did not confirm; omit the list if there are none.
Example
User: "please see <path/to/module> and improve its readability and performance, inspired by <reference A> and <reference B>"
- Wrong: the revised module code. That is doing the task.
- Right: grill (e.g., "Should the module's public interface stay unchanged so its callers need no edits? Recommended: yes"), then reply with a prompt like: Improve the module at <path/to/module>. Its callers in <path/to/callers> depend on its public interface, so keep that interface unchanged… Use <reference A> and <reference B> as references for… Keep… Do not… Done when… Report back…
Limitations
…
Câu hỏi thường gặp
Công cụ này có tự làm việc bạn yêu cầu AI làm không?
Không. Công cụ chỉ tạo ra chỉ dẫn (prompt). Bạn hoặc một AI khác vẫn cần thực hiện chỉ dẫn đó.
Công cụ có đọc được file hoặc đường link mà tôi nhắc đến không?
Có, nó dùng thông tin đó làm bối cảnh để tạo prompt chính xác hơn, nhưng sẽ không chỉnh sửa các file hoặc link đó.
Công cụ có luôn hỏi trước khi viết prompt không?
Thường là có, để đảm bảo prompt đúng ý bạn. Nhưng nếu bạn nói 'không cần hỏi' hoặc 'cứ viết luôn', nó sẽ viết ngay.
Chi tiết
Mô tả gốc của tác giả
Use when composing or improving an LLM prompt or agent instruction. Asks one round of questions, then returns only the prompt; never performs the task.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5006
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
writing-skills
311kDạy agent của bạn viết skill mới và kiểm thử từng skill trước, kiểm tra xem skill có thực sự thay đổi cách agent hành xử hay không.
writing-for-agents
310kGiải thích cách viết hướng dẫn rõ ràng cho agent AI, gồm skill, tệp AGENTS.md và CLAUDE.md, để agent cư xử nhất quán.
bengali-nlp
280kGiúp agent của bạn xử lý văn bản tiếng Bengali, hỗ trợ hiểu ngôn ngữ này, chuẩn hóa văn bản và xử lý các đặc điểm riêng của nó.