fqih/.mycc-setup/agent-design
Claude Code and agent skill by fqih/.mycc-setup
- community
Checking that the SKILL.md file is still in the repository.
Use when designing AI agents — tool use patterns, ReAct/plan-and-execute loops, memory, multi-agent orchestration, error recovery, observability. Reference LangGraph, CrewAI, Anthropic tool use. Trigger on "agent", "tool use", "react", "autonomous", "multi-agent", "/agent-design".
Install
npx vskill@latest install fqih/.mycc-setup/agent-designSKILL.md
The same SKILL.md was published earlier as fqih/.mycc-setup/agent-design.
agent-design
Pattern untuk AI agent yang bisa pakai tools, plan, dan recover dari error.
Agent arsitektur
Pola dasar
1. ReAct (Reason + Act) — paling umum
2. Plan-and-Execute
Bagus untuk task yang clear goal-nya tapi path-nya tidak pasti. Lebih token-efficient dari ReAct murni.
3. Multi-agent (supervisor + workers)
Pattern:
- Supervisor pattern: 1 supervisor decide worker mana yang handle task apa
- Hierarchical: supervisor → sub-supervisor → workers
- Debate: 2+ agents disagree, supervisor adjudicate
Tool design
Tool design rules:
- ✅ Specific description (kalau buat apa, kapan pakai)
- ✅ Parameter schema detail (description per field)
- ✅ Enum untuk nilai terbatas
- ❌ Jangan terlalu banyak tools (>20 = LLM bingung)
- ❌ Jangan tool yang overlap (model tidak pilih)
- ❌ Jangan vague description ("do something useful")
Memory patterns
Short-term (in-conversation)
Long-term (vector store)
Episodic (kalau perlu recall episode spesifik)
Working memory (untuk planning)
Error recovery
| Failure | Recovery | |
|---|---|---|
| Tool returns error | Retry 1-2x, kalau masih fail → replan atau tell user | |
| Invalid tool input | Validator sebelum execute, retry dengan error msg | |
| Loop (same tool, same args) | Detect via state hash, force break ke user | |
| Max iter reached | Return partial result + flag "incomplete" | |
| Tool timeout | Async with timeout, kill + report | |
| Hallucinated tool name | Validate tool name vs whitelist, reject |
Loop detection
Observability
Log per iter:
- Timestamp
- Current state (messages length, scratchpad)
- Decision (next action atau final)
- Tool name + args
- Tool result (truncated)
- Latency per step
- Token usage cumulative
Log ke MLflow (lihat ds-workflow) atau LangSmith / Helicone.
Human-in-the-loop
Critical actions: send email, deploy, delete data, payment.
Cost & latency budget
| Agent type | Token cost | Latency | |
|---|---|---|---|
| Single LLM call | 1x | 1-3s | |
| ReAct (5 iter) | ~5-10x | 5-30s | |
| Plan+execute (3 steps) | ~3-5x | 3-15s | |
| Multi-agent (4 agents) | ~4-8x | 10-60s | |
| Deep research (10+ sources) | 20-50x | 1-5min |
Mitigation:
- Cache tool results (Redis)
- Smaller model untuk simple steps, big model untuk planning
- Parallel tool execution kalau independent
- Streaming untuk UX (lihat skill
llm-engineering)
Framework pilihan
| Framework | When to use | |
|---|---|---|
| Anthropic SDK raw + manual loop | Custom, full control | |
| LangGraph | Stateful, complex flows, persistence | |
| CrewAI | Multi-agent quick start | |
| AutoGen | Microsoft stack, conversational | |
| LlamaIndex | RAG-heavy agents | |
| OpenAI Assistants API | OpenAI-only, hosted state | |
| smolagents / pydantic-ai | Lightweight, Pythonic |
Default: Anthropic SDK manual loop untuk custom. LangGraph kalau perlu state machine. CrewAI untuk quick multi-agent prototype.
Anti-patterns
❌ Agent untuk task yang bisa one-shot prompt: extra cost, latency, fragility ❌ Agent tanpa observability: tidak bisa debug ❌ Agent yang loop tanpa detection: hang forever ❌ Tool tanpa error handling: 1 tool fail = agent crash ❌ Tidak ada fallback kalau max_iter: user stuck ❌ Multi-agent untuk simple task: overkill, latencies stack ❌ State di global variable: race condition, hard to test ❌ Agent kasih user kode langsung tanpa test: bug di code tanpa verifikasi
Invokation
Auto-trigger saat:
- Edit file yang import anthropic/openai + tool definitions
- User sebut "agent", "autonomous", "tool use", "react"
- Code pattern: while loop + tool execution + LLM decision
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-design/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fqih/.mycc-setup/agent-design)