Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

my-claude-code-setup

> AI 编程
Open source

Shared starter template configuration and CLAUDE.md memory bank system for Claude Code

2.5K stars0 likes1 views
WebsiteGitHub

About

Shared starter template configuration and CLAUDE.md memory bank system for Claude Code

May 4, 2026 — CLAUDE.md template updated. The CLAUDE.md template has been modernized with 3 new variants (CLAUDE-template-1.md, CLAUDE-template-2.md, CLAUDE-template-3.md) following official Anthropic best practices — including dual-memory architecture, progressive disclosure, and standalone behavioral rules. Existing users: use CLAUDE-migrate-to-new-template.md as an AI prompt to migrate your current CLAUDE.md to any of the new templates while preserving all your project-specific content. See the CLAUDE.md Templates section for details.

  • My AI journey Substack to follow me in more indepth AI adventures - https://ai.georgeliu.com
  • Threads - https://www.threads.com/@george_sl_liu
  • BlueSky - https://bsky.app/profile/georgesl.bsky.social

My Claude Code Project's Starter Settings

Alternate Read Me Guides

The beauty of using AI is that I can get AI to generate alternate Read Me guides using different formats and styles to suit different readers and learners. So I asked Claude Code to generate alternate Read Me guides in different styles - pick one that suits you best or read all of them to get a better understanding of how to use this project.

  • README.md - Original written version I did myself below
  • README-v2.md - Progressive Disclosure Guide (Beginner → Intermediate → Advanced sections)
  • README-v3.md - Task-Based Guide ("I want to..." navigation for goal-oriented users)
  • README-v4.md - Technical Reference Manual (Chapter-based, dense reference format)

Overview

My Claude Code project's starter settings and Claude Code hooks and slash commands are provided in this repository for users to try out. The CLAUDE.md is setup as set of memory bank files to better retain context over many chat sessions. The repo now includes 3 CLAUDE.md templates following official Anthropic best practices with progressive disclosure, dual-memory architecture, and a migration guide for existing users. Be sure to read the official Claude Code docs first at https://docs.anthropic.com/en/docs/claude-code/overview and sign up for a paid Claude AI account to use Claude Code. You can pay for Claude Pro $20/month, Claude Max $100/month or Claude Max $200/month. The paid Claude tier plans will include varying quotas for usage and rate limits outlined here. You can also use Claude Code with Z.AI to get higher token usage quotas and get access to Z.AI GLM-4.7 LLM models within Claude Code. Use Z.AI invite code for additional 10% discount which can stack with current 50-60% yearly discounts.

  1. Copy the files in this Github repo to your project directory (where you intended codebase will be).
  2. Modify the template files and CLAUDE.mdto your liking. .claude/settings.jsonneeds to install Terminal-Notifier for macOS https://github.com/centminmod/terminal-notifier-setup. If you're not using macOS, you can remove.claude/settings.json`.
  3. After launching Claude Code for the first time within your project directory, run /init so that Claude Code analyses your code base and then populates your memory bank system files as per CLAUDE.md` instructions.
  4. Optional step highly recommended: Install Visual Studio Code (beginners YouTube video guide and here) and Claude Code VSC Extension.
  5. Optional step highly recommended: Sign up for Github.com account and install Git for Visual Studio Code. Checkout YouTube guides here and here.
  6. CLAUDE.md updated to instruct models to use faster tools so for macOS: brew install ripgrep fd jq
  7. Optional step to setup Claude Code, Codex GPT-5, Gemini CLI, OpenCode, Vercel CLI, Cloudflare Wrangler, Amazon AWS CLI, all in a single isolated Visual Studio Code dev container running Debian 12. Allowing you to run YOLO modes for Claude Code with dangerously_skip_permissions enabled and Codex CLI with sandbox_mode = danger-full-access etc.
  8. Claude Code via Claude Desktop apps use Git Worktrees. You may need to create a .worktreeinclude file as outlined here.
  9. If you use Cloudflare and ClerkOS platforms in your apps, you can keep either CLAUDE-cloudflare.md or CLAUDE-cloudflare-mini.md supplementary reference docs and update CLAUDE.md referencing either file to help AI understand Cloudflare and ClerkOS platforum documentation and products. Edit documentation templates as needed i.e. if you do not use ClerkOS platform, you can remove those sections.
  10. If you use Convex database in your apps, you can use CLAUDE-convex.md supplementary reference docs for building Next.js and React apps with Convex backend deployed on Cloudflare Pages.
  11. Useful read Advent of Claude: 31 Days of Claude Code by Ado Kukic from Anthropic.
  12. Useful Claude Code with Claude Opus 4.5 YouTube video by Alex Finn and Claude Code YouTube video by Matt Maher.
  13. Configure Claude Code with Z.AI to get higher token usage quotas and get access to Z.AI GLM-4.7 LLM models within Claude Code.
  14. For folks intending to use Claude LLM models with OpenClaw, read this first for security, deployment and cost optimizations https://github.com/centminmod/explain-openclaw.

CLAUDE.md Memory Bank system

CLAUDE.md uses a memory bank system of files for Claude Code to better retain context over many chat sessions. Example of Claude Code thinking output when I ask it to update memory bank after a successful task completion and git commit:

…

CLAUDE.md Templates

This repo provides 3 modernized CLAUDE.md templates following official Anthropic best practices:

Template Lines Philosophy Best For
CLAUDE-template-1.md ~101 Compact self-contained + memory resilience Quick starts, small projects
CLAUDE-template-2.md ~153 Memory bank headline + dual memory Existing memory bank users
CLAUDE-template-3.md ~105 Progressive disclosure native Teams, max context efficiency

The current CLAUDE.md uses the Template 3 format. All templates include:

  • Dual-memory architecture (git-shared CLAUDE-*.md + machine-local auto memory for resilience)
  • Progressive disclosure (memory bank files read on-demand, not auto-loaded)
  • Standalone behavioral rules (no dependency on ~/.claude/CLAUDE.md)

Migrating an existing CLAUDE.md? See CLAUDE-migrate-to-new-template.md — paste it as a prompt and Claude Code will migrate your content to your chosen template format.

Tip: HTML comments (``) in CLAUDE.md are stripped from context at runtime and cost zero tokens. The templates use them for guidance notes — you can add your own without impacting Claude's context window.

Companion rules file: Template 3 requires .claude/rules/core-rules.md for behavioral rules. Templates 1 and 2 have rules inline but can optionally use it.

MCP Servers

I also install the following MCP servers (install commands):

  • Gemini CLI MCP
  • Cloudflare Documentation MCP
  • Context 7 MCP
  • Chrome Devtools MCP
  • Notion MCP
  • Claude Code Usage Metrics MCP

Claude Code Plugin Marketplace

Browser and install Claude Code plugins from official marketplace https://code.claude.com/docs/en/discover-plugins.

bash
/plugin install plugin-name@claude-plugins-official

To update official Claude Code plugin marketplace:

bash
/plugin marketplace update claude-plugins-official

Install code simplifier plugin.

Agent that simplifies and refines code for clarity, consistency, and maintainability while preserving functionality. Focuses on recently modified code.

bash
/plugin install code-simplifier

Install frontend design plugin.

Create distinctive, production-grade frontend interfaces with high design quality. Generates creative, polished code that avoids generic AI aesthetics.

bash
/plugin install frontend-design@claude-code-plugins

Install feature dev plugin.

The Feature Development Plugin provides a systematic 7-phase approach to building new features. Instead of jumping straight into code, it guides you through understanding the codebase, asking clarifying questions, designing architecture, and ensuring quality—resulting in better-designed features that integrate seamlessly with your existing code.

bash
/plugin install feature-dev@claude-code-plugins

Install Ralph Wiggum plugin. Details https://paddo.dev/blog/ralph-wiggum-autonomous-loops/. Update: currently seems broken on some systems.

  • https://github.com/anthropics/claude-code/issues/16398
  • https://github.com/anthropics/claude-code/issues/16389

Interactive self-referential AI loops for iterative development. Claude works on the same task repeatedly, seeing its previous work, until completion.

bash
/plugin install ralph-wiggum@claude-code-plugins

How to use Ralph Wiggum plugin YouTube by Greg Isenberg and Ryan Carson https://www.youtube.com/watch?v=RpvQH0r0ecM and GitHub repo https://github.com/snarktank/ralph.

Claude Code 3rd Party Marketplaces

Claude Code Safety Net plugin https://github.com/kenryu42/claude-code-safety-net to prevent destructive commands being run by Claude Code i.e. https://www.reddit.com/r/ClaudeAI/comments/1pgxckk/claude_cli_deleted_my_entire_home_directory_wiped/

A Claude Code plugin that acts as a safety net, catching destructive git and filesystem commands before they execute.

bash
/plugin marketplace add kenryu42/cc-marketplace
/plugin install safety-net@cc-marketplace

Z.AI usage query plugin for querying Z.AI usage statistics.

Query your current quota and usage statistics for the GLM Coding Plan directly within Claude Code.

bash
/plugin marketplace add zai/zai-coding-plugins
/plugin install glm-plan-usage@zai-coding-plugins

Cloudflare Skills marketplace for building applications on Cloudflare's platform, Workers, and the Agents SDK.

Collection of Age

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonclaudeclaude-aiclaude-codeclaudecode-config

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.