Saltar al contenido
Skillpedia
Agentes48 mil · #3673

agent-self-scheduling

Qué hace

Este agente te ayuda a programar tareas para que la IA las ejecute a horas concretas o en intervalos regulares. Se asegura de que las tareas no se ejecuten con demasiada frecuencia ni de forma insegura.

Cuándo usarla

  • ✓Cuando quieres que la IA revise tu correo todos los días a las 9:00.
  • ✓Cuando necesitas que la IA envíe un informe cada 10 minutos.
  • ✓Cuando quieres que la IA ejecute una tarea una sola vez dentro de 30 minutos.

Link de la skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-self-scheduling/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-self-scheduling/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Programa una tarea para revisar mi correo todos los días a las 8:00.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

Usa sistemas de programación como 'cron' o temporizadores integrados para decidir cuándo debe ejecutarse cada tarea. Evita que las tareas se ejecuten demasiado juntas, para no sobrecargar el sistema ni provocar errores.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Agent Self-Scheduling

When to Use

  • Use when the user asks for recurring, scheduled, heartbeat, or looped agent work.
  • Use when you need to choose between cron, external schedulers, hooks, or built-in agent scheduling.

Scheduling requires a direct user request; a guide or task-list entry is not permission to create background work. Preserve timezone, cadence, notification preferences and stop conditions; update an existing matching job instead of duplicating it. External messages and posting require explicit authorization.

First inspect the actual host: prefer its supported scheduler/heartbeat when available (including Codex automations); otherwise use an explicitly authorized external clock. Host capabilities are not determined solely by the runtime name.

Traditional five-field cron has one-minute granularity; other schedulers differ. Prefer event-driven checks and an appropriate cadence. Avoid tight LLM timers and indefinite loops.

Camp A — one-shot agents, you own the clock

These run once and exit (amnesiac unless resumed). Schedule them externally.

claude -p "PROMPT" --output-format json --allowedTools "Read"  # Claude Code
codex exec --json "PROMPT"                                                # Codex
pi run "PROMPT"                                                           # Pi

Wrap in a clock:

# 1. cron (>= 1 min floor)
*/10 * * * * cd /path/to/project && pi run "check X and report" >> ~/agent.log 2>&1
# 2. systemd timer (Linux, survives reboot, better logging) — OnUnitActiveSec=10min
# 3. dumb loop (sub-minute, or no cron available)
# If an external loop is required, bound its lifetime and implement a stop flag and overlap lock.
# Do not install an indefinite model-calling loop by default.

Gotchas (each breaks unattended runs if ignored):

  • Permissions hang forever. Use the host's supported narrowly scoped permissions for the agreed task. Do not disable sandboxing or broadly auto-approve commands to avoid an unattended prompt; report unavailable required approval.
  • Use JSON output (--output-format json / --json) so the wrapper parses results deterministically.
  • Runs are amnesiac. Resume the exact recorded task/session ID or persist private scoped state. --last can select an unrelated task and is unsuitable for an unattended multi-project schedule.

Pi has NO built-in scheduler/loop/heartbeat by design — external clock only (or a TS extension for agent-side timers).

cmux — orchestration only, NO scheduler

cmux has no timer/watch/cron. Three ways to loop it: orchestrator-driven (send → sleep → read-screen on your own clock), a dumb while-sleep wrapper, or — preferred — event-driven via cmux notify + OSC terminal hooks, which is cheaper and more responsive than polling. read-screen is non-interruptive, safe to poll.

For a monitor, stay quiet while state is unchanged unless the user requests periodic updates; notify on meaningful change, completion, failure or needed input. (Claude Code may prefill a predicted next user message after finishing — that's Claude, not the user.)

Camp B — Hermes built-in scheduler

Hermes' gateway ticks every 60s and runs due jobs in fresh isolated sessions. State-check first:

hermes gateway install            # user-level ( --system to survive reboot)
hermes cron create "every 1h" "summarize new emails and report" --skill himalaya
hermes cron create "0 9 * * *" "post daily standup"      # cron expr
hermes cron create "30m" "one-shot reminder in 30 min"   # one-shot delay

Hermes-unique: zero-token mode (run a script, deliver stdout verbatim — use for watchdogs), chaining (context_from pipes one job's output into the next), self-terminating loops, and loop safety (scheduled sessions cannot create more cron jobs — don't schedule from inside a scheduled job). Each run is a fresh session: the prompt must carry all context.

Heartbeat pattern

One fast recurring tick gates many slower per-task checks: the tick reads a task list + per-task last_run timestamps and only acts on tasks that are due. In Hermes use a recurring job (zero-token mode when nothing's due); in Camp A use a while-sleep loop. Define active-hours, and stay silent when nothing is due — no empty noise.

Verify it fires (before reporting success)

  1. Camp A: log file grows after one interval, or run the wrapped command once by hand → clean JSON, exit 0.

…

Preguntas frecuentes

¿Qué es 'cron'?

Es un sistema habitual en los ordenadores que sirve para programar comandos para que se ejecuten a horas concretas.

¿Puedo programar tareas para que se ejecuten cada minuto?

En general, no. La programación más frecuente habitual es de 1 minuto, y programar tareas demasiado juntas puede ser inseguro.

¿Qué pasa si la IA necesita permiso para una tarea programada?

La IA tiene que pedirte permiso y no puede continuar sin él, sobre todo en tareas que modifican archivos o acceden a información sensible.

Detalles

Descripción original del autor

Schedule AI agent runs with cron, loops, or external clocks while avoiding unsafe tight autonomous timers.

repo: sickn33/agentic-awesome-skills

Popularidad

Estrellas en GitHub
48 mil
Posición en el ranking
#3673
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas