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.
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.
$ npx skills add severity1/claude-code-auto-memory --skill codebase-analyzer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install severity1/claude-code-auto-memory codebase-analyzer --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/severity1/claude-code-auto-memory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/codebase-analyzer .claude/skills/codebase-analyzer && 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 "codebase-analyzer" agent skill from https://github.com/severity1/claude-code-auto-memory/tree/main/skills/codebase-analyzer into .claude/skills/codebase-analyzer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-analyzer", 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/severity1/claude-code-auto-memory/tree/main/skills/codebase-analyzerType 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 severity1/claude-code-auto-memory --skill codebase-analyzer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install severity1/claude-code-auto-memory codebase-analyzer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/severity1/claude-code-auto-memory.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/codebase-analyzer .agents/skills/codebase-analyzer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "codebase-analyzer" agent skill from https://github.com/severity1/claude-code-auto-memory/tree/main/skills/codebase-analyzer into .agents/skills/codebase-analyzer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-analyzer", 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 severity1/claude-code-auto-memory --skill codebase-analyzer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install severity1/claude-code-auto-memory codebase-analyzer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/severity1/claude-code-auto-memory.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/codebase-analyzer .cursor/skills/codebase-analyzer && 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 "codebase-analyzer" agent skill from https://github.com/severity1/claude-code-auto-memory/tree/main/skills/codebase-analyzer into .cursor/skills/codebase-analyzer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-analyzer", 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/severity1/claude-code-auto-memory.git --path skills/codebase-analyzer--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 severity1/claude-code-auto-memory --skill codebase-analyzer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install severity1/claude-code-auto-memory codebase-analyzer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/severity1/claude-code-auto-memory.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/codebase-analyzer .gemini/skills/codebase-analyzer && 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 "codebase-analyzer" agent skill from https://github.com/severity1/claude-code-auto-memory/tree/main/skills/codebase-analyzer into .gemini/skills/codebase-analyzer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-analyzer", 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 severity1/claude-code-auto-memory codebase-analyzerInstalls 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 severity1/claude-code-auto-memory --skill codebase-analyzer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/severity1/claude-code-auto-memory.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/codebase-analyzer .github/skills/codebase-analyzer && 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 "codebase-analyzer" agent skill from https://github.com/severity1/claude-code-auto-memory/tree/main/skills/codebase-analyzer into .github/skills/codebase-analyzer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-analyzer", 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 severity1/claude-code-auto-memory --skill codebase-analyzer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install severity1/claude-code-auto-memory codebase-analyzer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/severity1/claude-code-auto-memory.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/codebase-analyzer .opencode/skills/codebase-analyzer && 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 "codebase-analyzer" agent skill from https://github.com/severity1/claude-code-auto-memory/tree/main/skills/codebase-analyzer into .opencode/skills/codebase-analyzer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-analyzer", 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.
codebase-analyzerThis 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.
Codebase Analyzer is an agent skill from 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. Analyzes codebase structure and generates CLAUDE.md files using the exact template format with AUTO-MANAGED markers.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files.
It sits in Agent Workflows, covering Agent instruction files and Agent memory. The repository describes itself as: Claude Code plugin that automatically maintains CLAUDE.md files. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d8254a8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
code.claude.comFrom 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.
Codebase Analyzer loads about 1.5k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 569 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 found no risky patterns in SKILL.md.
Automated 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 severity1/claude-code-auto-memory at commit d8254a8, republished under its MIT licence (© severity1). 569 words, ~1,539 tokens.
.claude/skills/codebase-analyzer/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.Analyze project structure and generate CLAUDE.md files interactively.
MANDATORY: All rules below must be followed exactly. Violations produce incorrect CLAUDE.md content.
@../shared/references/guidelines.md
If CLAUDE.md already exists, ask the user how to handle it:
Detect frameworks and build systems:
package.json - Node.js/JavaScriptpyproject.toml, setup.py - PythonCargo.toml - Rustgo.mod - GoMakefile - Make-based buildsDockerfile - Container buildsExtract build/test/lint commands from config files.
Look for framework boundaries that warrant separate CLAUDE.md files:
src/ with 10+ source fileslib/ directorypackages/* (monorepo packages)apps/* (monorepo applications)Analyze source files for conventions:
If network available, fetch from https://code.claude.com/docs/en/memory:
Use AskUserQuestion to confirm:
Read .claude/auto-memory/config.json to determine which files to generate based on memoryFiles:
memoryFiles value | Files to generate |
|---|---|
absent or ["CLAUDE.md"] | CLAUDE.md only (full content) |
["AGENTS.md"] | AGENTS.md only (full content) |
["CLAUDE.md", "AGENTS.md"] | AGENTS.md (full content) + CLAUDE.md (redirect) |
Generate full-content files using the EXACT template structure. Follow these steps precisely:
{{PLACEHOLDER}} with detected contentWhen both CLAUDE.md and AGENTS.md are configured, also generate redirect files:
CLAUDE.md using CLAUDE.redirect.md.template (static pointer, no markers)AGENTS.md: write a matching CLAUDE.md redirect alongside itCRITICAL: Use the EXACT marker format below. Do NOT use variations.
<!-- AUTO-MANAGED: section-name -->
## Section Heading
Content goes here
<!-- END AUTO-MANAGED -->For user-editable content:
<!-- MANUAL -->
## Custom Notes
Add project-specific notes here. This section is never auto-modified.
<!-- END MANUAL -->Common mistakes to avoid:
<!-- BEGIN AUTO-MANAGED: name --> - WRONG (no BEGIN prefix)<!-- END AUTO-MANAGED: name --> - WRONG (no name in closing tag)<!-- AUTO-MANAGED section-name --> - WRONG (missing colon)Generate these sections in order:
| Section Name | Heading | Required | Placeholder | Content |
|---|---|---|---|---|
project-description | ## Overview | Yes | {{DESCRIPTION}} | Project name, tagline, key features |
build-commands | ## Build & Development Commands | Yes | {{BUILD_COMMANDS}} | Build, test, lint, run commands |
architecture | ## Architecture | Yes | {{ARCHITECTURE}} | Directory tree, key files, data flow |
conventions | ## Code Conventions | Yes | {{CONVENTIONS}} | Naming, imports, formatting rules |
patterns | ## Detected Patterns | Yes | {{PATTERNS}} | AI-detected recurring code patterns |
git-insights | ## Git Insights | No | {{GIT_INSIGHTS}} | Key commits, design decisions |
best-practices | ## Best Practices | No | {{BEST_PRACTICES}} | From official Claude Code docs |
Generate these sections in order:
| Section Name | Heading | Required | Placeholder | Content |
|---|---|---|---|---|
module-description | ## Purpose | Yes | {{DESCRIPTION}} | Module purpose and responsibility |
architecture | ## Module Architecture | Yes | {{ARCHITECTURE}} | Module structure, key files |
conventions | ## Module-Specific Conventions | Yes | {{CONVENTIONS}} | Module-specific rules |
dependencies | ## Key Dependencies | Yes | {{DEPENDENCIES}} | Module dependencies |
Reference the template files for exact structure:
@templates/CLAUDE.root.md.template
@templates/CLAUDE.subtree.md.template
@templates/AGENTS.root.md.template
@templates/AGENTS.subtree.md.template
@templates/CLAUDE.redirect.md.template
Use AskUserQuestion for:
After generating files, report:
© severity1, 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 5 other files in skills/codebase-analyzer of severity1/claude-code-auto-memory.
Open the folder on GitHubat commit d8254a8
Codebase Analyzer 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 |
|---|---|---|---|---|---|---|
| Codebase Analyzer this skillseverity1/claude-code-auto-memory | 159 | — | ~1.5k | Automated safety check: Pass | 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 | |
| Self Improving For CodexGODGOD126/self-improving-for-codex | 130 | — | ~1.2k | 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.
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.
EliaAlberti/cpr-compress-preserve-resume
Writes this session's durable learnings into the project's CLAUDE.md and keeps the file short by archiving stale sections.
severity1/claude-code-auto-memory
Process file changes and update CLAUDE.md memory sections. An agent skill from severity1/claude-code-auto-memory.
Categories
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. Codebase Analyzer is an agent skill from severity1/claude-code-auto-memory.md", "set up project memory", or runs the /auto-memory:init command.
Codebase Analyzer fits situations like: asks to initialize auto-memory; create CLAUDE.md; set up project memory; runs the /auto-memory:init command.
Run `npx skills add severity1/claude-code-auto-memory --skill codebase-analyzer -a claude-code`. Or copy the skill folder (skills/codebase-analyzer in severity1/claude-code-auto-memory) into .claude/skills/codebase-analyzer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add severity1/claude-code-auto-memory --skill codebase-analyzer -a codex`. Or copy the skill folder (skills/codebase-analyzer in severity1/claude-code-auto-memory) into .agents/skills/codebase-analyzer 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 severity1/claude-code-auto-memory --skill codebase-analyzer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codebase-analyzer, .gemini/skills/codebase-analyzer, .github/skills/codebase-analyzer and .opencode/skills/codebase-analyzer in your project.
SKILL.md names no scripts, command-line tools or credentials: Codebase Analyzer is instructions for the agent only. Our summary lists: Python 3; Node.js.
SKILL.md names 1 domain. In commands or code: code.claude.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Codebase Analyzer 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.5k tokens (SKILL.md is roughly 6.2k 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 Codebase Analyzer: 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.
severity1 (a GitHub user) maintains it in severity1/claude-code-auto-memory, which has 159 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on April 18, 2026.
Source: severity1/claude-code-auto-memory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.