Prompting
Skill này làm gì
Tạo và tinh chỉnh các prompt, và xây prompt từ các mẫu có thể tái sử dụng. Skill dành cho người xây quy trình AI hoặc muốn prompt tốt hơn cho trợ lý của mình, chứ không dành cho nội dung hoàn chỉnh.
Khi nào nên dùng
- ✓Khi bạn muốn một system prompt rõ ràng, có thể tái sử dụng cho trợ lý AI.
- ✓Khi một prompt hiện có cho kết quả yếu hoặc mơ hồ và cần cải thiện.
- ✓Khi bạn cần tạo một bộ prompt từ cùng một mẫu.
Liên kết skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Prompting/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
“Viết một system prompt cho trợ lý hỗ trợ khách hàng, tập trung vào kết quả và các giới hạn.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill nêu mục tiêu thành các kết quả có thể kiểm thử, thêm các ràng buộc và công cụ, và chỉ giữ những bước thực sự cần thiết. Đầu ra là một prompt để bạn dùng với tác vụ khác, không phải nội dung cuối cùng.
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.
Prompting - Meta-Prompting & Template System
Contents: Ideal State · Anti-criteria · Intent Routing · Data & Config · Gotchas · Examples · References
Generates, optimizes, and composes prompts programmatically. It's the standard library for prompt engineering — other skills call it when they need to build or improve a prompt. The output is always a prompt to be used elsewhere, never the final content itself.
Philosophy: Prompts that write prompts. Structure is code, content is data. Meta-prompting enables dynamic composition where the same template with different data generates specialized agents, workflows, and evaluation frameworks.
Ideal State
- Every prompt this library generates or optimizes articulates the ideal state, not the procedure: WHAT done looks like as testable outcomes, the CONSTRAINTS, and the high-quality TOOLS available, with the specificity moved to the outcome so the prompt is more precise, not vaguer.
- In every prompt this library generates or optimizes, the only HOW that survives is the four keep-classes (safety-gate, verified-gotcha, tool-contract, output-format-contract); every other procedural line failed the test of whether a smarter model would make it unnecessary. Deterministic tools (
*.ts) are exempt. The full standard isStandards.md§ Ideal-State Prompting. - A prompt composed from data keeps structure as code and content as data: a Handlebars template under
Templates/rendered with a data object, or from a .yaml or .json file, throughRenderTemplate.ts. - A reusable prompt captures the supplied intent, constraints, and output contract; its output contract can guide the intended downstream task; and it was tested before it was declared ready.
- When
Standards.mdis authored or audited (not on routine template renders), both official anchors were fetched and every place our standards diverge from the current official guidance is flagged.
Anti-criteria
- No reasoning choreography ("first analyze, then consider, then decide") in a prompt this library generates or optimizes: it is BLE-violating scaffolding that caps a capable model and rots as models improve.
- Meta-prompting never produces the final deliverable: it generates PROMPTS, not content.
- No template or prompt depends on specific model quirks; templates stay model-agnostic.
- No generated prompt is declared ready untested: a prompt that looks good may perform poorly.
- Standards drift is reported, never auto-adopted, and an unreachable anchor URL never blocks the work.
Intent Routing
Library skill, no Intents/ directory. Requests route to the tools and reference docs:
| Intent | Trigger | File |
|---|---|---|
| RenderTemplate (tool) | render a template, compose a prompt from data, Handlebars template | Tools/RenderTemplate.ts |
| ValidateTemplate (tool) | validate a template | Tools/ValidateTemplate.ts |
| Standards (reference) | prompt engineering standards, best practices, prompt optimization | Standards.md |
| File | Read when |
|---|---|
Standards.md |
writing, optimizing or auditing any prompt: the ideal-state standard, the keep-classes, signal-to-noise, Anthropic and research-backed practice |
References/WritingGreatSkills.md |
the prompt is a skill or intent: invocation load, information hierarchy, completion criteria, pruning |
Templates/ |
composing a prompt from data: Primitives (Briefing, Structure, Gate, Roster, Voice) (evals and judges are not composed here; they run through Assay, LIFEOS/DOCUMENTATION/Assay/AssaySystem.md § One eval system), Data/ presets, and Templates/README.md for the template system |
Setup.md |
first-time setup: the one package the template tools need (handlebars) and a read-only check |
Data & Config
Before executing, check for user customizations at:
<configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Prompting/
configRoot is $CLAUDE_CONFIG_DIR when set, else ~/.claude.
If this directory exists, load and apply any PREFERENCES.md, configurations, or resources found there. These override default behavior. If the directory does not exist, proceed with skill defaults.
First-time setup for the template tools is in Setup.md.
Gotchas
Tools/is the only tool directory. A byte-identical stale copy underTemplates/Tools/was removed on 2026-10-14 (LOSIntegrity cruft sweep); edit and importTools/, whichTools/RenderTemplate.test.tscovers.
Example
Câu hỏi thường gặp
Nó có viết nội dung cuối cùng không?
Không. Đầu ra luôn là một prompt để dùng với tác vụ khác, không phải văn bản hoàn chỉnh.
Vì sao nó giữ rất ít bước?
Nó bỏ các bước mà một mô hình có năng lực sẽ không cần, chỉ giữ quy tắc an toàn, lưu ý đã xác minh, chi tiết công cụ và định dạng đầu ra.
Nó có tạo được nhiều prompt cùng lúc không?
Có. Cùng một mẫu với dữ liệu khác nhau có thể tạo ra các prompt chuyên biệt.
Chi tiết
Mô tả gốc của tác giả
Meta-prompting standard library for generating, optimizing, and composing prompts programmatically via Standards, Handlebars Templates, and Tools; output is always a prompt to use elsewhere, not final content. USE WHEN meta-prompting, template generation, prompt optimization, prompt engineering, write a prompt, create system prompt, Handlebars template. NOT FOR generating final content (use the appropriate domain skill), or any eval: judge prompts, rubrics, scoring, grading or comparing outputs all run through Assay, the one eval system.
repo: danielmiessler/LifeOS
Độ phổ biến
- Sao GitHub
- 20k
- Vị trí xếp hạng
- #10447
- Giấy phép
- MIT
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
LifeOS
20kGiúp agent của bạn thiết lập LifeOS, một hệ thống cá nhân ánh xạ trạng thái hiện tại tới trạng thái lý tưởng qua một cuộc phỏng vấn và một bảng điều khiển.
AnnualReports
20kGiúp agent của bạn tìm và so sánh báo cáo an ninh mạng thường niên từ các nhà cung cấp lớn, như xu hướng vi phạm và ransomware, có nguồn cho mọi số liệu.
ApertureOscillation
20kDạy agent của bạn kiểm tra một câu hỏi thiết kế ở phạm vi hẹp và phạm vi rộng, rồi chỉ ra chỗ hai câu trả lời mâu thuẫn trước khi bạn xây dựng.
Aphorisms
20kCho phép agent của bạn tìm, ghép và theo dõi các câu trích dẫn có ghi tác giả từ một bộ sưu tập được chọn lọc, tránh những câu vừa được dùng trong bản tin.
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ó.