gleanin

gleanin is a skill for Claude Code, Codex from pcx-wave/glean. It costs 62 tokens per session (1,211 once invoked), scanned A, original, MIT.

A set of rules learned from previous coding-session mistakes and corrections. It is loaded into future sessions to guide checks around credentials, delegation, file changes, deployment checks, and porting work.

In plain words
What is it for?
Use it to guide safe work with authenticated tools, delegated edits, existing files, deployments, and migrations between implementations.
Why use it?
It helps avoid repeating known failures, such as accepting an incorrect resource, trusting an unverified change, or declaring something finished before checking it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Good fit Use it to guide safe work with authenticated tools, delegated edits, existing files, deployments, and migrations between implementations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pcx-wave/glean/gleanin
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pcx-wave/glean --skill gleanin
Clone the repo
git clone --depth 1 https://github.com/pcx-wave/glean

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gleanin

README.md
[![agentmods](https://agentmods.dev/badge/skills/pcx-wave/glean/gleanin/github.svg)](https://agentmods.dev/skills/pcx-wave/glean/gleanin)
Your own site
<a href="https://agentmods.dev/skills/pcx-wave/glean/gleanin"><img src="https://agentmods.dev/badge/skills/pcx-wave/glean/gleanin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gleanin

Your own site · 80×15
<a href="https://agentmods.dev/skills/pcx-wave/glean/gleanin"><img src="https://agentmods.dev/badge/skills/pcx-wave/glean/gleanin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.01211
Opus 5.5 $0.00025 $0.00484
Sonnet 5.5 $0.00012 $0.00242
Haiku 4.5 $0.00006 $0.00121

Measured 3mo ago against content hash 08437112a33d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gleanin scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (sync.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. `curl -sI` before declaring anything "not deployed."
gleanin/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gleanin

Rules from past failures. Apply every session.

Credentialed Write Gate

Rule:

  1. Before writing with ambient credentials, verify scope (<tool> whoami, config view).
  2. Exact-match created resource name against intent.
  3. On mismatch, roll back immediately.
  4. Never mark done when acceptance probe failed.

Check: grep -c "inoffensif\|harmless\|can delete\|not needed" in session transcript — zero for any failed write.

Delegation Preflight

Rule:

  1. Scan delegation payload against delegate's Known Limitations first.
  2. Verify with git diff, not the delegate's [OK] lines.
  3. On partial landing, name the limitation before hand-editing.
  4. Structural integrity check every delegate-touched file.

Check: git diff --stat HEAD after delegation — changed file count must match expected.

Device First Check

Rule:

  1. Search filesystem (find, grep, ls) before asking the user.
  2. curl -sI before declaring anything "not deployed."
  3. Syntax check + tail check before committing.

Check: grep -c "AskUserQuestion\|curl.*not.find\|edit.*then.*ask" in session transcript — near zero with this rule.

Reference First Porting

Rule:

  1. Read the reference before editing any formula or algorithm.
  2. Cite file:line per edit.
  3. Apply supplied values verbatim before re-derivation.

Check: grep -rn "TODO\|FIXME\|guess\|maybe" <target-file> — zero after a port.

Protocol index

Trigger-loaded protocols. When a trigger matches the current task, Read the file before proceeding.

  • Exact form first — literal search, decisive git comparison, file-borne payloads — Load this in any session that (a) greps source code, (b) makes claims about → read ~/distillation/artifacts/exact-form-first.md
  • Hang-bisect protocol — trace before retry, never escalate timeouts blind — Load this whenever a script or pipeline invocation times out (exit 124), → read ~/distillation/artifacts/hang-bisect-protocol.md
  • Reproduce the report first — locate what the user sees before defending what you did — Load this whenever a user disputes visible state: "your changes don't → read ~/distillation/artifacts/reproduce-report-first.md
  • Route census before auth policy — classify every endpoint once, edit once — Load this whenever you are about to add or change authentication, API-key → read ~/distillation/artifacts/route-census-before-auth.md
  • Single-file batch edit — plan the change-set, then edit once — Load this whenever a task requires 3 or more changes to the same file — → read ~/distillation/artifacts/single-file-batch-edit.md
  • boundary-aware handoff — When dividing work between two or more models (or model sessions): → read ~/fable-build/rules/boundary-aware-handoff.md
  • content-integrity tests — For data-driven products (games, rule engines, content systems): → read ~/fable-build/rules/content-integrity-tests.md
  • contract-first interface — When building a system that runs across multiple targets (offline, online, → read ~/fable-build/rules/contract-first-interface.md
  • cost-time-quality accounting — Every build produces a cost accounting artifact: → read ~/fable-build/rules/cost-time-quality-accounting.md
  • cross-model relay — When routing build phases across multiple models: → read ~/fable-build/rules/cross-model-relay.md
  • deterministic default — Use fixed seeds for all world/level generation: → read ~/fable-build/rules/deterministic-default.md
  • effort setting by phase — When configuring a build phase, set effort level explicitly: → read ~/fable-build/rules/effort-setting-by-phase.md
  • goal-verification-report loop — Replace step-based phase execution with a goal→report pattern for → read ~/fable-build/rules/goal-verification-report.md
  • phase stage verification — When a phase spans significant work, split it into stages (1/2/3): → read ~/fable-build/rules/phase-stage-verification.md
  • review findings accounting — Every code review produces a numbered list of findings. → read ~/fable-build/rules/review-findings-accounting.md
  • safety overfit testing — For products that use LLM outputs (chatbots, content generators, agents): → read ~/fable-build/rules/safety-overfit-testing.md
  • thought-partner interview — Before writing ANY spec, template, or brief, interview the model as a → read ~/fable-build/rules/thought-partner-interview.md
  • vision self-correction loop — When the build produces visual output (UI, 3D scenes, renders, screenshots): → read ~/fable-build/rules/vision-self-correction.md

Read the full file on GitHub · 83 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 83 lines · 62 tokens per session scan A 08437112a33d

Subscribe to this mod's changes

gleanin is a skill published in the GitHub repository pcx-wave/glean (2 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 1,211 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

gleanin compared with skills from other repositories

gleanin next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gleaninpcx-wave/gleanSkill24mo agoMITA62Claude Code, Codex
guardRuya-AI/cozempicSkill4305mo agoMITA64Claude Code
wiki-lintAr9av/obsidian-wikiSkill3.9kyesterdayMITA47Claude Code
wiki-statusAr9av/obsidian-wikiSkill3.9kyesterdayMITA70Claude Code
wiki-importAr9av/obsidian-wikiSkill3.9kyesterdayMITA42Claude Code
openclaw-history-ingestAr9av/obsidian-wikiSkill3.9kyesterdayMITA51Claude Code
wiki-dashboardAr9av/obsidian-wikiSkill3.9kyesterdayMITA42Claude Code