Claude Code Mastery: Open-source config system adds persistent memory and curated skills to Claude Code CLI

What Claude Code Mastery does
Claude Code Mastery is an open-source configuration system designed to address persistent issues with Claude Code CLI. It solves four main problems: sessions starting from zero with no memory of previous conversations, auto-compact destroying critical context, lack of best practice enforcement, and manual setup requirements for every project.
Core features
- Perpetual Memory: A 6-file Memory Bank per project (via MCP) that persists across sessions and survives compaction. Claude reads all files at startup and writes updates after every task, preserving project context, architectural decisions, tech stack details, and progress.
- Smart Hooks (6 lifecycle events): SessionStart restores context automatically, PreCompact saves everything before compaction, PreToolUse blocks dangerous commands (rm -rf, force push), and UserPromptSubmit reminds about skills and Memory Bank on every message.
- 26+ Curated Skills from 5 marketplaces: Superpowers (TDD, debugging, planning, code review, parallel agents), Trail of Bits (security analysis, differential review, supply chain audit), Context Engineering Kit (spec-driven dev, kaizen, reflexion), Shield (automated pentesting, SAST, secrets scanning), plus 3 custom skills (architect-review, context-guardian, production-audit).
- Zero-Config Launcher: Type
claudein any project directory. Memory Bank, .gitignore, session logs, and diagnostics are set up automatically on first run. - Cross-Platform: Supports macOS (zsh), Linux (bash), and Windows (PowerShell) with one installer.
- Customizable: Interactive installer, language selection (en/pt-BR/es), project presets (Node.js, Python, PHP, monorepo), and selective plugin installation.
Testing and installation
The system includes 103 static tests plus 138 Docker integration tests (Ubuntu/Bash, Ubuntu/Zsh, Alpine). It achieved a Shield security score of 100/100 and uses GitHub Actions CI on every push.
Install with:
curl -fsSL https://raw.githubusercontent.com/alissonlinneker/claude-code-mastery/main/install.sh | bashThe repository is at github.com/alissonlinneker/claude-code-mastery and is MIT licensed.
📖 Read the full source: r/ClaudeAI
👀 See Also

Customizing Claude AI for Improved Feedback
Adjust Claude AI's settings to avoid excessive agreement and push for more critical thinking and practical feedback.

LLMock: HTTP-based mocking server for deterministic LLM testing across processes
LLMock is a real HTTP server that mocks OpenAI, Claude, and Gemini APIs, allowing developers to run deterministic tests across multiple processes without hitting real APIs. It supports SSE streaming, tool calls, predicate routing, and request journaling with zero dependencies.

Kanwas: Open-source shared context board for teams and AI agents
Kanwas is an open-source multiplayer workspace where teams and AI agents share documents, evidence, and decisions on a canvas with live streaming tool calls. Self-hosted via Docker, it's git-backed with Yjs and BlockNote.

Lean Context: Claude Code Plugin Converts Verbose Docs to Agent-Optimized Files
A free, open-source Claude Code plugin called Lean Context scans project documentation and removes content AI agents can discover through grepping, keeping only essential non-obvious commands, gotchas, and environment quirks. In a .NET e-commerce project test, it reduced 8 documents totaling 1,263 lines to just 23 lines.