Schedule Once logo

Schedule Once

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

Overview

Publisheronebrain-ai
Repositoryonebrain
Skill nameschedule-once
Stars
31
Forks
3
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by onebrain-ai on GitHub. Read the source before you install it.

Installation

Install the Schedule Once AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-once
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Schedule Once in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Schedule Once on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Schedule Once is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Frequently asked questions

What does the Schedule Once AI skill do?

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.

Why use Schedule Once on TypingMind?

Because you install it once and use it with any model. Schedule Once is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Schedule Once in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-once. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Schedule Once?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Schedule Once?

As many as you like. As long as a model supports skills, you can use Schedule Once with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Schedule Once AI skill free?

Yes. It is published on GitHub by onebrain-ai under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇