Skill Gardener logo

Skill Gardener

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

Overview

Publisherpeterpme
Repositoryskills
Skill nameskill-gardener
Stars
28
Forks
0
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by peterpme on GitHub. Read the source before you install it.

Installation

Install the Skill Gardener AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/peterpme/skills/tree/main/skill-gardener
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Skill Gardener in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Skill Gardener on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Skill Gardener is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Skill Gardener AI skill do?

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

Why use Skill Gardener on TypingMind?

Because you install it once and use it with any model. Skill Gardener is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Skill Gardener in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/peterpme/skills/tree/main/skill-gardener. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Skill Gardener?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Skill Gardener?

As many as you like. As long as a model supports skills, you can use Skill Gardener with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Skill Gardener AI skill free?

It is published on GitHub by peterpme. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇