Logo Skill Gardener

Skill Gardener

Cộng đồng
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).

Tổng quan

Nhà phát hànhpeterpme
Kho mãskills
Tên kỹ năngskill-gardener
Sao
28
Bản fork
0
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được peterpme công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Skill Gardener trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/peterpme/skills/tree/main/skill-gardener
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Skill Gardener trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Skill Gardener ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Skill Gardener với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Skill Gardener làm được gì?

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).

Vì sao nên dùng Skill Gardener trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Skill Gardener là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Skill Gardener trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/peterpme/skills/tree/main/skill-gardener. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Skill Gardener?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Skill Gardener với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Skill Gardener với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Skill Gardener có miễn phí không?

Kỹ năng này được peterpme phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇