Aller au contenu
Skillpedia
API et serveurs (backend)7.6k · #13176

recurring-jobs

Ce qu’il fait

Cette compétence explique comment fonctionnent les tâches planifiées récurrentes dans une application Agent-Native, y compris les fichiers de tâches et le planificateur qui les exécute. Elle s'adresse aux développeurs qui maintiennent d'anciennes fonctionnalités de tâches ou qui corrigent un problème de planificateur.

Quand l’utiliser

  • ✓Quand un utilisateur demande à l'agent de faire quelque chose selon une répétition planifiée.
  • ✓Quand vous maintenez une ancienne intégration qui utilise l'outil de gestion des tâches.
  • ✓Quand les tâches planifiées ne se lancent pas sur une plateforme d'hébergement donnée.

Lien du skill

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/recurring-jobs/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/recurring-jobs/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Mets en place une tâche qui s'exécute chaque matin de semaine et enregistre le résultat dans une discussion.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent écrit un fichier de tâche avec son planning. Un planificateur vérifie environ toutes les minutes les tâches à exécuter, les lance et enregistre chaque résultat comme fil de discussion.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Recurring Jobs (Compatibility)

Rule

Recurring Jobs is the legacy name and API for scheduled automations. Jobs live as resource files under jobs/ with YAML frontmatter for scheduling metadata.

Read automations for the product model, trigger types, frontmatter fields, organization scope, and when to prefer manage-automations over manage-jobs. This skill covers only what is specific to the legacy scheduled path: the manage-jobs tool and the cron scheduler behind it.

How It Works

  1. User asks for something recurring via the agent chat
  2. Agent uses manage-jobs tool (action: "create") to write a job file at jobs/<name>.md
  3. A scheduler tick finds due jobs about once a minute. Long-running servers fire it in-process; Netlify, Vercel, and Cloudflare fire it from a platform trigger the build emits; AWS Lambda has no trigger, so jobs never fire there
  4. Due jobs enter the shared background-automation runner, on the same execution lifecycle as event automations
  5. Job results are saved as chat threads

Connected MCPs in background jobs

When a job needs a connected remote MCP, bind the exact advertised mcp__<server>__<tool> names through mcpTools. The scheduler passes that definition to the shared runner, which resolves only that allowlist under the persisted creator/org request context and never stores or exposes OAuth tokens, URLs, or arbitrary proxy targets.

Use an app-owned bounded import/upsert action for writes. Keep provider-specific response mapping, provenance, deduplication, and write policy in the app rather than in core. For example, a job can read meeting notes from any connected MCP and pass normalized action items to an app's idempotent import action.

Job Tool (built in)

Tool Action Purpose
manage-jobs create Create a recurring job (name, cron schedule, instructions); fails if the name exists
manage-jobs list List all jobs and their status
manage-jobs update Update schedule, instructions, or toggle enabled

Job files an app owns

create never replaces an existing job file, so a name that collides with an app's file (Factory's factories/<id>/<name>) is refused instead of reset. An app that stores its own settings in a job's frontmatter marks the file with triggerType, which makes list, update, and delete skip it and sends the caller to manage-automations. Edit those files only through the owning app's actions, and patch fields in place; rebuilding a file from the fields the writer knows drops the rest while the job keeps running.

Any write to a jobs/ file that removes a frontmatter field other than run bookkeeping is recorded as a job-fields-dropped audit event (org admins read it with list-audit-events and action: "job-fields-dropped"). Its input names the writer, the dropped fields, and the agent thread and run that made it.

UI Surface

/agent#jobs is the stable compatibility URL for the Agent page's Automations tab, which lists legacy scheduled jobs alongside trigger-aware automations and is backed by the scoped list/manage actions. Direct users there instead of describing job files when they just want to view or toggle scheduled work.

Key Files

File Purpose
packages/core/src/jobs/cron.ts Cron parsing (nextOccurrence, isValidCron, describeCron)
packages/core/src/jobs/scheduler.ts Job execution engine (processRecurringJobs)
packages/core/src/jobs/tools.ts Agent tool (manage-jobs with create/list/update actions)
packages/core/src/client/agent-page/ AgentJobsTab, the /agent#jobs surface

Related Skills

  • automations — The primary Scheduled/Event product model
  • actions — How tools and actions work
  • delegate-to-agent — How jobs invoke the agent loop
Questions fréquentes

À quelle fréquence le planificateur vérifie-t-il les tâches ?

Environ une fois par minute, selon la compétence.

Les tâches s'exécutent-elles sur tous les hébergements ?

Non. La compétence indique qu'AWS Lambda n'a pas de déclencheur, donc les tâches ne s'y lancent jamais.

Quel outil les nouvelles tâches doivent-elles utiliser ?

La compétence indique de préférer manage-automations à l'ancien outil manage-jobs.

Détails

Description originale de l’auteur

The legacy manage-jobs compatibility surface, job files under jobs/, and cron scheduler internals. Use when maintaining manage-jobs integrations or debugging the scheduler.

repo: BuilderIO/agent-native

Popularité

Étoiles GitHub
7.6k
Position au classement
#13176
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires