/nd:reflectfrom Personal Skills
Consolidates what a whole session taught into verified project notes (shared basic-memory notes and this agent's own memory), skips anything already in rules, CLAUDE.md or git history, and asks before writing. Use when the user asks to reflect on the session, consolidate its learnings, or update the project notes after substantial work.
Ships in Personal Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
End-of-session knowledge consolidation: extract what is genuinely new, verify it against current state, and write it to the correct knowledge base without duplicating what already exists in rules or CLAUDE.md. When the session leaves work in progress, finish with a checkpoint through the bm-checkpoint skill (Step 6).
The knowledge base has two tiers: shared notes for all engineers, and internal memory for this user only. Follow the core pattern below so notes are useful, verifiable, and correctly classified. Knowledge that should be in rules, skills, agents or CLAUDE.md is not to be duplicated in memory: suggest the edit to those sources instead (Step 4).
| Tier | Location | Audience | What belongs here |
|---|---|---|---|
| Shared | basic-memory MCP storage (project-configured) | All engineers on this repo | Architecture facts, topology, known gaps, decisions, codebase patterns |
| Agent | Agent-internal memory directory — use the path given in your built-in memory instructions; do not construct it yourself | This agent only | Feedback (corrections/confirmations), user preferences, branch context, external pointers |
Before using MCP tools: confirm mcp__basic-memory__* tools are in the deferred tool list and loaded — load them with ToolSearch if not. If they are unavailable (not in the tool list, or the server failed to connect), do not guess a storage path: tell the user the basic-memory server isn't reachable and ask for a directory, or whether to stop. Never call an MCP tool whose schema has not been loaded: it fails with InputValidationError, not a missing-tool error, which is easy to misread as a bad argument.
MEMORY.md (agent-internal index) to see what already exists..claude/rules/ files for content that would make a note redundant. Memory supplements rules (why, context, gaps), never repeats the rule itself.mcp__basic-memory__search_notes. If the MCP tools are not available, see the note above.mcp__basic-memory__edit_note and show what changes, never a second note on the same topic. If something this session learned contradicts an existing note, list that note as "stale" in Step 4.Read ONLY the files directly relevant to what you are about to write. Do not batch-read everything "to be thorough" — it wastes context and often causes user friction.
| Learning type | Destination |
|---|---|
| Fact about codebase topology, architecture, known gaps | Shared (basic-memory) |
| Decision that all engineers should know | Shared (basic-memory) |
| Non-obvious pattern or discovered inconsistency | Shared (basic-memory) |
| Correction to agent behavior ("stop doing X") | Internal memory — feedback type |
| Confirmation of agent behavior ("keep doing Y") | Internal memory — feedback type |
| User preference or working style | Internal memory — user type |
| Branch scope that holds across sessions ("on X until Y lands"), active refactoring context | Internal memory — project type |
| Pointer to an external resource (URL, dashboard, ticket) | Internal memory — reference type |
Already in .claude/rules/ or CLAUDE.md | Skip |
| Ephemeral detail ("today we fixed X") that will not matter in a future session with no context | Skip as a note; if it is part of where the work stands, it goes in the checkpoint |
| Where this session stopped: branch, last commit, open PR, checks run, blockers, next action | Checkpoint (Step 6), never a lasting note |
For every claim you are about to write:
Bash / Glob)Grep for itFacts about the state of the code must be verified against the files. Decisions and rationale come from this conversation and cannot be: record them as "decided in session, not verifiable from code", and mark them that way in the Step 4 table.
Before writing anything, present a summary to the user:
Ask the user to confirm, adjust, or drop individual items before proceeding. Do not write a single note, and no MEMORY.md pointer, until the user has approved the plan. If the user drops everything, write nothing and do not retry.
For shared notes, decide the destination once, in this order:
mcp__basic-memory__write_note is loaded, use it. The tool owns the storage location and permalinks — do not compute a path yourself.Write for every note this session.Before writing the first note, read one existing note in that store to match its format. Place broad knowledge in a general subdirectory; use existing domain subdirectories for specific content.
For internal memory: follow the built-in memory schema. After writing, add a one-line pointer to MEMORY.md (skip this if no MEMORY.md exists).
The notes keep what stays true; a checkpoint keeps where the work stands, so the next session can pick it up. It is planned in the Step 4 table and written after the notes, with the same approval.
bm-checkpoint skill (Basic Memory plugin). It owns the note's format, folder and required fields; do not write the note by hand. Tell it which notes Step 5 just wrote, so it links them under ## Relations instead of repeating their lessons and decisions.bm-checkpoint is not available, say so in Step 4 and give the state in the reply instead.MEMORY.md index updated for any new internal memory filesbm-checkpoint when needed and approved, or its absence explainedWhat SKILL.md sets; muted values are Claude Code's defaults
Trigger phrases: "reflect on the session", "consolidate the session's learnings", "what did we learn this session", "update the project notes from this session". After a conversation that produced architectural decisions, rule changes, discovered gaps, or new codebase patterns, or after a significant refactoring, audit, or rule-authoring session, offer to reflect; start only when the user agrees. Not this skill: "make a note of this", "remember this", "add this to the note" — single-fact captures handled by calling the basic-memory MCP directly. Also not "what did we learn from that file" or other mid-task questions. Do not create notes for: content already in .claude/rules/ or any CLAUDE.md, git history facts (use git log), or ephemeral task details that will not matter in a future session with no context.
Other plugins' skills for the same job
npx claudepluginhub nikolasd/nikolasd-plugins --plugin nd10 skills in this plugin
/architectPlans, reviews and validates software changes, and delegates implementation to a separate "engineer" Claude Code session (spawned via Herdr when absent) while keeping every decision with the user. Use when the user wants to plan, review or validate with implementation delegated to an engineer session, says to act as architect, or when a message presenting itself as coming from the engineer session reports back, challenges an instruction, or asks a question./deliveryUse for medium or heavy coding work where quality matters (a feature, a multi-step fix, a refactor with logic, anything that ships), and when declaring work done or reporting status. Also before any commit, push, rebase, amend, PR, or branch checkout change, each of which needs an explicit "approve". Sets the protocol (read, failing test, implement, verify) before the first edit. Not for small or trivial edits./engineerImplements tasks delegated by a separate "architect" Claude Code session using TDD and spec verification, consults and challenges the architect with evidence, and reports back with test and lint results. Use when asked to act as the implementing engineer, or when a message presenting itself as coming from the architect session gives an instruction (a task, a go-ahead, a question, a request for a report-back)./git-town-worktreesSyncs a Git Town branch tree when some of its branches are checked out in other git worktrees, which `git town sync` skips without an error. Runs the bundled git-town-sync.ps1 (PowerShell 7), which merges like `git town sync` with the merge strategy, in whichever worktree holds each branch. Use when asked to run git town sync, sync a stack, or update a branch from its parent, trunk or main in a repo that uses worktrees, or when git says a branch "is already used by worktree"./handoffWrites a HANDOFF.md at the repo root capturing state, non-obvious decisions and next steps, so a fresh session or agent can continue without this conversation. Use when ending a session, running low on context, or handing work to another agent (for one task handed to another agent, it writes a message instead)./herdrSpawns and controls other coding-agent sessions in Herdr panes and tabs (split, start, prompt, read, close) via the standalone herdr CLI. Use when the user asks for another agent in a pane or tab, or mentions herdr. Works only inside a standalone Herdr pane (HERDR_ENV=1); not for the Herdr desktop app (HC_TERMINAL_ID set, driven with herdr-app and hc), not for in-session subagents.