grandamenium/cortextos/tool-use-patterns

Claude Code and agent skill by grandamenium/cortextos

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Patterns for Claude tool use including sequential tools, parallel execution, error handling, and agentic loops.

Install

npx vskill@latest install grandamenium/cortextos/tool-use-patterns

SKILL.md

The same SKILL.md was published earlier as grandamenium/cortextos/tool-use-patterns.

Tool Use Patterns

Advanced patterns for Claude's tool use capability.

Agentic Loop

python
while True:
response = client.messages.create(
model="claude-sonnet-4-20250514",
tools=tools,
messages=messages
)
if response.stop_reason == "end_turn":
break
for block in response.content:
if block.type == "tool_use":
result = execute_tool(block.name, block.input)
messages.append({"role": "assistant", "content": response.content})
messages.append({"role": "user", "content": [
{"type": "tool_result", "tool_use_id": block.id, "content": str(result)}
]})

Error Handling

python
{"type": "tool_result", "tool_use_id": id, "is_error": true, "content": "File not found"}

Parallel Tool Calls

Claude can request multiple tools in one response. Execute them concurrently and return all results.

Best Practices

  • Keep tool descriptions concise but complete
  • Include parameter constraints in the schema
  • Return structured data from tools when possible
  • Use is_error for graceful failure handling

Security

  • Security scanPassed, 93 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
78
Repository forks
96
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Jul 2026, 4 months ago.

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/grandamenium/cortextos/tool-use-patterns/badge)](https://verified-skill.com/skills/grandamenium/cortextos/tool-use-patterns)

Something wrong with this skill or its page? Tell us.