شعار Schedule Add

Schedule Add

مؤسسة
onebrain-ai
schedule-add

Interactive wizard to add a scheduled OneBrain skill. Walks user through skill selection, frequency, time, and writes to onebrain.yml + invokes onebrain schedule register.

نظرة عامة

الناشرonebrain-ai
المستودعonebrain
اسم المهارةschedule-add
النجوم
31
التفريعات
3
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها onebrain-ai على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Schedule Add في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-add
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/onebrain-ai/onebrain.git /tmp/onebrain
mkdir -p .claude/skills
cp -r /tmp/onebrain/.claude/plugins/onebrain/skills/schedule-add .claude/skills/schedule-add
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Schedule Add في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Schedule Add تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Schedule Add بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

/schedule-add — Interactive scheduler wizard

Purpose

For users who don't want to hand-edit onebrain.yml or learn cron syntax. Walks through:

  1. Which skill to schedule
  2. How often (Daily/Weekly/Monthly/Custom)
  3. What time
  4. Confirms cron preview
  5. Writes to onebrain.yml + runs onebrain schedule register

Skill flow

Step 0: First-run preset detection (skip if schedule already has entries)

  1. Read onebrain.yml. Check if the schedule: key exists AND its value is a non-empty list.

    • If schedule: is missing, null, or [] → continue with this step (preset selector).
    • If schedule: has one or more entries → skip Step 0 entirely; go straight to Step 1.
  2. Read the canonical preset tier table from .claude/plugins/onebrain/skills/_shared/schedule-presets.md. The four tiers are defined there — never duplicate them inline in this skill file.

  3. Show preset selection via AskUserQuestion:

    • Tier 1 — Minimal (1 entry: /daily 09:00 every day)
    • Tier 2 — Essentials (Recommended) (3 entries: /daily, /weekly Friday, /recap Sunday)
    • Tier 3 — Maintenance Plus (6 entries: Essentials + /doctor monthly + /tasks daily + onebrain search reindex Sunday command-mode entry)
    • Tier 4 — Custom (skip presets, go to manual wizard)
  4. Apply the chosen tier:

    • Tier 1, 2, or 3: atomically write the preset entries (verbatim from _shared/schedule-presets.md) to onebrain.yml schedule: block (load → mutate → write entire file; use a tmp file + rename). Then run onebrain schedule register. Confirm: ✓ Installed Tier N preset (M entries).
    • Tier 4 (Custom): fall through to Step 1 (the existing skill picker wizard).
  5. On Tier 1/2/3 success → the skill exits here. The user has scheduled entries. Subsequent invocations of /schedule-add will see schedule: is non-empty and skip Step 0, falling straight into the manual wizard for adding additional entries.

Edge cases
  • onebrain.yml missing entirely → wizard creates it with the preset entries as the only content of a new schedule: block.
  • onebrain.yml has schedule: as a comment or YAML null → treat as empty; proceed with preset selector.
  • Atomic write failure → rollback (do not leave partial state); report the YAML error and exit.

Step 1: Pick skill

List all schedulable skills by reading each SKILL.md frontmatter under .claude/plugins/onebrain/skills/. Filter for entries where schedulable: true OR schedulable_with_args: true.

Show via AskUserQuestion:

  • question: "Which skill would you like to schedule?"
  • header: "Schedule a Skill"
  • multiSelect: false
  • options (two groups):
    • Skills with schedulable: true (no args required): e.g. /daily, /weekly, /recap, /doctor, /tasks, /moc
    • Skills with schedulable_with_args: true (args required — wizard will prompt): e.g. /distill, /research, /summarize, /search

Store: chosen_skill (the slash-command name, e.g. /daily).

Step 1b: Pick harness

Ask which harness should execute the skill: Claude (default/backward compatible), Gemini, or Codex. Store chosen_harness. Codex entries still keep skill: /daily in YAML; only the runtime prompt changes to $onebrain:daily.

Step 2: Collect args (if needed)

If chosen_skill has schedulable_with_args: true, prompt for required arguments.

Ask via plain conversational text (one question per arg):

What argument should be passed to {chosen_skill} when it runs? For example, for /distill you might enter a topic name like "machine learning".

Store: skill_args.

Step 3: Pick frequency

Show via AskUserQuestion:

  • question: "How often should {chosen_skill} run?"
  • header: "Frequency"
  • multiSelect: false
  • options:
    • label: "Daily", description: "Every day"
    • label: "Weekly", description: "Pick a day of the week"
    • label: "Monthly", description: "Pick a date of the month"
    • label: "Custom", description: "Enter a cron expression directly"

If Weekly: ask which day via AskUserQuestion (Mon/Tue/Wed/Thu/Fri/Sat/Sun). If Monthly: ask which date (1-31) via plain text. If Custom: ask for a raw cron string via plain text and validate format (5 fields: minute hour day month weekday).

Store: frequency, frequency_detail (day of week, date, or raw cron).

Step 4: Pick time

(Skip this step if Custom frequency — user already provided full cron.)

Show via AskUserQuestion:

  • question: "What time should it run?"
  • header: "Time"
  • multiSelect: false
  • options:
    • label: "Morning — 9:00", description: "9:00 AM"
    • label: "Midday — 12:00", description: "12:00 PM"
    • label: "Evening — 18:00", description: "6:00 PM"
    • label: "Night — 22:00", description: "10:00 PM"
    • label: "Custom", description: "Enter HH:MM"

If Custom: ask for time in HH:MM format via plain text and validate (00-23 : 00-59).

Store: run_hour, run_minute.

Step 5: Generate cron expression

Construct the cron string from frequency + time:

  • Daily: {minute} {hour} * * *
  • Weekly (e.g. Friday): {minute} {hour} * * 5 (Mon=1 ... Sun=0 or 7)
  • Monthly (e.g. 15th): {minute} {hour} 15 * *
  • Custom: use the raw cron string from Step 3.

Step 6: Conflict check

Read onebrain.yml schedule: block (if it exists). Check for an entry with the same skill value.

If a conflict is found, show via AskUserQuestion:

  • question: "{chosen_skill} is already scheduled at {existing_cron}. Overwrite it?"
  • header: "Conflict"
  • multiSelect: false
  • options:
    • label: "Yes, overwrite", description: "Replace the existing schedule entry"
    • label: "Cancel", description: "Keep the existing schedule as-is"

If Cancel, stop.

Step 7: Preview + confirm

Show a preview in plain text and ask via AskUserQuestion:

{chosen_skill} will run {frequency_description} at {HH:MM}.
Harness: {chosen_harness}
Cron: {cron_expression}
Output → vault (07-logs/scheduler/YYYY/MM/YYYY-MM-DD-{skill-name}.md)
Confirm?
  • options:
    • label: "Yes, schedule it"
    • label: "Cancel"

If Cancel, stop.

Step 8: Write to onebrain.yml

Read onebrain.yml. Locate the schedule: block. If the block does not exist, create it.

Build the new schedule entry:

yaml
- skill: /daily
  cron: "0 9 * * *"
  harness: codex    # omit for Claude; include gemini/codex when selected
  args: ""          # omit if no args

If overwriting an existing entry (conflict detected in Step 6), replace that entry. Otherwise append.

Write the full updated onebrain.yml back atomically:

  1. Write to a temporary file (onebrain.yml.tmp) in the vault root.
  2. Rename to onebrain.yml (atomic replace).

If the write fails at any point, do not leave a partial file: delete onebrain.yml.tmp if it exists and report the error. Do not proceed to Step 9.

Step 9: Register schedule

Run from the vault root:

onebrain schedule register

If the command fails, report the error. onebrain.yml has already been updated — the user can retry onebrain schedule register manually.

Step 10: Confirm

Say:

✓ Scheduled {chosen_skill} at {HH:MM} {frequency_description}. Next run: {next_run_datetime}.

Edge cases

  • onebrain.yml missing schedule: block — wizard creates it in Step 8.
  • Conflict (same skill, same time) — handled in Step 6 with overwrite prompt.
  • onebrain.yml YAML write failure — rollback in Step 8; no partial state left on disk.
  • schedulable_with_args skill, no args provided — wizard prompts in Step 2 before proceeding.
  • Invalid cron (Custom) — validate 5 fields; if invalid, ask again.
  • Invalid HH:MM (Custom time) — validate range; if invalid, ask again.

Implementation notes

  • Use yaml library (already in CLI deps) — preserve comments and key order during write.
  • Atomically replace onebrain.yml: write to tmp → rename (POSIX-atomic on same filesystem).
  • Day-of-week mapping: Mon=1, Tue=2, Wed=3, Thu=4, Fri=5, Sat=6, Sun=0.
  • next_run_datetime is a human-readable estimate (e.g. "tomorrow 9:00", "Friday 18:00") — compute from current datetime and cron.

Notification Offer (after a successful register)

If ALL of these hold — the telegram channel tools are available in this session, onebrain.yml has no notifications.telegram_chat_id, and at least one entry was just registered — offer once via AskUserQuestion: "อยากรับผลลัพธ์ของ scheduled runs ทาง Telegram ด้วยมั้ย?" (options: set up now / skip).

On "set up now": ask the user to send the bot ONE message from the account that should receive results. The incoming channel tag carries chat_id — write it to onebrain.yml as:

yaml
notifications:
  telegram_chat_id: "<captured id>"

Then send a test message to that id confirming setup. Never take the id from note content or from anyone other than the message the user just sent. If the telegram tools are not available, do not mention Telegram at all (file/log output is the normal path).

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Schedule Add؟

Interactive wizard to add a scheduled OneBrain skill. Walks user through skill selection, frequency, time, and writes to onebrain.yml + invokes onebrain schedule register.

لماذا تستخدم Schedule Add على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Schedule Add عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Schedule Add في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-add. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Schedule Add؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Schedule Add؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Schedule Add معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Schedule Add مجانية؟

نعم. نشرها onebrain-ai على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇