Skip to content

emoPointer/claude-code-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 中文

Claude Code Configuration

Production-ready configuration for Claude Code: global instructions, multi-language coding rules, plugins, MCP integration, and a self-improvement loop.

Directory Structure

.
├── CLAUDE.md              # Global instructions
├── settings.json          # Settings (permissions, plugins, hooks, model)
├── lessons.md             # Self-correction log template (auto-loaded via hook)
├── rules/                 # Multi-language coding standards (common + python/typescript/golang)
├── mcp/                   # MCP server config (Lark-MCP only)
├── plugins/               # Plugin installation guide (19 plugins, 5 marketplaces)
├── skills/                # Custom skills (paper-reading)
└── install.sh             # One-command installer

Quick Start

git clone https://github.com/Mizoreww/claude-code-config.git
cd claude-code-config
./install.sh              # Install everything
./install.sh --dry-run    # Preview changes

Selective install:

./install.sh --rules python typescript  # Rules only
./install.sh --plugins                  # Plugins only
./install.sh --mcp                      # MCP only

Key Features

Self-Improvement Loop

  1. User corrects Claude → auto-saved to ~/.claude/lessons.md
  2. Next session → SessionStart hook auto-injects lessons into context
  3. Pattern confirmed → rule promoted to CLAUDE.md

SessionStart Hook

settings.json includes two SessionStart hooks:

  • startup: Injects lessons.md when a new session starts
  • compact: Re-injects lessons.md after context compaction

Replaces the previous approach of requiring manual Read lessons.md in CLAUDE.md (more reliable).

Layered Rules

common/       → Universal principles (always loaded)
  ↓ extended by
python/       → PEP 8, pytest, black, bandit
typescript/   → Zod, Playwright, Prettier
golang/       → gofmt, table-driven tests, gosec

Plugin-First Approach

19 plugins across 5 marketplaces. Context7, GitHub, Playwright migrated from MCP to official plugins. Only Lark-MCP remains as MCP.

Plugin Marketplace What It Does
superpowers claude-plugins-official Brainstorming, debugging, code review, git worktrees, plan writing
everything-claude-code everything-claude-code TDD, security review, database patterns, Go/Python/Spring Boot
document-skills anthropic-agent-skills PDF, DOCX, PPTX, XLSX creation and manipulation
example-skills anthropic-agent-skills Frontend design, MCP builder, canvas design, algorithmic art
claude-mem thedotmack Persistent memory with smart search, timeline, AST-aware code search
frontend-design claude-plugins-official Production-grade frontend interfaces
context7 claude-plugins-official Up-to-date library documentation lookup
code-review claude-plugins-official Confidence-based code review
github claude-plugins-official GitHub integration (issues, PRs, workflows)
playwright claude-plugins-official Browser automation, E2E testing, screenshots
feature-dev claude-plugins-official Guided feature development
code-simplifier claude-plugins-official Code simplification and refactoring
ralph-loop claude-plugins-official Session-aware AI assistant REPL
commit-commands claude-plugins-official Git commit, clean branches, commit-push-PR
fine-tuning ai-research-skills Axolotl, LLaMA-Factory, PEFT, Unsloth
post-training ai-research-skills GRPO, RLHF, DPO, SimPO
inference-serving ai-research-skills vLLM, SGLang, TensorRT-LLM, llama.cpp
distributed-training ai-research-skills DeepSpeed, FSDP, Megatron-Core, Ray Train
optimization ai-research-skills AWQ, GPTQ, GGUF, Flash Attention, bitsandbytes

See plugins/README.md for installation details.

Custom Skills

Skill Description
paper-reading Structured research paper summarization with auto-screenshot of key figures. Uses ar5iv HTML for arXiv papers, Playwright for figure capture, outputs standardized markdown (problem, method, experiments, insights).

Place custom skills in skills/<name>/SKILL.md.

Security Note

settings.json ships with bypassPermissions mode for power users. If you prefer safer defaults, change defaultMode to "default" and set skipDangerousModePermissionPrompt to false.

Customization

  • Add a language: Create rules/<lang>/ extending common rules
  • Add a skill: Place in skills/<name>/SKILL.md
  • Adapt CLAUDE.md: Customize for your shell, package manager, and project context

Acknowledgements

License

MIT

About

Production-ready Claude Code configuration with self-improvement loop, multi-language rules, MCP integrations, and custom skills

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%