llm-app-patterns
Skill này làm gì
Hướng dẫn này giúp bạn lên kế hoạch và xây dựng các ứng dụng dùng trí tuệ nhân tạo (AI), như chatbot hoặc trợ lý ảo. Nó chỉ cách kết nối AI với các công cụ và dữ liệu khác, đảm bảo mọi thứ hoạt động an toàn và đúng đắn.
Khi nào nên dùng
- ✓Khi bạn lên kế hoạch cách ứng dụng AI của mình sẽ hoạt động.
- ✓Khi bạn muốn AI dùng thông tin bên ngoài để trả lời.
- ✓Khi bạn xây dựng trợ lý AI có thể dùng công cụ (như máy tính hoặc tìm kiếm web).
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/llm-app-patterns/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
“Làm sao để sắp xếp các phần của ứng dụng AI để nó dùng dữ liệu và công cụ bên ngoài một cách an toàn?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Hướng dẫn cung cấp lộ trình và ví dụ để kết nối các phần khác nhau của ứng dụng AI. Bạn xác định dữ liệu và công cụ AI được dùng, cùng cách nó hoạt động để đảm bảo an toàn và chính xác.
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.
🤖 LLM Application Patterns
Architecture and integration sketches for LLM applications, with explicit retrieval, tool, privacy and verification boundaries.
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use This Skill
Use this skill when:
- Designing LLM-powered applications
- Implementing RAG (Retrieval-Augmented Generation)
- Building AI agents with tools
- Setting up LLMOps monitoring
- Choosing between agent architectures
Inputs, worked example and verification
Record provider/SDK versions, authorized data and tools, request/response schemas, latency/cost budgets and the expected task outcome. All code above is an integration sketch: llm, database, parser and provider-response adapters are project-owned and must be implemented explicitly. Never execute model-provided Python, expressions or fuzzy tool names; dispatch only exact registered tools after schema and authorization checks. Enforce per-call deadlines as well as loop limits.
Example: a planner first queues steps A and B, then after A replaces the remaining work with C. The executor must run A then C, never stale B. A parser step must apply the parser to the actual prior output. Two tenants with the same prompt must produce different cache keys, and cache reads/writes require an explicit reuse policy. These are concrete regression assertions; successful mocks still do not prove live provider behavior.
The limiter sketch is single-threaded and process-local. A distributed deployment needs a shared atomic limit and deadlines. Retry only retry-safe operations, honoring provider retry guidance; a timeout after a side effect is not evidence that nothing happened. See Tenacity retry predicates.
Limitations
- A retrieved source list does not prove each answer claim is supported; verify claim-to-source evidence and abstention behavior.
- Prompt text and JSON-shaped output are not authorization boundaries. Enforce permissions in the application.
- Provider failover can change output quality, tool schemas, cost and data residency; only use pre-approved compatible fallbacks.
- Caching must respect tenant access, data/prompt revisions and deletion policy; temperature zero does not make output deterministic.
- Model/SDK examples are not a complete service, benchmark or production-readiness certificate.
Câu hỏi thường gặp
RAG là gì?
RAG (Retrieval-Augmented Generation) là kỹ thuật giúp AI dùng thông tin bên ngoài (như tài liệu hoặc cơ sở dữ liệu) để đưa ra câu trả lời chính xác và cập nhật hơn.
'Agent có công cụ' là gì?
Đây là các hệ thống AI có thể dùng công cụ bên ngoài (như tính toán, tìm kiếm internet, v.v.) để hoàn thành các tác vụ phức tạp hơn.
Vì sao tôi cần lo về bảo mật và ranh giới?
Điều quan trọng là đặt ranh giới rõ ràng cho những gì AI được truy cập và làm. Điều này ngăn nó truy cập thông tin không phù hợp hoặc thực hiện hành động không mong muốn, giúp dùng dữ liệu và công cụ an toàn.
Chi tiết
Mô tả gốc của tác giả
Architecture and integration sketches for LLM applications, with explicit retrieval, tool, privacy and verification boundaries.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5076
- 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ự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.