Logo van Schedule Once

Schedule Once

Organisatie
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.

Overzicht

Uitgeveronebrain-ai
Repositoryonebrain
Skillnaamschedule-once
Sterren
31
Forks
3
Meegeleverde bestanden
Alleen instructies
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door onebrain-ai op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Schedule Once in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-once
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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 na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Schedule Once in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Schedule Once automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Schedule Once niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

/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.

Veelgestelde vragen

Wat doet de AI-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.

Waarom Schedule Once gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Schedule Once bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Schedule Once in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-once. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Schedule Once gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Schedule Once gebruiken?

Zoveel als je wilt. Je kunt Schedule Once gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Schedule Once gratis?

Ja. Deze skill is door onebrain-ai op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇