Logo vun Schedule Once

Schedule Once

Organisatioun
onebrain-ai
schedule-once

Interactive wizard to schedule a OneBrain skill to run ONCE at a specific datetime, then auto-uninstall. Writes a one-shot entry to onebrain.yml and invokes onebrain schedule register.

Iwwersiicht

Editeuronebrain-ai
Repositoryonebrain
Skill-Nummschedule-once
Stären
31
Forks
3
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum onebrain-ai op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Schedule Once an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-once
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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-once .claude/skills/schedule-once
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Schedule Once an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Schedule Once automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Schedule Once net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

/schedule-once — One-shot scheduler wizard

Purpose

For users who want a reminder or task to fire ONCE at a specific date and time, then disappear cleanly. Walks through:

  1. Which skill to fire
  2. What date (YYYY-MM-DD)
  3. What time (HH:MM, 24-hour)
  4. Any required args (if the skill is schedulable_with_args)
  5. Confirms preview
  6. Writes one-shot entry to onebrain.yml + runs onebrain schedule register

After the scheduled time, the OS scheduler runs the skill once and the entry deletes itself (launchd self-removal block · Task Scheduler DeleteExpiredTaskAfter · systemd ExecStopPost cleanup).


Skill flow

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 for a one-time run?"
  • header: "Schedule a One-Shot Run"
  • 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 keep the shared YAML skill name (/daily); the scheduler translates it to $onebrain:daily.

Step 2: Pick date

Prompt for YYYY-MM-DD via plain conversational text:

What date should {chosen_skill} run? Enter a date in YYYY-MM-DD format.

Validate:

  • Format must match YYYY-MM-DD (4-digit year, 2-digit month 01–12, 2-digit day 01–31).
  • Date must be strictly in the future relative to current datetime.
  • If invalid or in the past, reject with a clear message and re-prompt:
    • Malformed: Invalid date format. Please use YYYY-MM-DD (e.g. 2026-05-15).
    • Past: Date must be in the future. Current time: <now>.

Store: run_date.

Step 3: Pick time

Prompt for HH:MM (24-hour) via plain conversational text:

What time should it run? Enter time in HH:MM format (24-hour, e.g. 14:30).

Validate:

  • Hour: 0–23.
  • Minute: 0–59.
  • If the entered time on the entered date is already in the past, reject with That time has already passed today. Please enter a future time or change the date.
  • If invalid format or out of range, reject with a clear message and re-prompt.

Store: run_time, run_hour, run_minute.

Step 4: Collect required args (if applicable)

If chosen_skill has schedulable_with_args: true, read its required_args list from the SKILL.md frontmatter and prompt for each one via AskUserQuestion or plain conversational text.

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

Rules:

  • Empty values are not accepted — re-prompt if blank.
  • Reject any arg value containing a double-quote character ("): Argument values cannot contain double-quote characters due to shell wrapper constraints. Please rephrase without quotes.

Store: skill_args (key/value map; omit if no args).

Step 5: Preview + confirm

Show a preview via AskUserQuestion:

  • question: "Ready to schedule?"
  • header: "Confirm One-Shot Schedule"
  • multiSelect: false

Preview block:

{chosen_skill} will run once at {run_date} {run_time}.
Harness: {chosen_harness}
After firing, the schedule auto-uninstalls.
Output → vault (07-logs/scheduler/{YYYY}/{MM}/{run_date}-{skill-name}.md)
Confirm?
  • options:
    • label: "Yes, schedule it"
    • label: "Cancel"

If Cancel, stop with no changes.

Step 6: Write to onebrain.yml + register

Read onebrain.yml (full file, parse as YAML).

Conflict check: Look in the schedule: block for any entry where:

  • skill matches chosen_skill, AND
  • the at field (one-shot) OR cron field produces a schedule label that would collide.

If a conflict is found, ask via AskUserQuestion:

  • question: "{chosen_skill} already has a scheduled entry. How would you like to proceed?"
  • header: "Conflict"
  • multiSelect: false
  • options:
    • label: "Overwrite", description: "Replace the existing entry with this one-shot run"
    • label: "Cancel", description: "Keep the existing entry as-is"

If Cancel, stop.

Build the one-shot entry:

yaml
- at: "YYYY-MM-DD HH:MM"
  skill: /skill-name
  harness: codex    # omit for Claude; include gemini/codex when selected
  args:           # omit entire args key if no args
    key: value
  • If overwriting an existing entry, replace it in place.
  • Otherwise, append to the schedule: list.
  • If the schedule: block does not exist in onebrain.yml, create it.

Atomic write:

  1. Load full onebrain.yml content.
  2. Mutate the in-memory structure (load → mutate → write entire file).
  3. Write to onebrain.yml.tmp in the vault root.
  4. Rename onebrain.yml.tmp → onebrain.yml (atomic replace on same filesystem).
  5. If write fails at any point: delete onebrain.yml.tmp if it exists; report the error; do not proceed to register step.

Run from 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 7: Confirm

Say:

✓ Scheduled {chosen_skill} for {run_date} {run_time} (one-shot). Will auto-uninstall after firing.

Edge cases

  • Date in the past — reject with Date must be in the future. Current time: <now> (Step 2).
  • onebrain.yml missing schedule: block — wizard creates it in Step 6.
  • Conflict: same skill already scheduled (recurring OR one-shot) — AskUserQuestion: overwrite or cancel (Step 6).
  • Arg value contains " — reject with clear error; re-prompt (Step 4). Carried from backend constraint: the one-shot shell wrapper does not support double-quote characters in argument values.
  • onebrain.yml YAML write failure — rollback in Step 6; no partial state left on disk.
  • schedulable_with_args skill, no args provided — wizard prompts in Step 4 before proceeding; empty values not accepted.

Implementation notes

  • Use the yaml library (already in CLI deps) — preserve comments and key order during write.
  • Atomically replace onebrain.yml: write to tmp file → fsync → rename (POSIX-atomic on same filesystem).
  • The artifact onebrain schedule register generates for a one-shot entry runs the skill once, then removes itself (macOS: launchctl bootout + rm -f; Windows: DeleteExpiredTaskAfter; Linux: ExecStopPost disable+rm+daemon-reload) — the wizard does not need to schedule cleanup; the artifact handles it.
  • at: field format is "YYYY-MM-DD HH:MM" (quoted string). Do not use cron syntax for one-shot entries.
  • Day-of-week and cron logic are not needed here — only the at: field is written.

Heefeg gestallte Froen

Wat mécht de KI-Skill Schedule Once?

Interactive wizard to schedule a OneBrain skill to run ONCE at a specific datetime, then auto-uninstall. Writes a one-shot entry to onebrain.yml and invokes onebrain schedule register.

Firwat Schedule Once op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Schedule Once besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Schedule Once an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-once an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Schedule Once benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Schedule Once benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Schedule Once domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Schedule Once gratis?

Jo. De Skill gëtt vum onebrain-ai ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇