llm-app-patterns
できること
このガイドは、チャットボットやバーチャルアシスタントなど、人工知能(AI)を使うアプリケーションの計画と構築を支援します。AIを他のツールやデータに接続する方法を示し、すべてが安全かつ正しく動くようにします。
使う場面
- ✓AIアプリケーションの動作を計画するとき。
- ✓AIに外部の情報を使って応答させたいとき。
- ✓電卓やウェブ検索など、ツールを使えるAIアシスタントを作るとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/llm-app-patterns/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“AIアプリケーションの各部分をどのように整理すれば、外部データやツールを安全に使えますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIアプリケーションのさまざまな部分をつなぐための道筋と例を示します。AIが使用できるデータやツールを定義し、安全性と正確性を確保するための動作を決めます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
🤖 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.
よくある質問
RAGとは何ですか?
RAG(Retrieval-Augmented Generation)は、AIに外部の情報(ドキュメントやデータベースなど)を使わせて、より正確で最新の回答を出せるようにする技術です。
「ツールを持つエージェント」とは何ですか?
計算やウェブ検索など、外部のツールを使って、より複雑な作業を完了できるAIシステムのことです。
なぜセキュリティと境界の設定を気にする必要があるのですか?
AIがアクセスできること、実行できることの明確な境界を設定することが大切です。これにより、不適切な情報へのアクセスや望ましくない動作を防ぎ、データとツールを安全に使えるようにします。
詳細
作者による元の説明
Architecture and integration sketches for LLM applications, with explicit retrieval, tool, privacy and verification boundaries.
人気
- GitHubのスター
- 48k
- ランキング
- #5076
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。