用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/UitbreidenOS/UitKit --skill ptc命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Guidelines and instructions for Agent execution state rollback rules
Guidelines and instructions for Agent execution step counters limits
Guidelines and instructions for Agent execution timeout limits setups
基于 SOC 职业分类
| name | ptc |
| description | Implement prompt-to-code workflows for rapid prototyping and code generation |
User wants to reduce API token usage for tool-heavy workflows, mentions programmatic tool calling, or has a pattern where the same tool is called more than 3 times in a single inference pass.
Standard tool use: Claude calls one tool → result returned → Claude calls the next tool. Each round trip is one API inference pass.
With PTC: Claude writes Python orchestration code that calls multiple tools in a loop, executes in a sandbox, and only the final stdout enters the context. Three tools = 1 inference pass instead of 3.
Measured token reduction: ~37% fewer tokens for multi-tool workflows.
Add code_execution_20250825 as an allowed caller in your tool definition:
tools = [
{
"name": "read_file",
"description": "Read a file from the filesystem",
"input_schema": {
"type": "object",
"properties": {
"path": {"type": "string", "description": "File path to read"},
},
"required": ["path"],
},
"allowed_callers": ["code_execution_20250825"], # Enable PTC for this tool
}
]
When PTC is enabled, Claude can choose to write orchestration code instead of calling the tool directly.
Claude selects PTC when it detects a pattern that benefits from batching:
If Claude is not using PTC for a pattern that clearly benefits from it, add to the system prompt:
When you need to call the same tool multiple times with different inputs, write Python orchestration code using code_execution_20250825 to batch the calls rather than calling the tool individually each time.
Tools used with PTC should:
For maximum token efficiency: cache the tool definitions (which may be large) with cache_control, and enable PTC to reduce the number of round trips:
tools = [
# ... your tools ...
{
"name": "last_tool",
"description": "...",
"input_schema": {...},
"allowed_callers": ["code_execution_20250825"],
"cache_control": {"type": "ephemeral"}, # Cache all tools up to here
}
]
Extracting function signatures from 20 source files without PTC: 20 read_file tool calls, 20 round trips, ~40,000 tokens of tool call + result overhead.
With PTC enabled on read_file:
Claude writes (internally, in sandbox):
files = [
"src/api/users.ts", "src/api/orders.ts", "src/api/products.ts",
# ... 17 more
]
signatures = []
for f in files:
content = read_file(path=f)
# Extract export function lines
sigs = [line.strip() for line in content.split("\n") if line.startswith("export function")]
signatures.extend(sigs)
print("\n".join(signatures))
One inference pass. Only the extracted signatures (not full file contents) enter context. Token reduction: 37% on this workflow.