agent-prompt-quality-bar
Skill này làm gì
Skill này là danh sách kiểm tra chất lượng để viết chỉ dẫn điều khiển một agent AI. Dành cho người xây dựng agent và muốn agent hoàn thành các công việc thật.
Khi nào nên dùng
- ✓Khi bạn viết chỉ dẫn cho một agent AI mới và muốn kiểm tra xem đã đủ chưa.
- ✓Khi bạn chưa chắc mẫu agent nào phù hợp với yêu cầu và cần một hướng dẫn chung.
- ✓Khi bạn muốn rà soát lần cuối chỉ dẫn của một agent trước khi dùng.
Liên kết skill
https://github.com/mastra-ai/mastra/blob/main/packages/editor/src/ee/workspace/skills/agent-prompt-quality-bar/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
“Kiểm tra các chỉ dẫn này cho agent AI của tôi và cho tôi biết còn thiếu gì trước khi tôi dùng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đưa cho agent một danh sách các phần bắt buộc và các lỗi thường gặp để đối chiếu với chỉ dẫ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.
Universal Agent-Prompt Quality Bar
This is the builder's compile check. If no archetype skill matches the user's request, OR if you want a final review pass after picking an archetype, follow these rules to write a great agent system prompt.
A produced agent is good only when it can finish a real run, not when it merely sounds capable.
Required run contract
Before writing the produced system prompt, instantiate this contract for the user's request:
- Trigger / input — what starts the run: a user message, schedule, webhook, file, spreadsheet row, support ticket, document, or event.
- Owned outcome — the one concrete result the agent is responsible for finishing.
- Available capabilities — only the tools, data sources, workflows, agents, or stored skills actually attached or available.
- Missing-capability fallback — what the agent must do when a required integration, credential, workspace, permission, source, or input is absent.
- Done criteria — how the agent proves the job is complete, including tool confirmation, read-back, tests, citations, delivery receipt, or an explicit not-run reason.
- Final response format — the exact receipt, report, draft, diff summary, confirmation, or escalation note the user receives.
Non-negotiable sections
Every produced agent system prompt MUST contain these sections. If any is missing, the agent will underperform.
1. Role and outcome
- One sentence: who the agent is and the single outcome it owns.
- Bad: "You are a helpful AI assistant."
- Good: "You are Acme's Tier-1 Email Triager. You reply to inbound billing and account tickets, or escalate cases that need a human."
2. Trigger and input
- Name what starts a run and what data the agent expects.
- Bad: implicit trigger.
- Good: "A run starts when the user provides a support ticket or a scheduled inbox workflow passes unread tickets to you."
3. Decision rules
- 3–6 bullets stating the defaults the agent uses when the request is ambiguous.
- Replace broad "ask the user" language with explicit choices unless action is impossible or unsafe.
- Bad: "If unsure, ask the user."
- Good: "If the customer didn't specify a region, default to the account's billing country and state that assumption once."
4. Capability awareness
- Describe capabilities only if they are attached or available.
- Phrase them in outcome terms, not internal ids.
- Bad: "Use
sheetsToolandemailWorkflow." - Good: "You can read and update the connected leads sheet, and you can draft follow-up emails."
5. Missing-capability fallback
- Include explicit behavior for missing integrations, credentials, workspace, permissions, or data.
- Bad: agent silently invents success.
- Good: "If spreadsheet access is missing, stop and say: 'I need access to the leads sheet before I can update rows.'"
6. Communication style and final response format
- Tone, length, structure, and exact output shape.
- Bad: "Be friendly and helpful."
- Good: "Return a receipt with: action taken, affected records, status, verification, and next step if any."
7. Refusals and escalations
- What the agent will not do, and what it does instead.
- Always include out-of-scope and missing-capability refusals.
- For real user data or external systems, include destructive-action and privacy/security boundaries.
8. Completion criteria
- An explicit numbered list of conditions that MUST all be true before the agent stops.
- This is the single most important section. It is the #1 reason agents stop mid-task or wander.
- Good:
Completion criteria — you are NOT done until:
- The action was attempted, not merely planned.
- The result was verified by read-back, status code, test output, citation, or tool confirmation.
- Failures are reported with the specific item and reason.
- The final response follows the required format. Stop only when all four are true.
9. Worked example
- Include one short input → behavior → final output example.
- The example must demonstrate a complete run, including verification or a clean fallback.
- Do not leave placeholder names or vague "then respond" endings.
Mandatory final audit rubric
Before calling the tool that writes the produced system prompt, verify every item below is true:
- Single concrete outcome: the role owns one job, not a vague domain.
- Named trigger/input: the prompt says exactly what starts a run.
- **Capabilities are a
Câu hỏi thường gặp
Một chỉ dẫn agent đầy đủ gồm những gì?
Nó nêu tên điều kích hoạt, kết quả, các công cụ có sẵn, phương án dự phòng khi thiếu thứ gì đó, tiêu chí hoàn thành và định dạng câu trả lời cuối.
Có chỉ dành cho một loại agent không?
Không. Nó áp dụng cho mọi agent, và có thể dùng cùng các mẫu khác.
Nó có viết chỉ dẫn giúp tôi không?
Nó giúp xây dựng và kiểm tra chỉ dẫn, để agent bạn tạo ra có thể hoàn thành một lần chạy thật.
Chi tiết
Mô tả gốc của tác giả
Universal quality bar and final audit rubric for any agent system prompt. Activate this whenever you are unsure which archetype skill applies, or as a final review pass before writing the system prompt. It defines the required run contract, completion criteria, fallback paths, response format, and anti-patterns every produced agent prompt must satisfy.
repo: mastra-ai/mastra
Độ phổ biến
- Sao GitHub
- 29k
- Vị trí xếp hạng
- #9372
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
debugging-difficult-bugs
29kGiúp agent của bạn gỡ một lỗi khó bằng cách ghi nhật ký những gì chương trình thật sự làm lúc chạy, thay vì đoán chỉ từ các bài kiểm thử.
mastra-frontend
29kGiúp agent của bạn xây dựng màn hình ứng dụng bằng hệ thống thiết kế playground của Mastra, kết hợp các thành phần sẵn có thay vì tạo kiểu từ đầu.
pr-explainer
29kGiúp agent của bạn biến một pull request thành trang HTML độc lập, giải thích thay đổi cho người review một cách rõ ràng.
pr-splitter
29kGiúp agent của bạn chia một pull request lớn, lộn xộn thành nhiều pull request nhỏ dễ review, đồng thời giữ an toàn cho công việc gốc.
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ó.