Skip to content
Back to skills

Takenotes

ASecurity

Saves durable knowledge into permanent storage — typed memory, CLAUDE.md, or a docs/ file — and corrects anything already stored that has gone stale. Handles both a single fact and a whole-session harvest. Use when the user says "takenotes", asks you to remember or record something, asks you to save what was learned this session, or asks you to update memory and CLAUDE.md after solving a problem, making a decision, working out how a tool or permission actually behaves, hitting a roadblock, or...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythonrustgoshellbashtestinggitapi

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add cabaynes/charles-agent-skills --skill takenotes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Takenotes?

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

Security grade badge for Takenotes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cabaynes-takenotes/badge)](https://www.skillsdirectory.com/skills/cabaynes-takenotes)

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: takenotes
description: Saves durable knowledge into permanent storage — typed memory, CLAUDE.md, or a docs/ file — and corrects anything already stored that has gone stale. Handles both a single fact and a whole-session harvest. Use when the user says "takenotes", asks you to remember or record something, asks you to save what was learned this session, or asks you to update memory and CLAUDE.md after solving a problem, making a decision, working out how a tool or permission actually behaves, hitting a roadblock, or reaching a natural checkpoint. Also invoked by /putdown. Do NOT use for transcribing a meeting, video, or article, or for capturing ephemeral session state (that is /putdown).
argument-hint: "[topic-to-focus-on]"
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Grep
  - Glob
---

# /takenotes — Harvest a session into durable memory

Write this session's durable knowledge somewhere it survives a `/clear`.

This is **not** a transcript dump. It is a harvest, a reconcile, and a routing decision.

The value of this skill over a plain "save that to memory" is **Step 3**. Anyone can append a new
fact. Almost nobody goes back and checks whether what's already stored is still true. Do not skip it.

---

## Step 0 — Scope gate (always first)

Decide which of these you're doing. Getting this wrong makes the skill annoying to use.

| Situation | Do this |
|---|---|
| One discrete fact ("remember I prefer tabs", "the API key rotates monthly") | Take the **single-fact path** below. Do not run Steps 2–5. |
| A **to-do**, not a fact ("remember to do X later", "we still need to…", "add this idea for the future") | Not memory — a task has a done-state, a memory doesn't. Hand it to `/openthreads add` and stop. If it arrives *with* a fact ("the vendor has no bulk endpoint, so we still need to…"), the fact is memory and the task is an open thread — split it. |
| Session checkpoint — solved a problem, made a decision, finished a feature, asked to "save what we learned" | Full harvest. Continue to Step 1. |
| A topic argument was passed (`/takenotes auth flow`) | Full harvest, but scope Steps 2–4 to that topic only. |
| Called from `/putdown` | Full harvest. Continue to Step 1. |
| Nothing durable happened (pure Q&A, reading code, no decisions) | Say so plainly in one line and stop. Do not manufacture findings to look productive. **But a session spent fighting tooling, access, or permissions is never "nothing durable"** — that is Step 2a's whole subject, even when no code changed. |

### Single-fact path

Skipping Steps 2–5 must not mean skipping the rules for writing a memory correctly. Do all of
these, then stop:

1. **Locate the memory directory** (Step 1a) — you still need to know where to write.
2. **Check for an existing memory on the topic** (`ls "$MEMDIR/memory/"`) and update it rather than
   adding a second file that says nearly the same thing.
3. **Decide scope.** If the fact is about *how the assistant should work* or *who you are*, it
   applies to every project, not just this one — see **Shared memories** in Step 4a. If it's about
   *this codebase*, it's local.
4. **Add the one-line pointer to `MEMORY.md`** — a memory file with no index entry is a file
   nothing loads. Keep it under ~150 characters, and put it near the top (under a `## This project`
   heading when the index has one): Claude Code loads only the first 200 lines / 25,000 characters
   and drops the bottom. For a shared memory, see Step 4a — its index line may be generated.
5. **Say what you did**, including the file path and whether it applies beyond this project.

### Memory file format

Both the single-fact path and Step 4a write this shape. `metadata` is a **nested mapping**, not a
dotted key:

```markdown
---
name: short-kebab-case-slug
description: one-line summary — future sessions match on this, so be specific
hook: "shared memories only, when the sync generates index lines — the rule in ≤ 90 chars"
metadata:
  type: user | feedback | project | reference
---

The fact itself, with absolute dates. For `feedback` and `project`, follow with **Why:** and
**How to apply:** lines. Link related memories with [[slug]], where `slug` is the other memory's
`name:` value — a link to a memory that doesn't exist yet is fine, it marks one worth writing.
```

The four types: `user` (who you are — role, expertise, what you're building), `feedback` (rules
that change what the assistant does), `project` (state of this work — what's done, blocked, ruled
out), `reference` (pointers to external things — URLs, dashboards, ticket IDs).

**A claim that something is fixed, works, or is now X-aware carries its proof.** Add one line:

```markdown
**Verified by:** `<command>` → <what it printed / exit condition> (<date>)
```

The command is one a future session can paste; the result is what you actually saw. Write it only
if **you ran that command this session**. If you didn't, write
`**Verified by:** NOT RUN — <the command that would settle it>` — a claim marked unverified is
honest; a bare "verified" that nobody ran is a claim with no expiry date, trusted long after it
stops being true. A stored fix claim with no `Verified by:` line at all is the same thing as
`NOT RUN`.

What does **not** count as a run of the thing being claimed: `py_compile`, a linter, a successful
`import`, or calling a helper in isolation. All four pass a `main()` whose body raises `NameError`
on its first real line. The run is the **entry point** on real-shaped input — `--dry-run`, `--help`,
`/dev/null` as the list, a one-item list, an input where every item is already done — whichever is
cheapest and side-effect-free. Nearly every script has one; find it rather than declaring the
script unrunnable.

---

## Step 1 — Locate the targets

**1a. Resolve the memory directory.** Claude Code stores per-project memory under
`~/.claude/projects/<project-slug>/memory/`, where the slug is normally the absolute project path
with `/` replaced by `-`. Resolve it from the **actual listing** rather than by building the string:

```bash
SLUG=$(pwd | sed 's|/|-|g')
MEMDIR=$(ls -1d "$HOME/.claude/projects/"*/ 2>/dev/null | sed 's|/$||' | grep -ix ".*/$SLUG" | head -1)
echo "${MEMDIR:-NO MATCH}"
```

Do not use `ls -d "$HOME/.claude/projects/$SLUG"`. On a case-insensitive filesystem (macOS default)
that *succeeds* against a differently-cased directory and echoes back the path you typed — which
then appears wrong in every report and breaks outright on a case-sensitive volume.

If `MEMDIR` comes back empty there's no memory dir yet — and since `$MEMDIR` is then the empty
string, **do not run `mkdir -p "$MEMDIR/memory"`**: that creates `/memory` at the filesystem root.
Build the path explicitly instead, and only if there's genuinely something to store:

```bash
MEMDIR="$HOME/.claude/projects/$SLUG"
mkdir -p "$MEMDIR/memory"
```

Throughout this skill `$MEMDIR` is the **project** directory; memory files live in `$MEMDIR/memory/`.

**1b. Read the index** — `$MEMDIR/memory/MEMORY.md`. It tells you what already exists without
reading every file.

**1c. Check for shared memories.** List the directory (`ls -la "$MEMDIR/memory/"`). If any entries
are **symlinks**, they point at a shared store used by more than one project — editing one changes
the rule everywhere. See **Shared memories** in Step 4a. If everything is a real file, all memory
here is local to this project and you can skip that section entirely.

**1d. Find the CLAUDE.md files and measure them.**

```bash
wc -m -l ./CLAUDE.md 2>/dev/null                              # characters, lines
awk 'length>500{print "line "NR": "length" chars"}' ./CLAUDE.md 2>/dev/null
ls docs/ 2>/dev/null
```

Measure **characters**, not just lines: context cost is characters, and a line cap alone lets a file
grow sideways — bullets rewritten in place until one "line" is a 5,000-character paragraph. Budget
for a project file: **12,000 characters and 200 lines, no line over 500 characters.** Step 4b uses
these numbers.

List `docs/` too — you need to know which spoke files exist before creating new ones.

**1e. Drain the handoff memory inbox, if one exists.**

```bash
cat .putdowns/MEMORY-INBOX.md 2>/dev/null
```

Claude Code on the web can't reach `~/.claude/projects/`, so if you use `/putdown` there it queues
memory-bound findings in this file rather than dropping them. If it exists and has content, treat
each block as a harvest candidate alongside this session's own findings. Once the blocks are
genuinely written to memory, clear the file back to its bare `# Memory inbox` heading (don't delete
it) and note the drain in Step 5. If a block is stale or already covered, say so rather than writing
a duplicate. No inbox is the normal case — say nothing.

---

## Step 2 — Harvest candidates from the session

Pull out everything that would still matter to an agent who reads none of this conversation. For
each candidate, name **what it is** — that determines where it goes in Step 4.

Look for:

- **Decisions with non-obvious rationale.** Not what was chosen — *why*, and what was rejected.
- **Dead ends.** What was tried that didn't work, and the reason. This is the highest-value and most
  frequently lost category: the difference between a future session losing 20 minutes or zero.
- **Operational findings.** What you now know about the tools, access, and environment that you
  didn't know when the session started. **Step 2a is a required pass — do not skip it.**
- **Corrections.** If the user pushed back on your approach, that's `feedback`.
- **Facts about the user** — role, expertise, tools, what they're building. That's `user`.
- **Project state** — what works, what's deferred, what's blocked, what's ruled out. That's `project`.
- **External pointers** — URLs, dashboards, ticket IDs, account names. That's `reference`.
- **Stable project facts** — architecture, conventions, build/test/run commands. That's **CLAUDE.md**,
  not memory.
- **Gotchas** a fresh agent would step on. CLAUDE.md if short, `docs/` if not.

Deliberately exclude:

- Ephemeral session state ("we're mid-refactor on line 142") — that's `/putdown`'s job, not memory's.
- Pending work and parked ideas ("still needs a reply", "worth building later") — that's
  `OPEN-THREADS.md`'s job, via `/openthreads`. A `project_*` memory that is secretly a to-do list
  gets its tasks moved there when you reconcile it in Step 3; keep the facts, move the tasks.
- Anything the code, git history, or an existing CLAUDE.md already records. Memory is for what
  *isn't* recoverable from the repo.
- Secrets, credentials, tokens, keys — **never**, in any file, in any form. If a value came from a
  credential file, record only that it exists and where, never its contents.

### Step 2a — Operational findings (required pass)

Everything above is about the *work*. This pass is about **operating the environment** — what you
learned about tools, access, and this machine. It is the category most reliably lost, because it
doesn't feel like a finding: by the time you write the summary the tool is working, and the hour
spent getting there has stopped feeling like knowledge.

Answer this question out loud, every run:

> **What do I know about operating in this environment now that I didn't know when this session
> started — about which tool to reach for, what it can't do, what it needs, or where its settings
> live?**

Five shapes count. All five are durable, and the last three are the ones that go missing:

| Shape | What it sounds like |
|---|---|
| **Capability limit** — a tool can't do something you assumed it could | the connected integration is provisioned read-only; every mutating call is gated off, so writes go through the REST API |
| **Access path** — where a permission, credential, or setting actually lives | the write scope is granted in the vendor's partner console, not the account settings, and the app must be reinstalled to mint a token |
| **The approach that worked** — what you'd reach for first next time, and what you'd skip | a multi-megabyte export goes through a sandboxed query, not a full read into the conversation |
| **The invocation that works** — the exact flag, arg, or sequence that made it go | the headed browser run needs an explicit engine flag; downloads need the new headless mode |
| **Blocked path** — something that cannot be done right now, and what would unblock it | the device firmware exposes no local stream; revisit only when the vendor ships the next version — don't re-derive this |

**A success counts.** Every other category in Step 2 is a failure, a decision, or a static fact, so
a technique that simply *worked* has no obvious home and gets dropped. It has a home: here.

#### Do not talk yourself out of it

Testing found agents discard this category at a very high rate, always with the same move: deciding
that because the tool behaved as designed, nothing was learned. Counters:

| Thought | Reality |
|---|---|
| "The tool behaved as documented — nothing was discovered" | You discovered *which* tool, usually after trying a different one first. That is the finding. |
| "That's standard practice / a standing convention" | Standing conventions don't say which one applies to this case. The specific case is the value. |
| "It's not project-specific, so it's not a project fact" | Correct — which makes it **shared**, not disposable. That's a routing answer, not a reason to drop it. |
| "It would just restate guidance that already exists" | Then *update that memory* with the concrete case you proved. Confirming beats re-deriving. |
| "Worth promoting only if it recurs on another project" | You are the recurrence. It already cost time once; the next session pays again to learn the same thing. |
| "The narrative of how I found it is just session color" | Right — strip the narrative, keep the rule. Dropping the narrative is not a reason to drop the rule. |

**Red flag:** if your "not stored" list explains why a tool discovery wasn't worth keeping, you are
in this failure. Move it to the harvest.

An honest "nothing operational this session" is a fine answer. A *missing* answer is how this
category disappears — which is why Step 5 makes you state it either way.

---

## Step 3 — Reconcile against what's already stored

**This is the step that makes the skill worth running.** For every existing memory and CLAUDE.md
section this session's work touched:

1. **Is it still true?** Memories record what was true *when written* — some are months old.
2. **Did this session contradict it?** If so it's wrong now. Correct it; don't stack a contradicting
   fact beside it and leave both. Correcting is not erasing: if the old belief explains why the code
   looks the way it does ("we believed the vendor couldn't send webhooks until 2026-07-28, which is
   why polling existed"), keep one sentence of it. You're deleting the false *instruction*, not the
   record that it was once believed.
3. **Did this session supersede it?** Update in place rather than creating a near-duplicate. Two
   memories saying almost the same thing is worse than one — the next agent won't know which to trust.
4. **Do its claims still hold?** A path existing says nothing about whether the thing works. For
   every memory that asserts a fix, a capability, or "works" **in an area this session touched**:
   - It has a `**Verified by:**` command → **run it now.** This is the step that catches a fix that
     silently stopped working, or never worked. A memory recorded "fixed" on one date and never
     re-run since is the single most common false memory.
   - It has no `Verified by:` line → this is the moment to add one. Run the cheapest real invocation
     of the entry point (see the format block in Step 0) and record what it did. If you can't run
     it, rewrite the claim as `NOT RUN`.

   Bound it: fast, read-only, side-effect-free checks only (`--dry-run`, `--help`, an empty or
   all-done input, a path test); only for memories relevant to what this session did. Never run
   anything destructive, network-heavy, or slow as part of a reconcile — if the stored check is
   expensive, say in Step 5 that it was not re-run and why.

   **A failed check is a finding.** The memory is wrong now: correct it, say so in Step 5, and treat
   it as a recurrence (Step 4's gate below) — a claim that decayed once will decay again.

   For plain path references (`ls <path> 2>/dev/null || echo "STALE: <path>"`): if the filesystem
   isn't authoritative here — you aren't in the repo, the tree isn't checked out, the paths sit
   outside the project — the check proves nothing, because a correct current path and a deleted one
   both come back missing. Say so and reconcile from what the session established instead.

5. **Is it now wrong enough to delete?** Deleting a false memory is a real improvement. Say what you
   deleted and why in Step 5 — never silently.

Reconcile `MEMORY.md` too: if its one-line hooks no longer describe their files, fix them.

### Step 3.5 — Superseded-fact sweep (hook-blind stale facts)

If this session established that a previously-true fact **changed** — a location, an employer, a
vendor, a tool choice, a project's status — do not trust the `MEMORY.md` hooks to find every file
that mentions it. Hooks are one line; a fact buried in a file body but absent from its hook is
invisible to hook-based discovery. A relocation can get corrected in the project memory that owns
it while a `user_*` profile two directories over still asserts the old city — nothing in that
file's one-line hook says "city", so nothing ever prompts opening it, and the stale fact survives
every reconcile.

Grep for the **old** fact and reconcile every hit — this project's memory, plus the shared
canonical store if Step 1c found symlinks:

```bash
grep -Rli "<old term>" "$MEMDIR/memory/" 2>/dev/null   # add the canonical store path if shared
```

Pick a term specific to the *old* fact (the previous city, the outgoing vendor's name), not the
topic — the topic also matches the files you just corrected and buries the stale ones under fresh
hits. Shared-store hits change the fact for every project: fix them through the canonical file,
never a per-project symlink copy, and flag each in Step 5. A kept-for-history mention ("migrated
off VendorX 2026-08-03") is not stale — you are sweeping for the old fact still asserted as
*current*.

---

## Step 4 — Route and write

**Before writing any memory about a failure, run the recurrence gate:**

1. `grep -Rli "<the failure's distinctive term — the message it printed, the script name>" "$MEMDIR/memory/"`.
   A hit — especially one that says it was fixed — means this is a **recurrence**. Do not add a
   second account. Update that memory, say "RECURRED <date>; the <date> fix/note did not hold" in
   its first lines, and treat the recurrence itself as evidence that a note is the wrong instrument.
2. Ask: **does a future agent need to KNOW this, or will it REPEAT it?**
   - *Know* — a tool choice, a flag, an access path, a vendor behaviour. A memory works: the next
     agent reads it and chooses correctly. Write it.
   - *Repeat* — a script that reports success while doing nothing, a check that returns a wrong
     verdict, a state file that wedges its own retry, a fix that came back. A memory will not
     prevent it; this session proves it, because the memory already existed. Write the memory
     anyway (it still speeds diagnosis), **and** name the **code-level guard** — an assertion, a
     raised exception, an age check, a refusal — and where it goes. `/takenotes` does not write code
     unless asked: record the guard as the memory's first "How to apply" line, not buried under the
     history, so the next session lands on it. When the trap has no code to guard (a manual step),
     put a one-line gotcha in the project's CLAUDE.md instead — that file loads every session;
     a memory loads only when someone opens it.

   The principle: a rule that keeps getting violated has outgrown the note it lives in. For agent
   behaviour the next rung is a hook; for code it is a guard in the code itself.

### 4a. Memory files

Write to `$MEMDIR/memory/<name>.md` in the shape given under **Memory file format** in Step 0.

- **Check for an existing file on the topic first** and update it instead of duplicating.
- **Convert relative dates to absolute** — "last week" is meaningless to a future reader.
- **Add a one-line pointer to `MEMORY.md`** — `- [Title](file.md) — hook`. One line, under ~150
  characters, never content — and above any generated shared list (under `## This project` when the
  index has that heading). Claude Code loads only the first 200 lines / 25,000 characters of the
  index and silently drops the bottom.

**Shared memories (optional — skip unless Step 1c found symlinks).**

Some multi-project setups keep cross-project rules (`feedback_*`, `user_*`) in one canonical store
and symlink them into each project's memory dir, so a rule written once applies everywhere. If
that's how this machine is set up:

- *Editing a shared memory* changes the rule for every project. That's often correct — it is never
  something to do silently. Say so in Step 5.
- *Creating a new shared memory* means writing it to the canonical store and re-running whatever
  sync step creates the symlinks. Skip that and it exists in one place and applies nowhere else.
- *Shared index lines may be generated.* If the project indexes carry a `## Shared notes (generated …)`
  section (the workspace pattern's `fanout-memory.sh` writes one), give each shared memory a `hook:`
  frontmatter line — the rule in **90 characters or fewer** — and don't hand-write its index line;
  the sync rebuilds every index from the hooks. `pinned: true` puts a memory in the "Always first"
  block; keep that to rules that matter in every project. Relay any size WARNING the sync prints.
- *Deciding which it is:* a rule about **how the assistant should work** regardless of project is
  shared. A fact about **this codebase** is local. When genuinely unsure, write it local — a local
  memory that should have been shared is a small loss; a shared memory that should have been local
  pollutes every project.

- *Operational findings (Step 2a) are scoped by what the fact is **about**, not by where you were
  standing when you found it.* You always discover tooling facts inside some project; that says
  nothing about where they apply. Run this test **before** falling back to unsure → local:

  | The fact names… | Scope |
  |---|---|
  | your own toolchain — a CLI, shell, browser, MCP client, sandbox, OS path, or machine setting that travels with you into every project | **shared** |
  | a **third-party product** — a vendor's API, dashboard, plan limits, rate limits, scopes, or console | **local**, even when the vendor is used by more than one project |
  | this repo's own code, build, or conventions | **local** — and usually CLAUDE.md, not memory |

  **The line is who owns the thing, not how reusable the fact feels.** A vendor's rate limit or
  scope-grant path is durable, genuinely reusable, and still **local** — it's their product, it
  changes on their schedule, and it has no claim on your other projects. "This might help on a
  future project with the same vendor" is not a promotion ticket; that's what the vendor's own
  project memory is for. Promote a vendor fact only if the user says they want it everywhere.

  For a toolchain fact, "it applies everywhere" is the whole point: filed under one project it
  silently fails to apply in the rest, which is exactly how this knowledge gets learned twice.

If Step 1c found no symlinks, none of this applies — write everything local.

### 4b. CLAUDE.md — guarded

CLAUDE.md is loaded in full on **every session start** — and so is every CLAUDE.md in the folders
above the working directory. Every character costs context forever, and longer files lower
adherence. Treat it as an index, not a document.

**Which CLAUDE.md?** Default to the project's own (`./CLAUDE.md`). If the workspace has a parent or
umbrella CLAUDE.md, that one is only correct for facts about the *workspace itself* — a new
subproject, a convention spanning projects. A fact about one project's code never belongs there.

Before writing, apply this gate in order:

0. **Is the file already over budget (Step 1d)?** Then trim before you add. Take out, in this
   order, from the sections nearest what you're adding: dated history ("since …", "was X until …",
   "renamed from …" — git and `docs/` hold it); descriptions of what the code does or how files are
   laid out (Claude reads the repo itself); procedures longer than a few steps (→ a `docs/` spoke or
   a skill); then anything a parent CLAUDE.md already says. Moving existing text out is a refactor —
   rule 4 applies. The file must end **smaller than it started**, never bigger.

1. **Does it belong here at all?** CLAUDE.md holds what Claude can't get from the code: commands
   (build/test/run, and how to check work), gotchas and places the code misleads, decisions not
   recorded in the repo, entry points, pointers to docs, and anything the user has corrected twice.
   Test each line: *could Claude find this by reading the code, and would it actually look?* If
   both, leave it out. It does **not** hold history, rationale, session state, long prose, file-
   layout or architecture tours, or anything already in a parent CLAUDE.md. Rationale and history
   go to **memory** or `docs/`. If it fails this test, stop — route it elsewhere.

   **When a fact in CLAUDE.md changes, replace it — don't annotate it.** "Publishes 3×/day", not
   "Publishes 3×/day (was 2×/day until March; changed because …)". That trail is how files grow
   sideways past a line cap.

2. **How much would it add?**
   - **≤ 15 lines and ≤ ~1,000 characters** → inline it, no line over 500 characters.
   - **More than that** → **extract to a `docs/` spoke** (4c) and inline only a pointer. Apply this
     *regardless of the file's current size*. A 40-line block that fits under the budget still
     costs context on every session start — size is the trigger, not the budget. Growing an
     existing bullet counts too: if your edit takes a line past 500 characters, split it or spoke it.

   Measure the version you would actually write, not the tersest one you could compress it to —
   otherwise the threshold just ratifies whichever way you were already leaning. Anchor: if it needs
   more than a pointer plus two or three facts, it's a spoke.

3. **Backstop: the file stays inside its budget** — 12,000 characters, 200 lines, no line over 500
   characters; re-measure after writing. If the edit breached it, refactor an existing oversized
   section out to `docs/` rather than declining to write. Aim for ~75% of budget for headroom.

4. **Structural changes get shown before saving — but only actual restructuring.** Writing a *new*
   `docs/` spoke for new content moves nothing; just write it. Moving content that is *already in*
   CLAUDE.md out to `docs/` is a refactor — show the diff and let the user approve. When invoked
   from `/putdown` there may be no one available to approve; in that case make the change and report
   it prominently rather than blocking.

### 4c. `docs/` spokes

For anything over the 15-line threshold:

1. **Check for an existing file on the topic first** — `ls docs/`. Append to `docs/architecture.md`
   rather than creating `docs/architecture-notes-2.md`. A new file per finding just moves the sprawl
   one directory over.
2. Write to `docs/<topic>.md` with a real `#` heading and enough context to stand alone — someone
   opening it cold shouldn't need the CLAUDE.md line to understand it.
3. **Link it from CLAUDE.md with a pointer that earns its place.** The pointer exists so a future
   agent can decide *whether to open the file* without opening it. A bare link fails at that:

```markdown
❌  See [docs/webhooks.md](docs/webhooks.md)

✅  Webhook signing — see [docs/webhooks.md](docs/webhooks.md) for the signature algorithm,
    header names, and the replay-window handling.
```

Name the contents, not the existence of the file.

---

## Step 5 — Report

Print a compact summary. Paths, not prose — the user wants to know what moved and be able to open it.

```
Memory
  updated    project_sync.md — polling replaced by webhooks; old "no webhooks" claim was false
  created    reference_vendor_signing.md — HMAC ordering gotcha
  deleted    project_old_approach.md — superseded, abandoned 2026-08-03
  reconciled MEMORY.md — 2 hooks rewritten

CLAUDE.md / docs
  ./CLAUDE.md  +3 lines (now 88) — added the sync entry point
  created      docs/webhook-signing.md (58 lines) — new spoke, new content; linked from CLAUDE.md

Operational (Step 2a)
  vendor integration is read-only → writes go via the REST API   [local]
  headed browser runs need an explicit engine flag               [shared]

Claims (Step 3.4 / Verified by)
  RAN      python3 scripts/sync.py --dry-run → "3 to push, 0 errors", exit 0   project_sync.md
  RAN      python3 scripts/export.py /dev/null → NameError: 'paths'   ← memory said fixed 2026-09-09; corrected
  NOT RUN  scripts/upload.py — no side-effect-free invocation; claim rewritten as NOT RUN
  RECURRED staging orphan (2026-08-28 note) — guard named: age check in stage.py; gotcha added to CLAUDE.md

Not stored
  mid-refactor state at receiver.py:142 — ephemeral, belongs in /putdown
```

Then:

- **The `Operational` block is required, not optional.** Print it every run. If there was genuinely
  nothing, print `Operational (Step 2a)` with `none this session` under it. Omitting the block is
  not the same as having nothing to put in it — a silent absence is exactly how tool knowledge gets
  lost, and it's the one thing the user can't notice going missing.
- **The `Claims` block is required whenever a fix, capability, or recurrence was in play.** Every
  `Verified by:` you ran or wrote as `NOT RUN`, and every recurrence, gets one line. If the session
  touched no such claim, print `Claims` with `none this session`. A claim you neither ran nor marked
  is the exact thing this block exists to make visible.
- **Flag shared-memory writes explicitly.** "This now applies to all your projects" is something the
  user must actually see.
- **Do not commit.** Mid-session runs leave changes for `/putdown` to sweep, which keeps this skill
  safe to run at any moment without touching git state. If asked to commit, do it.
- Keep the reply tight. The files are the deliverable.

---

## Notes on judgment

- **Be specific or don't bother.** "Learned about the sync logic" is worthless. "Sync silently
  no-ops when the container isn't in the entitlements file — cost 40 minutes on 2026-08-03; check
  entitlements first" is worth keeping forever.
- **Dead ends are the highest-value thing you can write.** They're invisible in the code and
  unrecoverable from git. Write them down every time.
- **The path that worked is worth as much as the dead end that didn't** — and it's dropped far more
  often, because a working tool stops looking like a discovery the moment it works. "Reach for X,
  not Y" saves the next session the same hour you just spent. Both halves belong in the record.
- **Fewer, better memories.** Consolidating two overlapping memories into one correct memory beats
  adding a third.
- **When a finding is real but its payload is missing, write the gap — never invent the values.** If
  the session established that three test vectors matter but you never saw them, record what they're
  for and where to get them, under an explicit "not captured" label. Plausible-looking invented
  values are worse than an acknowledged hole: they fail later and the blame lands on the code.
- **A finding can belong in two places.** When something is both memory-worthy and too long for
  CLAUDE.md, write the short version in memory and the detail in a `docs/` spoke, and have the memory
  name the spoke. That's deliberate, not the duplication "fewer, better memories" warns against —
  that rule is about two memories competing to describe the same thing.
- **Suspicious but unverified ≠ stale.** If something looks like it may have been falsified but the
  session never said so, leave it and flag it for a human. Silently deleting a working command is
  worse than leaving a questionable line in place.
- **Don't manufacture findings.** A short honest "nothing durable this session" is a good outcome and
  preserves trust in the summary.

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.