gardener-tasks
できること
このガイドは、Gardenerのタスクの書き方と確認の方法を説明します。Gardenerのタスクは、AIのメンテナンスの仕事を自動で設定する、短いマークダウンのファイルです。対象は、リポジトリでこれらのタスクを管理する開発者です。
使う場面
- ✓リポジトリに新しいGardenerのメンテナンスのタスクを作りたいとき。
- ✓既存のGardenerのタスクファイルを変えたいとき。
- ✓Gardenerの確認が失敗し、タスクの形式が何を求めているかを知る必要があるとき。
スキルのリンク
https://github.com/cloudflare/computer/blob/main/.gardener/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“毎週ドキュメント内の壊れたリンクを確認するGardenerのタスクを作ってください。編集するのはdocsフォルダだけにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このガイドは、タスクがいつ実行されるか、何を読んでよいか、どんな変更をしてよいかを定めるヘッダーの部分と、本文の指示を説明します。生成されるワークフローのファイルは、コマンドで書き直されるので、そのファイルを直接編集せず、そのコマンドを実行するよう伝えます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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 |
よくある質問
AIがどのファイルでも自由に変更できますか?
いいえ。タスクは、ヘッダーで宣言された変更しかできません。
生成されたワークフローのファイルを編集すべきですか?
いいえ。生成ツールがそれを書き直すので、手で編集しないよう、ガイドは定めています。
生成ツールの特定の版が必要ですか?
はい。ガイドは、記された正確な版を使うよう求めています。他の版では、確認に失敗するファイルができるためです。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 9.8k
- ランキング
- #12209
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
cloudflare
9.8kエージェントが、作業を始める前に、Workers、Durable Objects、wranglerなどのための、適切なCloudflareのプラットフォームのガイドを案内します。
prose
9.8kエージェントに、コードのコメント、コミットメッセージ、READMEやドキュメントで平易な英語を書く方法を教えます。専門用語、頭字語、お役所的な言い回しを避けます。
pull-requests
9.8kエージェントに、変更の物語、解決する問題、確認の方法を示す、明快なプルリクエストの説明を書く方法を教えます。
test-driven-development
9.8kエージェントに、コードを変える前に、失敗するテストを先に書く方法を教えます。バグもテストで先に再現します。変更が本当に動くことを確かめる助けになります。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。