跳到正文
Skillpedia
智能体33k · #9116

rote

它能做什么

这个技能指导智能体使用 rote 命令行工具,把一个经过测试的技能编译成确定性的流程。适合那些已经经常运行某个技能、并希望它无人值守自动运行的团队。

适用场景

  • ✓当你已经多次运行某个技能,并希望它作为后台任务自动运行时。
  • ✓当你希望一个已验证的技能在大规模运行时更省钱或更快时。
  • ✓当你需要用固定流程把某个技能加固,以便用于生产环境时。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/workflow-automation/rote/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/workflow-automation/rote/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“这个技能用了几周,效果一直很好。能把它改造成无需 AI 模型参与运行的流程吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体先确认技能所在位置和你想要的运行环境,然后运行 rote 工具来编译该技能,并报告生成的流程结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

rote: compile a skill into a deterministic pipeline

You orchestrate the rote CLI. It runs an LLM compiler agent over a source skill once, and emits a pipeline that runs forever after without an agent loop. Your job is to resolve the inputs, run the CLI, and interpret the output. You never classify nodes or write pipeline.yaml yourself; the CLI's compiler agent does that.

When this applies

Use it on a skill the user has already run many times and wants to run many more, unattended. Exploratory or one-off work should stay an agent loop: flexibility is the point there, and there is nothing proven to compile yet. Say so and stop if that is what you are looking at.

1. Identify the source skill

The source is a directory containing a SKILL.md, optionally with a references/ folder. The user names it, or you infer it from context: a skill just discussed, a path in the conversation, .claude/skills/* or skills/* in the project.

Confirm the resolved absolute path with the user before running. Compilation costs real time and tokens, so never guess and go. If the directory has no SKILL.md, stop and ask.

2. Pick a runtime target

Runtime --runtime Language Choose when
DBOS (default) dbos Python No orchestrator to deploy. SQLite for dev, Postgres for prod
Temporal temporal Python You already operate a Temporal cluster
Plain Python python Python Max legibility, stdlib only. Refuses pipelines with HITL gates
Cloudflare Workflows cloudflare TypeScript Serverless, managed, wrangler deploy-ready
DBOS (TypeScript) dbos-ts TypeScript Zero orchestrator on the TS side. Postgres only
Inngest inngest TypeScript Mounting into an existing Node or Next.js app

If the user has no opinion and no existing infrastructure, use dbos. It is the default and the only Python target with zero standing infrastructure, so you can omit --runtime entirely.

3. Resolve the CLI

The CLI ships on PyPI as rote-cli and its executable is named rote. With uvx that means every invocation is uvx --from 'rote-cli>=0.12.1' rote <args>. Do not run uvx rote-cli ...; uvx looks for an executable named after the package, and the published wheel does not ship one.

uv --version                              # install uv first if missing
uvx --from 'rote-cli>=0.12.1' rote --version        # confirm the CLI resolves

If uv is missing, do not pipe a remote script into a shell. Ask the user to install it through their package manager (brew install uv, pipx install uv, or pip install uv) or to follow the official guide at https://docs.astral.sh/uv/getting-started/installation/ and choose the method they trust.

pip install rote-cli works too if the user prefers a virtualenv.

rote compile runs an LLM agent, so it needs a driver: Claude Code (claude) or Codex (codex) installed and authed, or ANTHROPIC_API_KEY for the in-process api driver. The default claude driver deliberately scrubs ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN from the child environment so the run bills against the user's Claude subscription rather than per-token API charges. Do not "fix" auth by exporting an API key. If the user explicitly wants API billing, pass --agent api.

4. Run the compilation

uvx --from 'rote-cli>=0.12.1' rote compile <skill-dir> --runtime <runtime> --out <out-dir>

Pick an out-dir the user will find, such as ./compiled/<skill-name> next to the source skill, and make sure it does not clobber existing work.

Set expectations before launching. This is not a quick command: a realistic skill takes roughly 13 minutes of wall clock and 30 to 40 agent turns on Sonnet. Run it in the background, tell the user you did, and poll rather than blocking the session.

If the run exits nonzero, check whether <out-dir>/compiled/pipeline.yaml exists anyway. The CLI recovers completed work from transient subprocess failures and says so in its output. Surface stderr to the user either way.

5. Report the result

Read <out-dir>/compiled/pipeline.yaml and <out-dir>/compiled/compile-report.md, then summarize:

  1. Node-kind table. Count nodes per kind and say what each means here:

    Kind Meaning
    pure_function Deterministic code. The LLM is gone
    external_call Direct API call with retry and timeout
    llm_judge Typed LLM signature, kept but bound
常见问题

这是用于一次性任务的吗?

不是。技能说明,探索性工作应继续使用智能体循环,因为这类工作需要灵活性。

支持哪些运行环境?

默认是搭配 Python 的 DBOS,Temporal 也可以作为选项。

智能体是手写流程的吗?

不是。rote 工具的编译智能体会生成流程,技能本身只负责运行并报告结果。

详情

作者的原始描述

Compile a proven agent skill (a SKILL.md plus references) into a deterministic pipeline that runs without an LLM in the loop, then serve it back to Claude as an MCP tool. Use when: rote, compile this skill, turn this skill into a workflow, make this skill deterministic, make this skill cheaper or faster, harden this skill for production, run this skill as a background job.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#9116
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能