golem-schedule-agent-moonbit

Schedules future invocations of MoonBit Golem agents via the golem CLI.

1.5k|212|Updated Nov 24, 2023
One-click install
npx skills add https://github.com/golemcloud/golem --skill golem-schedule-agent-moonbit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-schedule-agent-moonbit
Source: https://github.com/golemcloud/golem/tree/main/golem-skills/skills/moonbit/golem-schedule-agent-moonbit
Command: npx skills add https://github.com/golemcloud/golem --skill golem-schedule-agent-moonbit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Running a Golem agent method at a specific future time requires knowing the exact CLI flags, datetime format, and fire-and-forget semantics. This Skill provides the precise commands and conventions for scheduling MoonBit agent invocations without trial and error.

Core Features & Use Cases

  • Scheduled Invocation: Uses golem agent invoke --trigger --schedule-at <DATETIME> to enqueue agent method calls for future execution.
  • MoonBit Naming Conventions: Documents that method names use snake_case and agent type names use PascalCase matching the MoonBit source.
  • Idempotency and Environments: Supports idempotency keys for deduplication and environment-prefixed agent IDs.
  • Use Case: Schedule a ReportAgent to run generate_daily at 2026-03-15T10:30:00Z with an idempotency key so the report is generated exactly once at the specified time.

Quick Start

Ask the AI to schedule a MoonBit Golem agent method, for example: schedule MyAgent's run_daily_report method to execute at 2026-03-15T10:30:00Z using the golem CLI.

Frequently Asked Questions about golem-schedule-agent-moonbit

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

FAQPage Schema
How do I schedule a Golem agent invocation for a future time?

Run golem agent invoke with the --trigger and --schedule-at flags followed by the agent ID, function name, and arguments. The --schedule-at value must be an ISO 8601 / RFC 3339 datetime with a timezone, and --trigger is required because scheduled invocations are fire-and-forget.

What datetime format does golem --schedule-at accept?

The --schedule-at flag accepts ISO 8601 / RFC 3339 datetimes that include a timezone, such as 2026-03-15T10:30:00Z for UTC or 2026-03-15T10:30:00+02:00 with an offset. Values without a timezone are not valid.

How do I prevent a scheduled Golem invocation from running twice?

Pass an idempotency key with the -i or --idempotency-key option when scheduling the invocation. Providing the same key ensures the invocation is not executed more than once even if the CLI command is retried, and "-" generates a key automatically.

What naming conventions do MoonBit Golem agents use in the CLI?

MoonBit agent method names use snake_case exactly as written in the source code, while agent type names use PascalCase matching the struct name. For example, 'MyAgent()' run_daily_report invokes the run_daily_report method on the MyAgent type.

Does golem agent invoke deploy the component before scheduling?

Yes, if the agent's component has not been deployed and the CLI runs from an application directory, the command automatically builds and deploys the component before scheduling the invocation.