golem-recurring-task-ts

Implement self-scheduling recurring tasks in TypeScript Golem agents with exponential backoff and cancellation.

1|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/justcoon/golem-shopping-ts --skill golem-recurring-task-ts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-recurring-task-ts
Source: https://github.com/justcoon/golem-shopping-ts/tree/main/.agents/skills/golem-recurring-task-ts
Command: npx skills add https://github.com/justcoon/golem-shopping-ts --skill golem-recurring-task-ts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the execution of recurring (cron-like) tasks within a Golem agent by self-scheduling future invocations, ensuring durability and resilience.

Core Features & Use Cases

  • Self-Scheduling: Allows an agent to schedule its own next run, enabling periodic tasks such as polling, cleanup, or heartbeats.
  • Error Handling: Supports exponential backoff and cancellation mechanisms for robust operation in failure scenarios.
  • Use Case: For example, implementing a periodic health check system that runs every minute and adapts its interval based on success or failure, or a heartbeat monitor that signals activity at regular intervals.

Quick Start

Explain to the user how to implement a recurring task that runs every specific interval, how to incorporate cancellation, and how to adapt delays based on success or failure.

Frequently Asked Questions about golem-recurring-task-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement recurring tasks in TypeScript agents?

Recurring tasks in TypeScript agents are implemented by enabling agents to self-schedule their next invocation, creating durable, cron-like periodic workflows such as polling or heartbeats.

Can I add exponential backoff to periodic agent tasks?

Yes, exponential backoff is supported for periodic agent tasks, allowing the self-scheduling mechanism to adapt execution intervals based on success or failure for robust error handling.

What is the best way to run periodic heartbeats and cleanup in a Golem agent?

The best way to run periodic heartbeats and cleanup in a Golem agent is using self-scheduling recurring tasks, which ensure durable execution and automatically manage future invocations.

How do I cancel a scheduled periodic task in a TypeScript agent?

You can cancel a scheduled periodic task in a TypeScript agent using the built-in cancellation mechanism, which halts the self-scheduling loop and prevents future invocations.

Does this recurring task approach work without external dependencies?

Yes, this recurring task approach works without external dependencies, implementing self-scheduling, exponential backoff, and cancellation entirely within the TypeScript Golem agent environment.