Skip to content
Back to skills

Durable Knowledge

ASecurity

Use when a session learns a fact about the project the hard way — a convention, invariant, environment quirk, or wrong premise that cost a round trip — before the fix lands or the session ends

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 8, 2026
ai-agentsrustgodebugginggit

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add yuchi-chang/no-cape --skill durable-knowledge --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Durable Knowledge?

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

Security grade badge for Durable Knowledge
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yuchi-chang-durable-knowledge/badge)](https://www.skillsdirectory.com/skills/yuchi-chang-durable-knowledge)

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: durable-knowledge
description: Use when a session learns a fact about the project the hard way — a convention, invariant, environment quirk, or wrong premise that cost a round trip — before the fix lands or the session ends
---

# Durable Knowledge

A fact that cost a round trip to learn costs it again next session unless it is written where the next session reads first. The fix goes in git; the *trap* goes in the project's instructions file.

## What qualifies

Record it when all three hold:

- **The code misleads.** A fresh session reading the code or its comments would make the same wrong assumption: "row 0 is the south edge", "model z is negated", "the sampler runs at 2×".
- **It was learned by being wrong first.** A failed attempt, a reverted change, a correction from the user. Facts found on the first read don't need rescuing.
- **It is stable.** A convention, invariant, environment quirk, or decision — not state in flight ([[durable-plans]]), not the fix itself.

Don't record what code, tests, or docs already say plainly, or anything you could not re-verify.

## Where

- The project's agent instructions file (`CLAUDE.md`, `AGENTS.md`, or the harness equivalent) for anything a session needs before its first edit. One to three lines per entry — the file loads every turn; every line competes with the task.
- A `docs/` page plus a one-line pointer from the instructions file when the detail runs longer (a coordinate system with a diagram).
- The harness's personal memory, never the repo, for facts about *you*.

## The entry

Three parts, so a later session can re-verify instead of trust — a recorded fact is a claim, not evidence ([[root-cause-debugging]]):

1. The fact, stated as the convention it is.
2. The trap: the wrong assumption and how it failed.
3. How to confirm: the file, test, or one-line experiment that proves it.

`Grid rows run south→north; row 0 is the southern edge. Trap: the tile loader reads top-down, so the first fixture rendered mirrored. Confirm: tests/grid_orientation.test.ts.`

## When

At the moment of discovery, in the same commit as the fix — the same rule as [[durable-plans]]. "I'll write it up at the end" is how it gets lost: by then it feels obvious.

## Smell test

If the next session re-derives something this session already paid for, this skill was skipped one session earlier.

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.