gardener-tasks
Fungsinya
Panduan ini menjelaskan cara menulis dan memeriksa tugas Gardener, yaitu berkas Markdown singkat yang menyiapkan pekerjaan pemeliharaan AI otomatis. Ditujukan untuk pengembang yang mengelola tugas-tugas ini di sebuah repositori.
Kapan dipakai
- βSaat Anda ingin membuat tugas pemeliharaan Gardener baru di sebuah repositori.
- βSaat Anda perlu mengubah berkas tugas Gardener yang sudah ada.
- βSaat pemeriksaan Gardener gagal dan Anda perlu tahu apa yang diminta format tugas.
Link skill
https://github.com/cloudflare/computer/blob/main/.gardener/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuat tugas Gardener yang memeriksa dokumentasi kami dari tautan rusak setiap minggu dan hanya mengedit folder docs.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menjelaskan bagian header yang menetapkan kapan tugas berjalan, apa yang boleh dibaca, dan perubahan apa yang boleh dibuat, serta instruksi di bagian isinya. Berkas workflow yang dihasilkan ditulis ulang oleh sebuah perintah, jadi skill meminta Anda menjalankan perintah itu alih-alih mengeditnya secara manual.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 |
Pertanyaan umum
Apakah AI boleh mengubah berkas apa pun yang diinginkannya?
Tidak. Sebuah tugas hanya boleh membuat perubahan yang dinyatakan dalam header-nya.
Haruskah saya mengedit berkas workflow yang dihasilkan?
Tidak. Generator menulis ulangnya, sehingga panduan menyatakan agar tidak pernah mengeditnya secara manual.
Apakah saya perlu versi generator tertentu?
Ya. Panduan meminta versi tepat yang disebutkan dipakai, karena versi lain menghasilkan berkas yang gagal pemeriksaan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 9.8k
- Peringkat
- #12209
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
cloudflare
9.8kMengarahkan agent Anda ke panduan platform Cloudflare yang tepat untuk Workers, Durable Objects, wrangler, dan layanan lainnya sebelum mulai bekerja.
prose
9.8kMengajari agent Anda menulis bahasa Inggris yang sederhana untuk komentar kode, pesan commit, README, dan dokumentasi. Menghindari jargon, akronim, dan bahasa korporat.
pull-requests
9.8kMengajari agent Anda menulis deskripsi pull request yang jelas dan menceritakan perubahan, masalah yang diperbaiki, dan cara memeriksanya.
test-driven-development
9.8kMengajari agent Anda menulis tes yang gagal sebelum mengubah kode, dan mereproduksi bug dengan tes terlebih dahulu. Membantu membuktikan bahwa perubahan benar-benar berfungsi.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.