Skip to content
Back to skills

Gardener

ASecurity

Weekly upkeep of your Claude Code setup (hooks, skills, settings, optional mistakes log), plus an acceptance metric from your session transcripts.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentspythongoshellbash

Works with

  • claude code

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add rezk2ll/skills --skill gardener --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gardener?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gardener
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rezk2ll-gardener/badge)](https://www.skillsdirectory.com/skills/rezk2ll-gardener)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gardener
description: Weekly upkeep of your Claude Code setup (hooks, skills, settings, optional mistakes log), plus an acceptance metric from your session transcripts.
disable-model-invocation: true
---

# Gardener

Keep the Claude Code setup healthy: measure how often sessions land without a correction, turn repeated mistakes into checks, and flag drift in the repos you worked in.

## Setup

- Config dir: `$CLAUDE_CONFIG_DIR`, default `~/.claude`. Below, `<config>` means this dir. Transcripts live in `<config>/projects/*/*.jsonl`.
- Mistakes log: `$GARDENER_MISTAKES_LOG`, default `<config>/mistakes.md`. Optional. If the file does not exist, skip step 2.
- Lookback for repo scans: `$GARDENER_REPO_DAYS`, default 14.

Resolve the three values with one `echo` before starting and state them in the report.

Everything this skill changes lives in `<config>`. Repos are read only: what a repo should change goes into the report as a proposal.

## Steps

1. **Metric.** Run `python3 "${CLAUDE_SKILL_DIR}/acceptance.py" 7` and the same with `30` (the script sits next to this file). It counts sessions where the agent edited files and the user did not follow up with a correction. Done when both lines are in the report.
2. **Mistakes log** (only if it exists). Read it whole. The expected shape is one entry per mistake with `Count`, `Last seen`, `Enforcement` (`none`, `CLAUDE.md`, or the name of the check) and `Status` (`open`, `enforced`). If the log uses other field names, map them and say so. For each entry:
   - Count >= 2 and Enforcement is `CLAUDE.md` or `none`: a written rule is not holding. Draft the check that would catch it (a hook in `<config>/settings.json`, a pattern in an existing hook script, or a step in a skill), test it on a synthetic case, and show the diff. Apply it only after the user's go, then set Enforcement and Status.
   - Status `enforced` but Last seen is after the date it became enforced: the check leaks. Find the transcript (`grep -l` in `<config>/projects/*/*.jsonl` around Last seen) and say why the check missed.
   - Enforced and Last seen more than 30 days ago: collapse it to one line under `## Enforced`.

   Done when every entry has been through these three tests.
3. **Setup health.** Check that what `<config>` references still exists and runs:
   - Every hook command in `<config>/settings.json` points to a file that exists and is executable. Shell scripts pass `bash -n`, Python passes `python3 -m py_compile`.
   - Every skill in `<config>/skills/*/SKILL.md` has `name` and `description` frontmatter, and any file it references by path exists.
   - Rules in `<config>/CLAUDE.md` that contradict each other, or that a hook now enforces (the rule can shrink to one line).

   Report each problem with file:line and the fix. Apply fixes only after the user's go.
4. **Read the repos.** For each repo the user worked in during the last 7 days (`ls -t <config>/projects`, each dir name is the repo path with `/` replaced by `-`), scan the last `$GARDENER_REPO_DAYS` days of merged commits on the default branch for: the same helper written twice, a compatibility shim or flag whose reason is gone, a pattern that spread from one file to several. Report each with commit sha and file:line and the lint rule or deletion that would retire it.
5. **Report** in the chat, short: metric, promotions applied or proposed, leaking checks, collapsed entries, setup problems, repo proposals.

Files in this skill

  • SKILL.md3.4 KB
  • acceptance.py2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.