Logo di Schedule Once

Schedule Once

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

Panoramica

Pubblicato daonebrain-ai
Repositoryonebrain
Nome della skillschedule-once
Stelle
31
Fork
3
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da onebrain-ai su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Schedule Once in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-once
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Schedule Once in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Schedule Once non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Schedule Once non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Schedule Once su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Schedule Once è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Schedule Once in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/schedule-once. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Schedule Once?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Schedule Once?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Schedule Once: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Schedule Once è gratuita?

Sì. È pubblicata su GitHub da onebrain-ai con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇