Skillpedia
النشر والسحابة (DevOps)9.8k · #12209

gardener-tasks

ما الذي تفعله

يشرح هذا الدليل كيف تكتب مهام Gardener وتفحصها، وهي ملفات Markdown قصيرة تعد مهام صيانة آلية بالذكاء الاصطناعي. وهو مخصص للمطورين الذين يديرون هذه المهام في مستودع.

متى تستخدمها

  • ✓عندما تريد إنشاء مهمة صيانة جديدة من Gardener في مستودع.
  • ✓عندما تحتاج إلى تغيير ملف مهمة Gardener موجود.
  • ✓عندما يفشل فحص Gardener وتحتاج إلى معرفة ما تشترطه صيغة المهمة.

رابط المهارة

https://github.com/cloudflare/computer/blob/main/.gardener/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/cloudflare/computer/blob/main/.gardener/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أنشئ مهمة Gardener تفحص وثائقنا أسبوعيًا بحثًا عن الروابط المعطوبة، وتعدّل مجلد الوثائق فقط.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يشرح الدليل رأس الملف الذي يحدد متى تعمل المهمة، وما الذي يحق لها قراءته، وأي تغييرات يحق لها إجراؤها، إضافة إلى التعليمات في جسم الملف. وتُعاد كتابة ملفات سير العمل المُنشأة بأمر، لذلك يطلب الدليل تشغيل ذلك الأمر بدلًا من تحرير هذه الملفات يدويًا.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

<!-- Written by Gardener 0.1.21. `gardener generate` rewrites this file; do not edit it. -->

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

  1. Create .gardener/tasks/<dir>/TASK.md. Start from the template below or an existing task.
  2. Run npx @scuffi/gardener@0.1.21 generate from the repository root (or the repository's own package.json script, if it has one). Use this exact version: a different one produces files the pull request's Check tasks check rejects.
  3. Fix every error generate prints and read its warnings. Repeat until it succeeds.
  4. Commit the TASK.md, .gardener/gardener.lock.json and the .github/workflows/gardener-*.yml changes 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
الأسئلة الشائعة

هل يستطيع الذكاء الاصطناعي تغيير أي ملف يشاء؟

لا. يحق للمهمة أن تغيّر فقط ما يعلنه رأسها.

هل أعدّل ملفات سير العمل المُنشأة؟

لا. المولّد يعيد كتابتها، لذلك يقول الدليل ألا تُحرَّر يدويًا أبدًا.

هل أحتاج إلى إصدار محدد من المولّد؟

نعم. يطلب الدليل استخدام الإصدار المحدد بالضبط، لأن الإصدارات الأخرى تنتج ملفات تفشل في الفحص.

التفاصيل

الوصف الأصلي من المؤلف

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
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة