mirror of
https://github.com/cloudflare/skills.git
synced 2026-04-25 06:35:50 +03:00
[PR #26] Add codemode skill for @cloudflare/codemode #27
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/skills#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/skills/pull/26
Author: @mksglu
Created: 2/23/2026
Status: 🔄 Open
Base:
main← Head:feat/add-codemode-skill📝 Commits (1)
bf94675Add codemode skill for @cloudflare/codemode📊 Changes
4 files changed (+814 additions, -0 deletions)
View changed files
➕
skills/codemode/SKILL.md(+298 -0)➕
skills/codemode/references/api-reference.md(+237 -0)➕
skills/codemode/references/executor-patterns.md(+166 -0)➕
skills/codemode/references/mcp-integration.md(+113 -0)📄 Description
Summary
Adds a new codemode skill covering
@cloudflare/codemode— the pattern where LLMs write and execute JavaScript to orchestrate multiple tool calls in a single turn, instead of calling tools one at a time.Code Mode reduces token usage by 99%+ for multi-tool workflows by collapsing N individual tool calls into a single code-generation step executed in an isolated V8 sandbox via
DynamicWorkerExecutor.What's included
SKILL.md covers:
streamTextAIChatAgentintegration example@cloudflare/codemodevs@cloudflare/codemode/ai)Reference files provide deep-dives into:
createCodeTool,DynamicWorkerExecutor,Executorinterface,ExecuteResult,ToolDispatcher,generateTypes,sanitizeToolName,ToolDescriptor,normalizeCodeConventions followed
This skill follows all conventions established by existing skills in this repo:
name,description, and trigger phrasesreferences/subdirectorySources
Written based on:
@cloudflare/codemodesource code (v0.1.0)agents-sdk/references/codemode.mdreference in this repo🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.