スキル一覧に戻る
pluginagentmarketplace

llm-integration

by pluginagentmarketplace

AI Agents Plugin Development

1🍴 0📅 2026年1月5日
GitHubで見るManusで実行

SKILL.md


name: llm-integration description: Integrate LLMs into applications - APIs, prompting, fine-tuning, and context management sasmp_version: "1.3.0" bonded_agent: 02-llm-integration bond_type: PRIMARY_BOND version: "2.0.0"

LLM Integration

Integrate Large Language Models with production-grade reliability.

When to Use This Skill

Invoke this skill when:

  • Connecting to Claude, OpenAI, or other LLM APIs
  • Designing effective prompts and system messages
  • Optimizing token usage and costs
  • Implementing streaming responses

Parameter Schema

ParameterTypeRequiredDescriptionDefault
providerenumYesanthropic, openai, google, local-
taskstringYesIntegration goal-
streamingboolNoEnable streamingtrue
max_tokensintNoResponse token limit4096

Quick Start

# Anthropic Claude
from anthropic import Anthropic

client = Anthropic()
response = client.messages.create(
    model="claude-sonnet-4-20250514",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello!"}]
)

# OpenAI
from openai import OpenAI

client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4-turbo",
    messages=[{"role": "user", "content": "Hello!"}]
)

Prompt Templates

System Prompt

SYSTEM = """You are {role}, an expert in {domain}.
Your task: {task}
Constraints: {constraints}
Output format: {format}"""

Chain-of-Thought

COT = """Think step by step:
1. Understand the problem
2. Break it down
3. Solve each part
4. Combine results"""

Cost Optimization

ModelInput $/1MOutput $/1MBest For
Claude Haiku$0.25$1.25High volume
Claude Sonnet$3$15Complex tasks
Claude Opus$15$75Most demanding

Troubleshooting

IssueSolution
429 Rate LimitedExponential backoff
Context overflowTruncate/summarize
Poor output qualityAdd examples, lower temp
High costsUse cheaper model, cache

Best Practices

  • Always implement retry with backoff
  • Use streaming for better UX
  • Cache repeated queries
  • Monitor token usage
  • ai-agent-basics - Agent architecture
  • rag-systems - Retrieval augmentation
  • tool-calling - Function calling

References

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です