rote
ما الذي تفعله
تُرشد هذه المهارة وكيل الذكاء الاصطناعي إلى تحويل مهارة مختبرة إلى خط أنابيب حتمي باستخدام أداة سطر الأوامر rote. وهي موجهة إلى الفرق التي تشغّل المهارة كثيرًا وتريد أن تعمل بلا إشراف.
متى تستخدمها
- ✓عندما تكون قد شغّلت مهارة مرات كثيرة وتريد أن تعمل تلقائيًا كمهمة في الخلفية.
- ✓عندما تريد لمهارة مثبتة أن تكون أرخص أو أسرع عند التشغيل على نطاق واسع.
- ✓عندما تحتاج إلى تقوية مهارة للاستخدام الإنتاجي بعملية ثابتة.
رابط المهارة
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/workflow-automation/rote/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هذه المهارة نجحت لأسابيع. هل يمكنك تحويلها إلى خط أنابيب يعمل دون نموذج ذكاء اصطناعي في الحلقة؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يتحقق الوكيل من موقع المهارة والبيئة التشغيلية التي تريدها، ويشغّل أداة 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:
Node-kind table. Count nodes per kind and say what each means here:
Kind Meaning pure_functionDeterministic code. The LLM is gone external_callDirect API call with retry and timeout llm_judgeTyped LLM signature, kept but bound
الأسئلة الشائعة
هل هي للمهام لمرة واحدة؟
لا. تقول المهارة إن العمل الاستكشافي يجب أن يبقى حلقة وكيل لأن المرونة مهمة فيه.
ما بيئات التشغيل المدعومة؟
الافتراضية هي DBOS مع Python، وتُذكر 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.
الشعبية
- نجوم GitHub
- 33k
- الترتيب
- #9116
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
owasp-security
33kتعلّم وكيلك إرشادات OWASP الأمنية لتطبيقات الويب وواجهات API والموبايل والحاويات ووكلاء الذكاء الاصطناعي، ليكشف نقاط الضعف الشائعة ويقترح الإصلاحات.
agent-management
33kتتيح لوكيلك إنشاء وكلاء ذكاء اصطناعي وسردهم وإسباتهم وإيقاظهم وإعادة تسميتهم وحذفهم عبر أداة سطر الأوامر AI Maestro، مع إدارة دورة حياة كل وكيل.
agent-messaging
33kتتيح لوكيلك إرسال الرسائل الموقعة بين وكلاء الذكاء الاصطناعي واستقبالها والرد عليها، باستخدام بروتوكول المراسلة بين الوكلاء، في الغالب على جهازك.
docs-search
33kتتيح لوكيلك البحث في توثيق الشيفرة المُنشأ تلقائياً عن توقيعات الدوال وتعريفات الكلاسات والتعليقات، فيتحقق من الواجهة البرمجية الفعلية قبل تعديل الشيفرة.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.