/glean:glean <skill>from glean
Run another skill incrementally — only on the files changed since that skill last ran, tracked by the glean CLI. Use it to loop a cleanup or quality skill without re-processing the whole diff each tick (e.g. /loop 5m /glean <skill>). Works with built-in skills too.
Ships in glean. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
glean is a per-repo incremental change tracker: it supplies the scope — files changed since this skill last ran — and records what got processed, so each /loop 5m /glean <skill> tick touches only new edits instead of the whole diff. Any skill that takes file paths works, including built-ins that can't be made glean-aware themselves.
context: fork runs this whole skill in its own subagent, so each loop tick returns only a one-line result to the loop — the wrapped skill's instructions, file reads, and edits stay in the fork and never pile up in the loop's window. To watch or steer a pass instead, run the skill directly (/<skill> <files>).
Requires the glean binary on PATH (cargo install --path . --root ~/.local).
Run the skill named $ARGUMENTS. Drop a single leading / if present — the bare name is both the skill to invoke and the glean consumer (<skill> below). If $ARGUMENTS is empty, report usage and stop. It can be any skill that takes file paths as positional arguments — there is no fixed set.
glean on PATH and a git repo. If command -v glean fails or git rev-parse --show-toplevel fails, stop and report glean unavailable — run /<skill> directly.$FILES = glean list --as <skill> (changed since this skill last ran; lockfiles and binaries excluded). Empty → report no changes for <skill> and stop.$ARGUMENTS skill (drop any leading /) through the Skill tool with $FILES as positional arguments and nothing else. The target skill scopes itself to those paths and does its own editing and verification.glean mark --as <skill> <paths> for the files the skill processed and verified clean; leave anything it couldn't finish unmarked so that file returns next tick. Marking runs in the same fork that ran the skill, so a fork that dies mid-pass records nothing rather than marking work it never did.<skill>: marked N of M files (note any held back for next tick). Facts only, no preamble.context: fork runs each invocation in its own subagent. From a plugin install it needs Claude Code v2.1.101+ (where plugin skills began honoring it); on older versions the skill runs inline — still correct, just without the context isolation.$FILES.glean reset --as <skill> forces a full re-sweep; glean reset --all wipes a repo's baselines. For separate tasks, use git worktrees — each worktree gets its own baseline automatically.glean tracks uncommitted work only (git diff HEAD + untracked); a committed change drops out by design. For committed or whole-branch work, run the skill standalone in its own branch mode (/<skill> main), not through glean — scoping by a ref is git's job.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub amalucelli/glean --plugin glean