gardener-tasks
Skill này làm gì
Hướng dẫn này giải thích cách viết và kiểm tra các tác vụ Gardener, tức các file Markdown ngắn thiết lập job bảo trì AI tự động. Dành cho lập trình viên quản lý các tác vụ này trong một kho mã.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một tác vụ bảo trì Gardener mới trong kho mã.
- ✓Khi bạn cần sửa một file tác vụ Gardener đã có.
- ✓Khi một kiểm tra Gardener thất bại và bạn cần biết định dạng tác vụ yêu cầu gì.
Liên kết skill
https://github.com/cloudflare/computer/blob/main/.gardener/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một tác vụ Gardener kiểm tra liên kết hỏng trong tài liệu mỗi tuần, và chỉ sửa thư mục docs.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill giải thích phần tiêu đề đặt khi nào tác vụ chạy, nó được đọc gì và được thay đổi những gì, cùng phần hướng dẫn trong thân file. Các file quy trình được tạo ra được viết lại bởi một lệnh, nên skill bảo bạn chạy lệnh đó thay vì sửa tay.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 |
Câu hỏi thường gặp
AI có thể thay đổi bất kỳ file nào nó muốn không?
Không. Một tác vụ chỉ được thay đổi những gì phần tiêu đề của nó khai báo.
Tôi có nên sửa các file quy trình được tạo ra không?
Không. Bộ tạo sẽ viết lại chúng, nên hướng dẫn nói không bao giờ sửa tay.
Tôi có cần một phiên bản bộ tạo cụ thể không?
Có. Hướng dẫn yêu cầu dùng đúng phiên bản được nêu, vì các phiên bản khác tạo ra file không qua được kiểm tra.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 9.8k
- Vị trí xếp hạng
- #12209
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
cloudflare
9.8kHướng agent của bạn đến đúng hướng dẫn nền tảng Cloudflare cho Workers, Durable Objects, wrangler và các dịch vụ khác trước khi bắt đầu làm việc.
prose
9.8kDạy agent của bạn viết bằng tiếng Anh đơn giản cho chú thích code, commit, README và tài liệu. Tránh biệt ngữ, từ viết tắt và lối văn rườm rà.
pull-requests
9.8kDạy agent của bạn viết mô tả pull request rõ ràng, kể câu chuyện về thay đổi, vấn đề nó sửa và cách kiểm tra.
test-driven-development
9.8kDạy agent của bạn viết một bài kiểm thử thất bại trước khi sửa code, và tái hiện lỗi bằng kiểm thử trước. Giúp chứng minh các thay đổi thật sự hoạt động.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.