Skip to content
Back to skills

Np Core Capture Learning

ASecurity

Capture anything worth remembering and route it: durable to the nervepack repo, session-scoped to local Claude memory. Use when the user says "capture this", "remember this", "save this learning", "/capture" or "/learn" without saying where.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 19, 2026
ai-agentspythongobashdebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add pat-browne/nervepack --skill np-core-capture-learning --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Np Core Capture Learning?

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

Security grade badge for Np Core Capture Learning
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pat-browne-np-core-capture-learning/badge)](https://www.skillsdirectory.com/skills/pat-browne-np-core-capture-learning)

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: np-core-capture-learning
description: 'Capture anything worth remembering and route it: durable to the nervepack repo, session-scoped to local Claude memory. Use when the user says "capture this", "remember this", "save this learning", "/capture" or "/learn" without saying where.'
---

# np-core-capture-learning

The user-facing shortcut that hides the where-does-this-go decision behind
a single command. Internally it's a router: classify, then delegate to
either [[np-core-contribute]] or the local memory store.

## Trigger phrases

Any of these should invoke this skill:
- `/capture`, `/np-core-capture-learning`, `/learn`
- "capture this", "remember this", "save this learning"
- "this is worth keeping"
- After a PR merge or deploy (auto-prompted by the post-ship hook)
- After an evaluation, measurement or investigation with no merge: a model
  eval, a data audit, a diagnosis that found no bug. Scores, metric traps,
  ruled-out causes and verified facts are learnings even when nothing shipped.

If the user explicitly says where it should go ("save to nervepack",
"add to memory") — skip this skill and use the targeted one directly
([[np-core-contribute]] or write to memory).

## The classification

Given a captured learning, ask: **would this still be useful to me on a
different project, a different machine, or six months from now?**

| Signal | Destination |
|---|---|
| Stable preference, rule, recurring pattern | **nervepack** (durable) |
| Environment quirk, tool gotcha, useful command | **nervepack** (durable) |
| Plugin choice, architectural taste | **nervepack** (durable) |
| Cross-cutting principle | **nervepack** (durable) |
| Verified fact about how a tech stack, framework, API or tool behaves | **nervepack wiki** (knowledge) |
| "Currently doing X" / "mid-debugging Y" | **memory** (session) |
| "Reminded me to do Z tomorrow" / "back from PTO Thursday" | **memory** (session) |
| Hostnames, paths, tokens, anything machine-specific | **memory** (session — and even then, avoid secrets) |
| Mid-conversation context the next session won't need | **memory** (session) |

A stack fact verified this session goes to the wiki, never to memory. The
sweep below finds them.

When genuinely uncertain → **default to memory**. The daily
`memory-promote` cron will lift it to nervepack if it turns out to
be durable. Going the other way (demoting something out of nervepack) is
harder, so bias conservative.

## Steps

### 1. Classify
Read the user's intent. Apply the table above. State the verdict and the
reason in one sentence: "Saving to nervepack → it's a stable coding rule
that'll apply to every project" — or — "Saving to memory → it's about the
current PR you're debugging."

If the user disagrees, switch routes. They have final say.

### 2a. Durable → nervepack
First make sure the checkout is current. A stale one hides the skill you would
extend and forks the repo.

Read the sync status. Only `up to date` allows the capture.

```bash
cat ~/.cache/np-core-sync-status
```

For any other content, or a missing or empty file, run the sync and read the
status again. See [[np-core-sync]].

```bash
python3 "${NP_DIR:-$HOME/Code/nervepack}/engine/nervepack_engine/cli.py" sync exit
```

If the sync exits nonzero or the status is still not `up to date`, stop. Tell
the user "Cannot capture: checkout is stale." Quote the status line and the last
lines of the sync output, and ask how to proceed. Do not edit skills on a stale
tree.

Then delegate to [[np-core-contribute]]. Follow its full protocol: preflight for other
writers, sync first, check `INDEX.md`, pick the right skill (extend over create),
write the edit, regenerate index, diff, commit, ask before push.

The preflight is not optional. Both repos are one working tree shared with other
sessions and with crons that commit to `skills/`, so a capture that skips it can
absorb another writer's uncommitted work into its commit, or be clobbered by
`skill-maintain`. That skill's § "Concurrency" carries the work-in-place vs
isolate-in-a-worktree decision.

Placement is that skill's job, and it resolves the path from the layer's own
layout. This skill never picks a directory.

### 2c. Stack sweep → wiki

After any code work, run the sweep in references/stack-wiki.md.

1. Name each stack touched.
2. Save the facts you verified about it to its wiki topic, through
   [[np-core-contribute]] (kind `knowledge`).
3. Do this even when the user asked to capture one thing.
4. No extra job: the capture hook and `episodic-maintain` stage the same facts
   from every session into `memory/stack-facts/`. This step is the attended
   fast path.

### 2b. Session-scoped → memory
Draft the memory body, then run it through [[np-flow-concise-output]] —
"memory lesson" is explicitly in its scope, and this is the one path in this
skill that np-core-contribute's own gate (step 4) never touches. Then write
to `~/.claude/projects/<your-project>/memory/<short-kebab-name>.md`
using the auto-memory format (see the system prompt's "How to save
memories" section — frontmatter with `name:`, `description:`,
`metadata: { type: ... }`). Add a line to `MEMORY.md`. Use the right type:

| Content shape | `type:` |
|---|---|
| Who the user is, what they're focused on | `user` |
| Behavioural correction or validation | `feedback` |
| In-flight project state, deadline, motivation | `project` |
| Pointer to an external system (Linear, Slack, doc URL) | `reference` |

### 2d. Orchestrating? Fan the capture out
Runs after 2a to 2c. If this session drives managed sessions or agents, send each
one message: the session tool `send_message` for a desktop session, or the
standalone `SendMessage` tool, which messages a spawned agent or teammate by id.
Request text: "Run
/np-core-capture-learning now. Preflight first. Write and commit locally, never push. The orchestrator pushes. Reply with one
`Captured:` line." Wait for each reply. A session that errors or does not reply
by your next turn is listed in step 3 as `no capture` with its id. Do not retry.

### Skipping
A skip must name, for each learning, the KB location where it already lives
(skill, reference or wiki path). "It's in the PR, the chat or an artifact" is
not a location. No named location means capture it.

### 3. Report
One sentence: where it went and why. Include the file path so the user
can verify.

## Why this skill exists

Without it, the user has to remember the distinction:
- `/np-core-contribute` = durable, cross-machine
- auto-memory write = session-scoped, this machine

That's friction at the moment of capture, which is exactly when friction
matters. `/np-core-capture-learning` removes the cognitive overhead — the user
just says "save this", and the routing happens transparently.

## What this skill does NOT do

- Does not push to nervepack without confirmation (delegates to
  [[np-core-contribute]] which has the push gate).
- Does not promote past memory entries — that's the daily
  `memory-promote` cron's job.
- Does not capture secrets, credentials, or PII. If the content includes
  any, refuse with one sentence and ask the user to redact.

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.