Neat-Freak Knowledge Closeout
KKKKhazix/khazix-skills
Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.
Analyzes recent sessions for corrections, preferences and implicit feedback, then routes the real learnings to the right knowledge or rules file.
$ npx skills add mp-web3/claude-starter-kit --skill reflect -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mp-web3/claude-starter-kit reflect --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mp-web3/claude-starter-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/reflect .claude/skills/reflect && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "reflect" agent skill from https://github.com/mp-web3/claude-starter-kit/tree/main/skills/reflect into .claude/skills/reflect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reflect", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mp-web3/claude-starter-kit/tree/main/skills/reflectType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mp-web3/claude-starter-kit --skill reflect -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mp-web3/claude-starter-kit reflect --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mp-web3/claude-starter-kit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/reflect .agents/skills/reflect && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "reflect" agent skill from https://github.com/mp-web3/claude-starter-kit/tree/main/skills/reflect into .agents/skills/reflect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reflect", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mp-web3/claude-starter-kit --skill reflect -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mp-web3/claude-starter-kit reflect --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mp-web3/claude-starter-kit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/reflect .cursor/skills/reflect && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "reflect" agent skill from https://github.com/mp-web3/claude-starter-kit/tree/main/skills/reflect into .cursor/skills/reflect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reflect", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mp-web3/claude-starter-kit.git --path skills/reflect--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mp-web3/claude-starter-kit --skill reflect -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mp-web3/claude-starter-kit reflect --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mp-web3/claude-starter-kit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/reflect .gemini/skills/reflect && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "reflect" agent skill from https://github.com/mp-web3/claude-starter-kit/tree/main/skills/reflect into .gemini/skills/reflect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reflect", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mp-web3/claude-starter-kit reflectInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mp-web3/claude-starter-kit --skill reflect -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mp-web3/claude-starter-kit.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/reflect .github/skills/reflect && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "reflect" agent skill from https://github.com/mp-web3/claude-starter-kit/tree/main/skills/reflect into .github/skills/reflect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reflect", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mp-web3/claude-starter-kit --skill reflect -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mp-web3/claude-starter-kit reflect --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mp-web3/claude-starter-kit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/reflect .opencode/skills/reflect && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "reflect" agent skill from https://github.com/mp-web3/claude-starter-kit/tree/main/skills/reflect into .opencode/skills/reflect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reflect", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
reflectAnalyzes recent sessions for corrections, preferences and implicit feedback, then routes the real learnings to the right knowledge or rules file.
This is a four-phase reflection workflow run with `/reflect`. The agent first reads LEARNINGS.md from its own folder. Phase 1 runs an extraction script over session JSONL to pull candidate pairs, analyzing the latest session by default or a range set by date or file, and if nothing turns up it says there is nothing to reflect on and stops. Phase 2 decides which candidates are real learnings, since about 40% are ordinary conversation: corrections, preferences, tool rejections with reasons, repeated workflow patterns and implicit feedback count.
Candidates are checked against a log of rejected learnings, so repeats are skipped silently and reversals are flagged for you. Each real learning is routed with a table, checked for duplicates in its target file and scanned against up to five related files for contradictions, which are marked as conflicts for resolution in the next phase and counted in a rule-feedback file. The excerpt is cut off before the later phases.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 546c72c. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadGrepGlobWriteEditBashAskUserQuestionFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
python3sqlite3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Session Reflection Learnings loads about 1.8k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 736 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, Grep, Glob, Write, Edit, Bash, AskUserQuestionAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mp-web3/claude-starter-kit at commit 546c72c, republished under its MIT licence (© mp-web3). 736 words, ~1,844 tokens.
.claude/skills/reflect/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.First: Read LEARNINGS.md (in this skill's directory) before proceeding.
You are running a 4-phase reflection workflow. Follow each phase in order.
Arguments: $ARGUMENTS
Run the extraction script to get candidate learnings from session JSONL.
python3 ~/claude-assistant/scripts/extract-learnings.py $ARGUMENTSIf $ARGUMENTS is empty, it analyzes the latest session. Pass --since YYYY-MM-DD or --file <path> to customize scope.
For each candidate pair from Phase 1, determine:
Is this a real learning? ~40% are normal conversation — skip those. Look for:
Check rejections — Read ~/claude-assistant/knowledge/self/rejections.md. For each candidate:
Classify and route each real learning using the routing table below.
Check for duplicates — Read the target file and verify the learning isn't already captured.
Scan for contradictions — For each proposed change with a target file:
a. Read the target file
b. Read up to 5 related files: same directory + shared tags (YAML tags field) + wiki-linked files
c. Scan for statements that directly contradict the proposed change
d. If contradiction found, flag it for Phase 3 conflict resolution:
CONFLICT with [file.md:line]:
Existing: "[quoted text]"
Proposed: "[new learning]"e. Update feedback counters — If the contradiction traces to a specific existing rule/learning entry, increment its harmful counter in ~/claude-assistant/state/rule-feedback.json
Update feedback counters — Read ~/claude-assistant/state/rule-feedback.json (create if missing). For each finding:
a. If a correction contradicts an existing rule -- increment harmful for that rule:
"<relative-path>::<section or first 60 chars of rule>"b. If the session had no corrections in an area covered by a rule, and the rule was relevant to work done this session -- increment helpful
c. Write updated counters back to ~/claude-assistant/state/rule-feedback.json
d. Flag unhealthy rules for Phase 3:
harmful >= 3 -- flag: "This rule has been contradicted 3 times. Review or remove?"harmful / (helpful + harmful) > 0.5 with 4+ total signals -- flag as unreliablehelpful >= 5 with harmful == 0 -- mark as "stable" (note in output, no action needed)For multi-session scans (--since): Track if the same learning appears across 2+ sessions. Flag for promotion:
| Category | Target File |
|---|---|
| Task/operational correction | ~/.claude/rules/tasks.md |
| Communication preference | ~/.claude/rules/communication.md |
| Session management | ~/.claude/rules/sessions.md |
| Security/git correction | ~/.claude/rules/security.md |
| Delegation pattern | ~/.claude/rules/delegation.md |
| Development standard | ~/.claude/rules/development.md |
| Research convention | ~/.claude/rules/research.md |
| User profile update | ~/claude-assistant/knowledge/user/profile.md |
| User goals update | ~/claude-assistant/knowledge/user/goals.md |
| Self-knowledge | ~/claude-assistant/knowledge/self/identity.md |
| Problem insight | ~/claude-assistant/knowledge/problems/NN-*.md Insights Log |
| Project state change | ~/claude-assistant/knowledge/projects/<project>.md |
| Global convention | ~/.claude/CLAUDE.md |
| Recurring pattern (3+ sessions) | ~/.claude/rules/ (new file or existing) |
| Actionable work identified | SQLite via sqlite3 ~/claude-assistant/tasks.db then python3 ~/claude-assistant/scripts/db.py export |
| MEMORY.md state change | MEMORY.md (sparingly) |
Routing priority: Rules files > Knowledge files > MEMORY.md > CLAUDE.md
Problem routing: Read ~/claude-assistant/knowledge/problems/00-overview.md to match findings against the user's problems.
Show each finding to the user in this format:
## Finding N: [short title]
- **Evidence:** "[what user said]" (in response to "[what Claude said]")
- **Category:** [from routing table]
- **Target:** `path/to/file.md`
- **Proposed change:** [exact text to add/edit]
- **Already captured?** Yes/NoIf Phase 2 flagged contradictions:
CONFLICT with [file.md:line]:
Existing: "[quoted text from file]"
Proposed: "[the new learning]"
Resolve: keep existing (k), replace (r), or note both (b)If feedback counters flagged unhealthy rules:
## Flagged Rules
### [rule key]
- Counters: helpful=N, harmful=N
- Recommendation: review / remove / keep with caveatAsk: "Action on flagged rules? (r)emove, (e)dit, (k)eep, or (s)kip"
After listing all findings, ask:
Apply all (a), select by number (e.g. 1,3,5), or discard (d)?
If no real learnings found: tell user "Analyzed N pairs, no actionable learnings found" and stop.
When user discards findings:
~/claude-assistant/knowledge/self/rejections.md:### YYYY-MM-DD — Rejected
- **Proposed:** [the learning]
- **Target:** `path/to/file.md`
- **Reason:** [user's reason, or "(not provided)"]For each approved finding:
last_reviewed to today's date (if present)### YYYY-MM-DD — Session ReflectionAfter all edits:
| File | Change | table~/claude-assistant/state/rule-feedback.json if counters were updatedreflect: capture session learnings© mp-web3, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/reflect of mp-web3/claude-starter-kit.
Open the folder on GitHubat commit 546c72c
Session Reflection Learnings next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Session Reflection Learnings this skillmp-web3/claude-starter-kit | 109 | — | ~1.8k | Automated safety check: Notes | MIT | |
| Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills | 21k | — | ~1.9k | Automated safety check: Pass | MIT | |
| SkillOpt Sleep Cyclemicrosoft/SkillOpt | 18k | — | ~2.3k | Automated safety check: Pass | MIT | |
| CLAUDE.md Improveranthropics/claude-plugins-official | 37k | 5 repos | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Harness Engineering10xChengTu/harness-engineering | 102 | 1 repos | ~1k | Automated safety check: Pass | None | |
| Codebase Analyzerseverity1/claude-code-auto-memory | 159 | — | ~1.5k | Automated safety check: Pass | MIT |
KKKKhazix/khazix-skills
Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.
microsoft/SkillOpt
Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.
anthropics/claude-plugins-official
Finds every CLAUDE.md file in a repository, scores each against quality criteria, shows a report, then makes targeted updates after you approve.
10xChengTu/harness-engineering
Set up and improve harness engineering (AGENTS.md, docs/, lint rules, eval systems, project-level prompt engineering) for AI-agent-friendly codebases.
severity1/claude-code-auto-memory
This skill should be used when the user asks to "initialize auto-memory", "create CLAUDE.md", "set up project memory", or runs the /auto-memory:init command.
GODGOD126/self-improving-for-codex
Build or maintain a Codex-native self-improving memory loop using global AGENTS.md, a persistent memories directory, and optional nightly refinement automation.
mp-web3/claude-starter-kit
Walks through building a new Claude Code skill: asks what it should do, scaffolds it with an init script, writes SKILL.md and LEARNINGS.md and validates the result.
mp-web3/claude-starter-kit
Sets up a project for Claude Code by surveying it and writing a .claude folder with a short CLAUDE.md, a CODEBASE.md overview, module docs and optional skills and hooks.
mp-web3/claude-starter-kit
Walks a new user through a five-step first session, profile, problems, goals and initial tasks, to turn the agent into a personal assistant that remembers them.
mp-web3/claude-starter-kit
Runs new features, scripts and structural changes through explore, design, approval, implementation and verification phases, with a tool search and an explicit plan sign-off.
mp-web3/claude-starter-kit
Keeps a personal task backlog in SQLite behind a /tasks command that adds, reviews, completes and measures tasks against a list of long-term problems.
Categories
Analyzes recent sessions for corrections, preferences and implicit feedback, then routes the real learnings to the right knowledge or rules file. This is a four-phase reflection workflow run with `/reflect`.md from its own folder.
Session Reflection Learnings fits situations like: capturing corrections and preferences from the current session; reviewing several recent sessions for repeated feedback; routing learnings into rules or knowledge files.
Run `npx skills add mp-web3/claude-starter-kit --skill reflect -a claude-code`. Or copy the skill folder (skills/reflect in mp-web3/claude-starter-kit) into .claude/skills/reflect in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mp-web3/claude-starter-kit --skill reflect -a codex`. Or copy the skill folder (skills/reflect in mp-web3/claude-starter-kit) into .agents/skills/reflect in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mp-web3/claude-starter-kit --skill reflect -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/reflect, .gemini/skills/reflect, .github/skills/reflect and .opencode/skills/reflect in your project.
Going by SKILL.md and its folder, Session Reflection Learnings needs the command-line tools its instructions call (python3 and sqlite3). Our summary lists: Python 3 and the extract-learnings.py script from the starter kit; Access to the session history files. Its frontmatter pre-approves these tools: Read, Grep, Glob, Write, Edit, Bash, AskUserQuestion.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Session Reflection Learnings is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Session Reflection Learnings: Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars), SkillOpt Sleep Cycle (microsoft/SkillOpt, 18k stars), CLAUDE.md Improver (anthropics/claude-plugins-official, 37k stars) and Harness Engineering (10xChengTu/harness-engineering, 102 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mp-web3 (a GitHub user) maintains it in mp-web3/claude-starter-kit, which has 109 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on March 18, 2026.
Source: mp-web3/claude-starter-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.