AgentSkillsCN

timer-skill

设置一次性延时定时器。在指定的时长(秒、分钟、小时、天)后执行相应操作。

SKILL.md
--- frontmatter
name: timer-skill
description: Set one-time delayed timers. Execute actions after a specified duration (seconds, minutes, hours, days).
allowed-tools: timer
metadata:
  author: machina
  version: "1.0"
  category: automation
  icon: "⏱️"
  color: "#10B981"

Timer Tool

Set one-time delayed execution timers.

How It Works

This skill provides instructions for the Timer tool node. Connect the Timer node to Zeenie's input-tools handle to enable timed delays.

timer Tool

Create a one-time timer that triggers after a specified duration.

Schema Fields

FieldTypeRequiredDescription
durationnumberYesTime value for the delay
unitstringYesTime unit: "seconds", "minutes", "hours", "days"

Time Units

UnitRangeUse Case
seconds1-3600Short delays, testing
minutes1-1440Task reminders, short waits
hours1-168Scheduled checks, delayed notifications
days1-30Long-term reminders, follow-ups

Examples

30 second delay:

json
{
  "duration": 30,
  "unit": "seconds"
}

5 minute reminder:

json
{
  "duration": 5,
  "unit": "minutes"
}

1 hour delay:

json
{
  "duration": 1,
  "unit": "hours"
}

2 day follow-up:

json
{
  "duration": 2,
  "unit": "days"
}

Response Format

Timer set:

json
{
  "success": true,
  "message": "Timer set for 5 minutes",
  "duration": 5,
  "unit": "minutes",
  "duration_seconds": 300,
  "trigger_at": "2025-01-30T12:05:00Z"
}

Timer triggered:

json
{
  "success": true,
  "triggered": true,
  "message": "Timer completed after 5 minutes",
  "duration": 5,
  "unit": "minutes"
}

Error Response

json
{
  "error": "Duration must be a positive number"
}

Use Cases

Use CaseDurationUnitDescription
Quick test10-30secondsTesting workflow execution
Reminder5-30minutesShort-term reminders
Rate limit60secondsWait between API calls
Daily check24hoursDaily automation
Follow-up2-7daysLong-term follow-ups

Common Workflows

Delayed notification

  1. Receive user request for reminder
  2. Set timer with requested duration
  3. Timer triggers → send notification

Rate-limited API calls

  1. Make API call
  2. Set 60-second timer
  3. Timer triggers → make next call

Scheduled workflow

  1. Set timer for desired delay
  2. Timer triggers → execute workflow nodes

Integration with Workflow

When used as a trigger node in a workflow:

  1. Deploy the workflow
  2. Timer countdown begins
  3. After duration, downstream nodes execute

When used as AI tool:

  1. Agent decides to set timer
  2. Timer is scheduled
  3. Agent can proceed with other work
  4. Notification when timer triggers

Best Practices

  1. Use appropriate units: Don't use 3600 seconds when 1 hour is clearer
  2. Consider time zones: Timers use server time
  3. Account for drift: Long timers may have slight variance
  4. Test short first: Start with seconds before days
  5. Chain timers carefully: Avoid infinite loops

Limitations

  • Timers are not persistent across server restarts
  • Maximum practical delay depends on server uptime
  • Timers are one-time (use cron for recurring)

Setup Requirements

  1. Connect the Timer node to Zeenie's input-tools handle
  2. For workflow triggers, connect Timer as the first node
  3. Deploy workflow to activate timer