شعار Skill Gardener

Skill Gardener

المجتمع
peterpme
skill-gardener

Use for the scheduled Skill gardener run, or when Peter asks to trim, dedupe, shorten or prune his skills or AGENTS.md: cuts duplicated rules, narration and stale lines in one PR with a words-before-and-after table, merged when the replay eval holds. Not for adding rules or scoring changes (skill-review).

نظرة عامة

الناشرpeterpme
المستودعskills
اسم المهارةskill-gardener
النجوم
28
التفريعات
0
الملفات المرفقة
1
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 1

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها peterpme على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Skill Gardener في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/peterpme/skills/tree/main/skill-gardener
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/peterpme/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skill-gardener .claude/skills/skill-gardener
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Skill Gardener في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Skill Gardener تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Skill Gardener بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Skill gardener

Goal: every line in global/AGENTS.md and the skills earns its place. The gardener cuts; the weekly skill review measures and adds (findings, rules, eval cases). One run: measure, cut, score, one PR, report.

  • Cut only. Never add a rule, change a number, path, model, command or meaning, or reword a line into a new behavior. A line that is wrong rather than surplus becomes a finding issue in the home repo for skill-review.
  • Budget: one eval comparison per run, about $30 (32 agent sessions plus judging). Run it in the background with a log and wait for it inside the turn. Never end the turn while it runs.
  • The skills repo is public. Run the leak check from skill-scout section 6 on the diff and the PR body before pushing.

1. Measure

  1. git -C ~/skills fetch origin. Make a worktree at ~/skills/.claude/worktrees/gardener-<date> on branch gardener/<date> from origin/main.
  2. If a skill-review/* PR is open on the skills repo, leave the files it changes alone this run. If a gardener/* draft is open, its cuts are this run's retry queue (section 4).
  3. Run skill-gardener/scripts/words in the worktree. On the first run (no ~/.local/state/skill-gardener/runs.md yet) that table is the baseline: put it in the PR body and the report as "Baseline, words per file".

2. Cut

Read each of global/AGENTS.md and */SKILL.md whole. Cut these, nothing else:

CruftLooks likeDo
Duplicated rulethe same rule in two files, or twice in onekeep it in the skill that owns the step; delete the other
Narrationwhat an earlier version did, who said it when, reassurance, "note that", an incident or PR number standing in for the ruledelete the history; keep the one clause that says why a constraint exists, because a rule without its reason gets applied where it does not fit
Stale cautiona "never", "stop" or "ask first" line whose reason no longer holds, or that names no scopefile a finding with the scope and reason it should carry; a caution is never cut silently
Stale date"since ", "as of", "today", "(Peter, : …)", "still", "now", a dated statusdelete the date, or the line when the date was its point
Unused skilla skill added 30 or more days ago (git log --diff-filter=A) with 0 threads in python3 -I skill-scout/scripts/adherence.py --all --since 30ddelete its folder, its README line and every pointer to it; after merge, unlink its dangling links under ~/.agents, ~/.claude, ~/.codex, ~/.cursor and ~/.pi/agent. Peter's rule: a skill that is not used is deleted
Lines no check backsa tool, path, model, flag, task or pause that no longer exists (command -v, ls, rg the repo and ~/dotfiles/docs/tools/)delete the line, or the section when nothing else is left
Same-meaning rulestwo rules that differ only in wordingmerge into the one with the exact command or number
Enforced prosea rule a script, hook or CI check already enforceskeep one pointer to the check

Never cut: frontmatter, a sentence another skill tells agents to copy word for word, a decision with its revert word, an example a format rule needs, or a number a rule depends on (a threshold, cap, size or port). The eval scores planning only, so for a duplicated rule in a step it does not cover (proof, review, the ready gate, merging) the PR table names the line that still says it. At most about 15% of a file's words per run, so a drop in the score points at a few cuts. One commit per file, with the cut kinds in the message.

3. Score

From the worktree, in the background with a log: REPS=2 node evals/orchestrate/run.mjs origin/main .. Read report.mjs on the run. The score holds when the train mean drops by no more than 0.1 and no case drops by more than its spread between reps. If the eval cases are missing, the run is unscored.

4. One PR

Title gardener <date>: -N words. Body, nothing else:

  • a table with columns file, words before, words after, what was cut and why (the cut kind from section 2), from skill-gardener/scripts/words origin/main plus your notes;
  • the eval line: train main → branch, cases and reps, or "unscored: eval cases missing";
  • on the first run, the baseline table;
  • Sizes: each SKILL.md over 500 lines, if any.

Then:

  • Holds: follow the ready gate in global AGENTS.md (Finish every change) (pr-status, pr-threads empty, every bot thread answered), merge, delete the branch, then git -C ~/skills pull --ff-only and npm run release from ~/skills.
  • Drops or unscored: leave the PR a draft with the score in the body. Next run, retry one of its files, largest cut first, as that run's whole batch on a fresh branch, and close the draft.
  • Nothing to cut: open no PR.

Case ids and judge notes name private work: they go only in the report, never in the PR.

5. Report and log

**Skill gardener, <date>:** <-N words in M files, PR #n merged | PR #n draft, score dropped | nothing to cut>

| File | Before | After | Cut |
|---|---:|---:|---|

Eval: train main → branch ( cases, 2 reps), or unscored. Then append one line to ~/.local/state/skill-gardener/runs.md: date, words before and after, PR, score, merged or draft.

Set up

Only on the machine with the eval cases, and only after this skill is merged, since scheduled runs read ~/skills, which tracks main. Call schedule_task with projectId the "No project" (scratch) project, bindToCurrentThread: false, title: "Skill gardener", schedule: {type: "interval", everyMs: 259200000}, and this prompt:

[t3-sentinel-run] Run the skill-gardener skill: one run on this machine. Read ~/skills/skill-gardener/SKILL.md and follow it. If the skill file is missing, reply in one line starting with "Needs your call:" and stop.

If ~/.t3/sentinel/config.json exists, add the returned scheduledTaskId to its cleanup_task_ids. Report the next run time.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Skill Gardener؟

Use for the scheduled Skill gardener run, or when Peter asks to trim, dedupe, shorten or prune his skills or AGENTS.md: cuts duplicated rules, narration and stale lines in one PR with a words-before-and-after table, merged when the replay eval holds. Not for adding rules or scoring changes (skill-review).

لماذا تستخدم Skill Gardener على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Skill Gardener عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Skill Gardener في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/peterpme/skills/tree/main/skill-gardener. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Skill Gardener؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Skill Gardener؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Skill Gardener معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Skill Gardener مجانية؟

نشرها peterpme على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇