Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Harness Distill

ASecurity

Distill durable learnings from recent sessions and code-review corrections into proposed memory facts, CLAUDE.md rule lines, or skill Gotchas. Use periodically, or after a run that surfaced recurring friction, corrections you keep repeating, or a gotcha worth capturing. It clusters candidates, adversarially verifies each with a skeptic, dedups against the memory store, and proposes edits for your approval. Not for one-off task notes or anything git, the repo, or CLAUDE.md already records; use...

2 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentsgobashcode-reviewgit

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add waqas1412/claude-harness --skill harness-distill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Harness Distill?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Harness Distill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/waqas1412-harness-distill/badge)](https://www.skillsdirectory.com/skills/waqas1412-harness-distill)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: harness-distill
description: Distill durable learnings from recent sessions and code-review corrections into proposed memory facts, CLAUDE.md rule lines, or skill Gotchas. Use periodically, or after a run that surfaced recurring friction, corrections you keep repeating, or a gotcha worth capturing. It clusters candidates, adversarially verifies each with a skeptic, dedups against the memory store, and proposes edits for your approval. Not for one-off task notes or anything git, the repo, or CLAUDE.md already records; use the memory convention directly for a single known fact.
argument-hint: "[optional: session count or scope to widen the default slice]"
allowed-tools: Read, Grep, Glob, Bash, Agent, Workflow
---

# /harness-distill: mine sessions into verified learning proposals

A recipe, not an engine. It closes the harness's one-directional gap: learnings from real sessions
are otherwise captured only by hand. It carries no `Write`/`Edit` tool, so it is structurally
propose-only: the brain plans and delegates, read-only advisors fan out, and every survivor is
emitted as a proposal for your approval, never a silent mutation. On-demand only; there is no
scheduler. Invoking this skill by name is the explicit in-the-moment opt-in the global single-main-loop rule requires; it licenses the fan-out described below and nothing else. The verbose rubric, skeptic prompt, dedup rule, and proposal template live in
`references/distill-pipeline.md`, opened when a step needs them.

## Scope discipline

This is a prose choreography over native subagent dispatch, like `/orchestrate`. Do not build a
coordinator, daemon, message bus, or scheduler. Default to a tight bounded slice (the current
session plus a small recent window for this repo) because mining transcripts is token-heavy; the
user can widen via the argument. Use effort, not model tiers: low effort for batch extraction and
clustering, high effort for the skeptic pass. Never pin a per-agent model.

## Step 1: Scope and gather (read-only)

Default slice: the current session plus a small recent window of this repo's transcripts at
`~/.claude/projects/<slug>/*.jsonl`, plus code-review corrections (prior `/code-review` output and
`gh pr` review comments). If those transcripts are absent (a fresh install), say so and stop; there
is nothing to distill. Extract candidate signals with `Bash` plus `jq` over the slice; reserve a
mechanical-tier haiku agent per session only for a large batch. Candidate signals: explicit user
corrections, repeated friction, gotchas hit, and successful ad hoc approaches. See the extraction
heuristics in `references/distill-pipeline.md`.

## Step 2: Cluster (sonnet, parallel)

Fan out agents to group the raw candidates by theme in one pass. Recurrence across two or
more sessions is the signal; a one-off is noise and drops out here.

## Step 3: Adversarially verify (one skeptic per cluster)

Dispatch one skeptic verifier per surviving cluster (those recurring across 2+ sessions). Each
asks "would this rule have prevented a real mistake?" and must cite session evidence. Promote only
durable, reusable learnings; reject task-specific noise, transient state, and anything git, the
repo, or CLAUDE.md already records. This is the false-positive filter. The skeptic prompt and the
promote/reject rubric are in `references/distill-pipeline.md`.

## Step 4: Dedup and route (per survivor)

Grep the memory store that is actually auto-loaded, `~/.claude/projects/<cwd-slug>/memory/` (not
`~/.claude/memory/`, a legacy store no session loads), plus any project `.claude/memory/`, plus `MEMORY.md`
first; if a fact already covers it, propose an update-in-place, never a duplicate file. Route each
survivor:
- a durable fact, correction, decision, gotcha, or stable preference to a memory fact (one per
  file, correct `metadata.type`);
- a rule Claude keeps missing that must be always-on to a CLAUDE.md rule line (portable rules to
  the user-global CLAUDE.md, project rules to the project CLAUDE.md or profile, never crossing
  scope);
- a skill-specific failure mode to a `## Gotchas` bullet in that `SKILL.md`.

Proposals target the user's INSTALLED `~/.claude` files and memory store (and project files), never
the distributable `global/` source, except when the user is explicitly improving the harness itself.

## Step 5: Propose, do not mutate

Emit one proposal per candidate using the template in `references/distill-pipeline.md`: destination
file, proposed exact text (em-dash-free, memory facts one-per-file), session evidence pointers,
promote/reject rationale, dedup note, and scope (global | project). On your approval, memory facts
are written by the brain and CLAUDE.md or skill-Gotchas edits go through the normal approved-edit
path. The skill itself writes nothing.

## Gotchas

- Mining many sessions is token-heavy: default to the bounded slice (current plus a small recent
  window) and only widen when the user asks.
- Never promote a project-specific learning into the portable global CLAUDE.md; keep portable and
  project scope separate, and target installed files, not the shipped `global/` source.
- Transcripts may be absent on a fresh install: report it and stop cleanly rather than fabricating
  candidates.
- Recurrence is the promote signal: a one-off, however sharp, is noise unless the skeptic ties it to
  a concrete real mistake.
- If a routed learning targets a skill lacking a `## Gotchas` section, propose adding the section
  rather than skipping the learning.

Attribution

waqas1412waqas1412
View sourceMore from waqas1412 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →