gardener-tasks
What it does
This guide explains how to write and check Gardener tasks, which are short Markdown files that set up automatic AI maintenance jobs. It is for developers who manage these tasks in a repository.
When to use it
- ✓When you want to create a new Gardener maintenance task in a repository.
- ✓When you need to change an existing Gardener task file.
- ✓When a Gardener check fails and you need to know what the task format requires.
Skill link
https://github.com/cloudflare/computer/blob/main/.gardener/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create a Gardener task that checks our docs for broken links every week and only edits the docs folder.”
5 new skills a week. 1 minute to read.
How it works
The skill explains the header section that sets when a task runs, what it may read, and which changes it may make, plus the instructions in the body. Generated workflow files are rewritten by a command, so the skill tells you to run that command instead of editing them.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Gardener tasks
Gardener runs AI maintenance tasks on this repository from GitHub Actions. Each task is one Markdown file: YAML frontmatter says when it runs, what the model may read, and exactly which changes it may make; the body is the model's instructions. A planning job runs the model with only the declared tools and lets it plan only the declared effects. A separate job then applies that plan. Nothing outside the declaration is possible, whatever the instructions say.
Files
.gardener/
gardener.json project settings (release pin, optional "handle"); edit only "handle"
gardener.lock.json generated; never edit
SKILL.md this file; generated
tasks/<dir>/TASK.md one task per directory; the only files you write
.github/workflows/
gardener-<id>.yml generated, one per task; never edit
gardener-sync.yml generated (or the "syncWorkflow" name in gardener.json); never edit
Workflow
- Create
.gardener/tasks/<dir>/TASK.md. Start from the template below or an existing task. - Run
npx @scuffi/gardener@0.1.21 generatefrom the repository root (or the repository's ownpackage.jsonscript, if it has one). Use this exact version: a different one produces files the pull request's Check tasks check rejects. - Fix every error
generateprints and read its warnings. Repeat until it succeeds. - Commit the
TASK.md,.gardener/gardener.lock.jsonand the.github/workflows/gardener-*.ymlchanges together. When they reach the default branch, the sync workflow enables the task.
To change a task, edit its TASK.md and run generate again. To remove one, delete its
directory and run generate. Never hand-edit generated files.
Template
---
schema: gardener.task/v1
id: bug-intake
name: Bug intake
description: Asks issue authors for missing reproduction details.
trigger:
event: github.issue.opened
labels-all: [bug]
tools:
- repository.list_files
- repository.read_file
effects:
- issue.comment.create
network:
default: deny
allow: []
deny: []
limits:
runtime-seconds: 300
max-turns: 12
max-tool-calls: 16
input-tokens: 60000
output-tokens: 16000
---
Read the issue and the code it mentions. If it is missing reproduction steps, expected behaviour or
a version, comment once (`issue.comment.create`) asking for exactly what is missing. Otherwise
change nothing. Then finish.
Frontmatter
Unknown keys are errors.
| Key | Required | Meaning |
|---|---|---|
schema |
yes | Always gardener.task/v1. |
id |
yes | Stable identity: lowercase letters, digits, ., _, -. Names the workflow gardener-<id>.yml. Unique per repository. |
name |
yes | Short human name (up to 100 characters). |
description |
yes | One or two sentences (up to 1,000 characters). |
trigger / triggers |
exactly one | A single trigger object, or a list of them. See Triggers. |
tools |
yes | What the model may read or run. At least one. See Tools. |
effects |
no | What the task may change. Omit or [] for a read-only task. See Effects. |
network |
yes | Must be exactly as in Network. |
limits |
yes | Run budget. See Limits. |
model |
no | Model ID. Defaults to "@cf/zai-org/glm-5.3". Quote IDs starting with @. |
draft |
no | true makes the task run only by hand. See Trying a task. |
checkout |
no | pull-request-head checks out a pull request's head instead of GitHub's merge preview, also for comments on a pull request and manual runs naming one. Needs a pull request or issue comment trigger. Implied by commit.merge_base, and when commit.create may write beyond gardener/**. |
reactions |
no | false stops the 👀 reaction while the task works on an issue or comment, and the 🚀 or 😕 it leaves after. On by default. |
effect-scope |
no | trigger confines every run to the issue or pull request that triggered it, even a maintainer's. See Who a run may act on. |
Triggers
Each trigger is event: plus optional filters. A task may use each event at most once.
| Event | Filters |
|---|---|
github.issue.opened, github.issue.edited |
labels-all, mentions, authors |
github.issue.labeled, .unlabeled, .reopened |
labels-all, `op |
FAQ
Can the AI change any file it likes?
No. A task may only make the changes its header declares.
Should I edit the generated workflow files?
No. The generator rewrites them, so the guide says never to edit them by hand.
Do I need a specific version of the generator?
Yes. The guide says to use the exact version named, since other versions produce files that fail the check.
Details
Original description by the author
How to write, change and check Gardener tasks (.gardener/tasks/*/TASK.md), the AI maintenance tasks this repository runs from GitHub Actions. Use before creating or editing anything under .gardener/.
repo: cloudflare/computer
Popularity
- GitHub stars
- 9.8k
- Ranking position
- #12209
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
cloudflare
9.8kPoints your agent to the right Cloudflare platform guide for Workers, Durable Objects, wrangler and other services before it starts work.
prose
9.8kTeaches your agent to write plain English for code comments, commit messages, READMEs and docs. Avoids jargon, acronyms and corporate speak.
pull-requests
9.8kTeaches your agent to write clear pull request descriptions that tell the story of a change, the problem it fixes and how to check it.
test-driven-development
9.8kTeaches your agent to write a failing test before changing code, and to reproduce a bug with a test first. Helps prove that changes actually work.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.