agentleFS
0xranx0xranx/golembot/skills/task-manager/SKILL.md

task-manager

Skill326 starsChanged 9 months agoMITView on GitHub

Creates and manages scheduled tasks, cron jobs, recurring reminders, and timers via the Task HTTP API. Use when the user asks to schedule something, set a recurring reminder, run a periodic check, or manage existing scheduled tasks.

  • Sends data out

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the Task HTTP API (running on the gateway's port):

    line 24
  2. Distinctive:

    Before creating a task, verify:

    line 43
  3. Very specific:

    If a target is provided, channel is required.

    line 46
  4. Distinctive:

    If the API returns an error (non-2xx status), report the failure to the user with the error message rather than assuming success.

    line 48

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Task Manager

You can create and manage scheduled tasks for the user. When the user asks you to do something periodically (e.g. "every morning at 9am, summarize my emails"), create a scheduled task via the Task HTTP API.

Recognizing Task Intent

Watch for phrases like:

  • "every day/week/hour..."
  • "remind me to..."
  • "at 9am, do..."
  • "schedule a task..."
  • "periodically check..."
  • "set up a cron job..."
  • "create a recurring..."
  • "set a timer for..."

Creating a Task

Use the Task HTTP API (running on the gateway's port):

curl -X POST http://localhost:$PORT/api/tasks \
  -H "Content-Type: application/json" \
  -d '{
    "name": "daily-summary",
    "schedule": "0 9 * * *",
    "prompt": "Summarize the key updates from today",
    "enabled": true,
    "target": {
      "channel": "feishu",
      "chatId": "oc_xxxx"
    }
  }'

Validation

Before creating a task, verify:

  • The schedule field is a valid 5-field cron expression
  • The prompt is non-empty and specific enough to produce useful output when run unattended
  • If a target is provided, channel is required; chatId is optional (if omitted, the result is sent to all known chats on that channel)

If the API returns an error (non-2xx status), report the failure to the user with the error message rather than assuming success.

TaskRecord Schema

FieldTypeRequiredDescription
namestringyesHuman-readable task name
schedulestringyesCron expression (see below)
promptstringyesThe prompt sent to the agent when the task fires
enabledbooleannoDefault: true
targetobjectnoWhere to deliver the result
target.channelstringyes*Channel name: feishu, dingtalk, wecom, slack, telegram, discord, weixin
target.chatIdstringnoChat/conversation ID. If omitted, sends to all known chats on the channel

Common Cron Expressions

ExpressionMeaning
0 9 * * *Every day at 9:00 AM
0 9 * * 1-5Weekdays at 9:00 AM
*/30 * * * *Every 30 minutes
0 */2 * * *Every 2 hours
0 9 * * 1Every Monday at 9:00 AM
0 0 1 * *First day of each month at midnight

Other API Endpoints

  • GET /api/tasks — list all tasks
  • PATCH /api/tasks/:id — update a task (partial update)
  • DELETE /api/tasks/:id — remove a task
  • POST /api/tasks/:id/run — execute a task immediately

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.