360 Secure SkillHub
360 安全技能中心

Ucts Guide

该 Skill 接收用户的编码任务描述,按复杂度、领域、范围、风险四个维度分类,结合风险覆盖规则给出 UCTS 压缩与优化工具组合、模型选择与节省比例估计,并生成用于 Claude Code 会话的调度指令文本。仅输出分析与建议,不执行任务或代码。

muthukumaran-k-1
muthukumaran-k-1
热度 32.07
最近更新 2026-05-11 17:46:09
分类:开发依赖:内部调用大模型应用场景:工作流 / 任务管理 / 代码审查 / 调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ucts-guide
Metadata
name
ucts-guide
description
Smart task analysis with optimal tool prescription. Analyze any coding task by complexity, domain, scope, and risk — then prescribe the best combination of UCTS optimization tools. Works directly in OpenClaw without a Claude Code session.
tags
["ucts","token-optimization","planning","task-analysis"]

UCTS Smart Guide

Analyze the user's task and prescribe the optimal Claude Code session configuration.

When to use

When the user describes any coding task — feature, bug fix, refactor, architecture, etc. — and you need to decide HOW to approach it optimally.

Process

1. Classify the task

Dimension Options
Complexity trivial, simple, moderate, complex, massive
Domain code, debug, refactor, feature, architecture, devops, docs, security, performance, migration
Scope single-file, multi-file, module, cross-module, full-repo, multi-repo
Risk none, low, medium, high, critical

Signals to look for:

  • "todo list", "script", "hello world" → trivial
  • "fix bug", "add test" → simple
  • "authentication", "OAuth", "API endpoint" → moderate
  • "microservice", "payment", "distributed" → complex
  • "redesign", "rewrite", "migration" → massive
  • "payment", "stripe", "encryption" → critical risk
  • "security", "OWASP", "vulnerability" → high risk

2. Prescribe the combo

Complexity Caveman Tools Model
trivial ultra Cache + Monitor haiku-only
simple full + Pruner, Fast Transform haiku-default
moderate full + LLMLingua, Semantic Cache, SWE-Pruner, RouteLLM, Repo Map auto-route
complex lite + AgentDiet, Hierarchical Memory, Swarm, /office-hours auto-route
massive off/lite + Observability, SPARC, all of the above sonnet/opus

Risk overrides:

  • critical risk → caveman off (no compression on safety-critical work)
  • high risk → add /careful (destructive command blocking)
  • any security domain → add /cso after implementation

3. Generate the dispatch instruction

Format for spawning a Claude Code session:

Load UCTS. Run /ucts guide <original task description>

For specific known patterns:

  • Security audit → Load UCTS. Run /cso
  • Code review → Load UCTS. Run /review
  • QA test → Load UCTS. Run /qa <url>
  • Feature → Load UCTS. Run /ucts guide <desc>, approve, implement, /ship
  • Plan only → Load UCTS. Run /ucts guide <desc>, /office-hours, /autoplan. Save plan, don't implement.

4. Show the user

📋 Task: [description]
📊 Classification: [complexity] [domain] | [scope] | risk: [risk]
🎯 Combo: caveman:[level] + [Tool1] + [Tool2] + ...
💰 Estimated savings: [X]%

Spawning Claude Code with: "Load UCTS. Run /ucts guide [task]"