decocms/studio/tool-scripting
Claude Code and agent skill by decocms/studio
- community
Checking that the SKILL.md file is still in the repository.
Script against the org's MCP tools from inside the sandbox — discover schemas under .deco/tools/, call one tool from the shell with `typegen call`, or batch many calls in a script. Use whenever a task needs repeated or bulk tool calls (same tool many times, one call per file/row/item) instead of one-at-a-time agent tool calls.
Install
npx vskill@latest install decocms/studio/tool-scriptingSKILL.md
tool-scripting — call org tools from scripts
The workspace carries a materialized catalog of the org's tools:
.deco/tools/<TOOL>.json— one JSON Schema per tool:
{ name, description, inputSchema, outputSchema }
.deco/tools/.endpoint.json— the run's pre-authenticated MCP endpoint.
The typegen CLI and client discover it automatically (walking up from cwd) — no flags, keys, or env needed. The daemon refreshes it; a reconnect picks up new credentials.
Discover tools (cheap)
Browse the catalog from disk instead of loading every schema into context:
or typegen tools (list names + descriptions) / typegen tools SEND_EMAIL (one tool's full schema).
One-off call from the shell
Prints the tool's structured output as JSON; non-zero exit and a message on stderr on failure. If typegen is not on PATH, use bunx @decocms/typegen call ....
Bulk calls — write a script
For N calls (a tool per row/file/item), never loop through your own tool-calling — write a script, run it, read back the summary. Results belong in a file, not in your context.
Set up a scratch project so the user's repo stays untouched. Cloud sandboxes carry the typegen package built from the same Studio revision; Desktop falls back to the published package. Then run from the repo root (endpoint discovery walks up from cwd):
Determinism rules:
- Sequential by default. Only add bounded concurrency (a small worker pool)
when the tool is safe to call in parallel.
- Every call's outcome goes to
results.jsonl— partial progress survives a
crash, and failures are greppable afterwards.
- On errors that look like expired credentials,
await client.close()and
retry the call once — the reconnect re-reads the endpoint file, which the daemon refreshes.
- Report the summary line (plus failures, if any) back to the user — not the
N raw results.
Typed client (optional)
generates a client.ts with one typed method per tool from the same endpoint, for larger scripts where input/output types help.
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 repositoryCheckingpackages/sandbox/image/skills/tool-scripting/SKILL.md
Popularity
- Repository stars
- 409
- Repository forks
- 56
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Oct 2026, 10 days 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
[](https://verified-skill.com/skills/decocms/studio/tool-scripting)