Skip to content
Development
Skill

/memory-discipline

Use when recording lessons learned in a project, or when a project contains lessons/ or MEMORY.md — file-based memory format and read/write rules that measurably improve long-horizon performance.

From plugin
modelharness
283 skills1 agent3 commands1 hook

Claude Code

$ npx -y skills add vitaliikapliuk/modelharness --skill memory-discipline --agent claude-code

SKILL.md

memory-discipline.SKILL.md
name: memory-discipline
description: Use when recording lessons learned in a project, or when a project contains lessons/ or MEMORY.md — file-based memory format and read/write rules that measurably improve long-horizon performance.

Memory Discipline

Fable 5 performs notably better when it can write learnings somewhere for future reference. Give Opus the same surface and rules.

Read rules

  • At the start of non-trivial work, read `MEMORY.md` (index) if present, then any

`lessons/*.md` whose one-line summary looks relevant.

  • Memories reflect what was true when written — verify a referenced file/flag still

exists before relying on it.

Write rules

  • One lesson per file in `lessons/`, kebab-case name, one-line summary on the first line.
  • Record corrections from the user and confirmed working approaches alike — include WHY

it mattered, not just what happened.

  • Don't save what the repo already records (code structure, git history, README facts).
  • Update an existing lesson rather than creating a near-duplicate; delete lessons that

turn out to be wrong.

  • After writing, add/refresh a one-line pointer in `MEMORY.md`.

Format

<!-- lessons/use-fake-clock-in-timer-tests.md --> Timer tests must inject a fake clock — real sleeps made CI flaky.

Context: PR #42 reverted twice. `time.monotonic` is patched via the `clock` parameter; never call `time.sleep` in tests.

Read more
@vitaliikapliuk
Ships withmodelharness

Make every model cheaper or better. Measured on four Claude models — none got worse. What it actually is: a zero-config Claude Code plugin.

283 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
28
Star history of vitaliikapliuk/modelharness on GitHub, a chart by star-history.com

Other skills on modelharness.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about memory-discipline.

Which coding agents can use memory-discipline?
memory-discipline installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.