automations
ما الذي تفعله
تشرح هذه المهارة كيفية إنشاء الأتمتات في تطبيق Agent-Native. الأتمتة مجموعة من التعليمات يتبعها الوكيل، وتبدأ بجدول زمني أو حدث أو Webhook أو ضغطة يدوية. وهي مخصصة للأشخاص الذين يريدون أن يعمل الوكيل في المهام الروتينية دون أن يُطلب منه ذلك كل مرة.
متى تستخدمها
- ✓عندما تريد أن يُنفذ الوكيل مهمة وفق جدول زمني، مثل كل صباح.
- ✓عندما تريد أن تبدأ مهمة عند حدوث حدث محدد.
- ✓عندما تريد أن تبدأ خدمة خارجية مهمة عبر Webhook.
رابط المهارة
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/automations/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك إعداد أتمتة ترسل لي ملخصاً بتذاكر الدعم الجديدة كل صباح في أيام العمل؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحفظ الوكيل كل أتمتة كملف Markdown فيه بعض الإعدادات في الأعلى، مثل وقت التشغيل، والتعليمات في الأسفل. ويمكنك تشغيل أي أتمتة يدوياً في أي وقت.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Automations
Rule
Automations are the user-facing umbrella for agent-executed tasks that run on
demand, in response to events or webhooks, or on a cron schedule. Schedule,
Event, Manual, and Webhook are the persisted trigger types. Each
automation is a markdown resource under jobs/ with YAML frontmatter describing
when and how it fires, and a body containing natural-language instructions the
agent follows.
Recurring Jobs is the legacy name and API for scheduled automations.
manage-jobs, jobs/, and /agent#jobs remain stable compatibility surfaces.
Use manage-automations for new personal or organization automations, including
per-automation model overrides and MCP allowlists. Keep manage-jobs for
existing schedule-only integrations and delivery metadata.
The Persisted Trigger Types
| Type | Fires when | Trigger-specific fields |
|---|---|---|
schedule |
Cron expression matches (same as recurring jobs) | schedule (required), timezone |
event |
A matching event is emitted on the event bus | event (required), condition (optional) |
manual |
A user explicitly invokes run-now |
None |
webhook |
A POST reaches its generated webhook endpoint | None |
Event triggers can optionally include a condition -- a natural-language
string evaluated by a model against the event payload before dispatch. If the
condition does not match, the automation is skipped. Manual automations have no
schedule, timezone, event, or condition; they never fire from the
scheduler or event bus and run only through manage-automations
action=run-now. Webhook automations run only when their generated endpoint is
called. The endpoint path contains a secret token; share it only with the
intended webhook provider.
The UI's Email received choice is not a persisted trigger type. It is a
specialized event editor that persists triggerType: event with
event: mail.message.received and represents email filters as the event
condition.
How It Works
- User asks the agent to create an automation (or uses the app's Automations
page in Settings,
/settings/automations; open it withopen-settings-pagepageautomations). - For an event trigger, the agent calls
manage-automationswithaction=list-eventsto discover the exact registered event name and payload. - Agent calls
manage-automationswithaction=defineto write ajobs/<name>.mdresource. - The scheduler acquires due schedule triggers, the event dispatcher acquires
matching event triggers, the webhook route accepts authenticated endpoint
calls, and manual triggers wait for
action=run-now. - Event acquisition enforces owner and organization scope and evaluates any condition against the event payload.
- Schedule, event, webhook, and explicit run-now acquisition converge on the shared background-automation runner, which validates identity, resolves the configured model and MCP allowlist, runs the agent loop, handles continuation and delivery, and records usage.
- Status (
lastRun,lastStatus,lastError) is written back to the resource frontmatter.
Trigger acquisition stays separate by design: the scheduler decides when a cron
expression is due, the event dispatcher matches event names, owners, and
conditions, the webhook route authenticates its endpoint token, and run-now is
the only acquisition path for manual automations. Everything after a trigger is
accepted uses the same execution lifecycle.
Markdown Format
---
enabled: true
triggerType: event
event: calendar.booking.created
condition: "attendee email ends with @example.com"
mode: agentic
domain: calendar
createdBy: user@example.com
runAs: creator
---
Send a Slack message to #sales with the booking details.
Use the web-request tool with ${keys.SLACK_WEBHOOK}.
Frontmatter Fields
| Field | Type | Purpose |
|---|---|---|
schedule |
string |
Cron expression; new scheduled automations default to once per hour (0 * * * *) when omitted |
enabled |
boolean |
Whether the automation is active |
triggerType |
"schedule" | "event" | "manual" | "webhook" |
How the automation fires |
event |
string? |
الأسئلة الشائعة
ما أنواع المشغلات الأربعة؟
الجدول الزمني والحدث واليدوي وWebhook، وهي الأنواع الأربعة التي تذكرها المهارة.
ماذا يفعل شرط الحدث؟
هو فحص بلغة عادية يُجرى على الحدث قبل أن تبدأ الأتمتة.
ما الفرق عن المهام المتكررة؟
المهام المتكررة هي الاسم الأقدم للأتمتات المجدولة، والواجهة القديمة ما زالت تعمل.
التفاصيل
الوصف الأصلي من المؤلف
Manual, event-triggered, webhook-triggered, and schedule-triggered automations with optional event conditions. Use when creating automations, wiring events or webhooks, running one on demand, or understanding triggers.
repo: BuilderIO/agent-native
الشعبية
- نجوم GitHub
- 7.6k
- الترتيب
- #13138
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
design-exploration
7.6kيساعد وكيلك على استكشاف عدة اتجاهات تصميم لواجهة المستخدم جنباً إلى جنب، ثم تختار أنت واحداً، ويحسّن الوكيل التصميم المختار.
visual-edit
7.6kيساعد وكيلك على فتح تطبيق محلي يعمل في محرر مرئي، لتراجع شاشاته الحقيقية وتحررها معاً.
turn-into-app
7.6kيحوّل سير عمل أو جدول بيانات أو مشروعاً إلى تطبيق مرئي مصقول، فيه شاشات مملوءة بالبيانات ووكيل يعمل خلف أدوات التحكم.
visual-plan
7.6kيحوّل خطة نصية عادية إلى خطة مرئية تفاعلية فيها مخططات وخرائط ملفات ومقتطفات كود وأسئلة مفتوحة.
مهارات مشابهة
knowledge-automation
394kيساعد وكيلك على إعداد مهمة متكررة تضيف المحتوى الجديد إلى خزنة Knowledge حسب جدول زمني، ثم يتحقق من أنها تعمل.
knowledge-source-ingest
394kيساعد وكيلك على إبقاء خزنة المعرفة محدّثة بالعناصر الجديدة من قنوات الدردشة أو الخلاصات أو صناديق البريد، دون إعادة إضافة ما لديه.
benchmark
280kيساعد وكيلك على قياس سرعة الشيفرة وأدائها، ويفيد في التأكد من أن الأشياء سريعة وفي إيجاد مشكلات البطء.