My Claude Code config with CLAUDE.md, skills, and subagents. Uses some functionality from https://github.com/solatis/claude-config.
  • Python 94.9%
  • Shell 5.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Joerg Ziefle 36f480abbd chore: archive unused skills, drop serena/context7 MCP references
Mirror the 2026-11-09 config audit applied on spl-vm05:

- Move the unused skills (codebase-analysis, decision-critic, doc-sync,
  incoherence, planner, problem-analysis, prompt-engineer and the nested
  api/, frontend/, python/ sets) from skills/ to skills-archive/. The
  nested ones never loaded. The sync deploys them to
  ~/.claude/skills-archive/ (not loaded), matching the live layout.
- sync-upstream.sh: skip upstream skills that are archived so an upstream
  sync does not re-add them under skills/.
- CLAUDE.md: drop the MCP Servers and Architecture Skills sections.
- agents/researcher.md: drop the serena mentions.
- settings.json (reference copy, not deployed by the sync): disable the
  context7 and code-review plugins, drop the brew/cargo/rustc/open/pbcopy/
  pbpaste and mcp__context7/mcp__serena allows and the invalid top-level
  defaultMode. Deny rules unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4EKNjKMd6bwCpS7K4jU
2026-11-09 23:28:36 +01:00
agents chore: archive unused skills, drop serena/context7 MCP references 2026-11-09 23:28:36 +01:00
docs chore: initial claude-config repository 2026-01-01 19:16:25 +01:00
output-styles feat: merge upstream content to top-level directories 2026-01-01 19:30:49 +01:00
rules refactor: optimize config with path-scoped rules 2026-01-15 12:11:45 +01:00
scripts chore: archive unused skills, drop serena/context7 MCP references 2026-11-09 23:28:36 +01:00
skills chore: archive unused skills, drop serena/context7 MCP references 2026-11-09 23:28:36 +01:00
skills-archive chore: archive unused skills, drop serena/context7 MCP references 2026-11-09 23:28:36 +01:00
upstream Merge commit '23b55411bb' as 'upstream' 2026-01-01 19:03:10 +01:00
.gitignore chore: initial claude-config repository 2026-01-01 19:16:25 +01:00
CLAUDE.md chore: archive unused skills, drop serena/context7 MCP references 2026-11-09 23:28:36 +01:00
LICENSE chore: initial claude-config repository 2026-01-01 19:16:25 +01:00
mcp-servers.json fix: unscope serena MCP from $HOME to prevent runaway indexing 2026-09-01 22:39:33 +02:00
README.md chore: archive unused skills, drop serena/context7 MCP references 2026-11-09 23:28:36 +01:00
settings.json chore: archive unused skills, drop serena/context7 MCP references 2026-11-09 23:28:36 +01:00

Claude Code Configuration

A comprehensive Claude Code configuration repository that combines dynamic upstream integration from solatis/claude-config with custom agent templates, skills, and global guidelines.

Features

  • Dynamic Upstream Integration: Integrates solatis/claude-config as a git subtree for automatic updates
  • Custom Agent Templates: Pre-configured agents for common development tasks (coder, researcher, reviewer, tester)
  • Domain-Organized Skills: Reusable skills categorized by technology domain
    • Python: Hexagonal architecture, testing patterns, Alembic migrations
    • API: FastAPI REST API patterns
    • Frontend: Next.js + TanStack Query patterns
  • Path-Scoped Rules (NEW): Language/framework conventions that auto-load based on file patterns
    • Python, TypeScript, Rust, FastAPI, Next.js
  • Optimized Global Guidelines: Minimal CLAUDE.md with universal principles only
  • Settings Template: Permissions configuration (no secrets)
  • Chezmoi Integration: Designed to work seamlessly with chezmoi dotfile management

Recent Updates (Jan 2026)

Configuration Optimization

  • 76% reduction in global CLAUDE.md size (187 → 44 lines)
  • New rules/ directory: Path-scoped language/framework conventions
  • Progressive disclosure: Rules auto-load only for relevant file types
  • Better organization: Universal (CLAUDE.md) vs language-specific (rules/) vs project-specific (project CLAUDE.md)

Rules Directory

Language and framework conventions now live in rules/ with YAML frontmatter for path scoping:

  • python.md - Auto-loads for **/*.py files
  • typescript.md - Auto-loads for **/*.ts, **/*.tsx files
  • rust.md - Auto-loads for **/*.rs files
  • fastapi.md - Auto-loads for **/adapters/api/**/*.py files
  • nextjs.md - Auto-loads for **/app/**/*.tsx files

Repository Structure

claude-config/
├── upstream/                       # solatis/claude-config (git subtree)
│   ├── agents/                     # Upstream agents (debugger, developer, etc.)
│   ├── skills/                     # Upstream skills (analyze, planner, etc.)
│   └── output-styles/              # Upstream output styles
│
├── agents/                         # Custom agent templates
│   ├── coder.md
│   ├── researcher.md
│   ├── reviewer.md
│   └── tester.md
│
├── skills/                         # Active skills (none since the 2026-11-09 audit)
├── skills-archive/                 # Archived skills, deployed to ~/.claude/skills-archive/ (not loaded)
│
├── rules/                          # Path-scoped conventions (NEW)
│   ├── python.md                   # Python 3.12+ conventions
│   ├── typescript.md               # TypeScript/JavaScript conventions
│   ├── rust.md                     # Rust and PyO3 conventions
│   ├── fastapi.md                  # FastAPI patterns
│   └── nextjs.md                   # Next.js App Router patterns
│
├── CLAUDE.md                       # Universal development guidelines (optimized)
├── settings.json.template          # Permissions configuration (no secrets)
│
├── docs/                           # Documentation
│   ├── integration-guide.md
│   ├── upstream-sync.md
│   ├── customization.md
│   └── architecture.md
│
└── scripts/                        # Utility scripts
    ├── sync-upstream.sh
    ├── install-standalone.sh
    └── validate-config.sh

MCP Server Configuration

This repository includes configurations for MCP (Model Context Protocol) servers.

Configured MCP Servers:

  • context7 - Documentation lookup server (requires CONTEXT7_API_KEY env var)
  • serena - Semantic code analysis and navigation

Setup:

MCP server API keys are stored in encrypted secrets (~/.config/zsh/secrets.zsh), and server definitions use environment variable substitution for security.

To apply MCP server configurations on a new machine:

# 1. Ensure secrets are loaded (chezmoi applies this automatically)
source ~/.config/zsh/secrets.zsh

# 2. Run the MCP setup script
~/.claude/scripts/setup-mcp-servers.sh

# 3. Verify servers are configured
claude mcp list

Adding New MCP Servers:

  1. Add API key to encrypted secrets (in your chezmoi dotfiles)
  2. Add server definition to mcp-servers.json using ${ENV_VAR} for secrets
  3. Run scripts/setup-mcp-servers.sh to apply
  4. Commit changes to this repository

Installation

If you're using chezmoi for dotfile management:

  1. Edit .chezmoiexternal.toml in your chezmoi source directory:
[".claude"]
    type = "git-repo"
    url = "ssh://[email protected]:222/jmz/claude-config.git"
    refreshPeriod = "168h"
    exact = false
    exclude = [".git/**", "docs/**", "scripts/**", ".gitignore", "LICENSE", "README.md"]
  1. Apply the configuration:
chezmoi update

This will deploy the configuration to ~/.claude/ with merged content from both upstream and custom sources.

For detailed integration instructions, see docs/integration-guide.md.

Option 2: Standalone Installation

For direct installation without chezmoi:

# Clone the repository
git clone ssh://[email protected]:222/jmz/claude-config.git ~/.claude

# Copy settings template (review and customize)
cp ~/.claude/settings.json.template ~/.claude/settings.json

# Verify installation
~/.claude/scripts/validate-config.sh

Or use the provided installation script:

# Clone and run installer
git clone ssh://[email protected]:222/jmz/claude-config.git /tmp/claude-config
cd /tmp/claude-config
./scripts/install-standalone.sh

Usage

Once installed, Claude Code will automatically have access to:

Custom Agents

Use custom agents for specific workflows:

# In Claude Code
"Use the coder agent to implement this feature"
"Use the reviewer agent to analyze this PR"

Skills

Skills activate automatically based on task context, or can be explicitly invoked:

# Automatic activation
"Add a new API endpoint for comments"  # Uses fastapi-rest-api skill

# Explicit invocation
"Following hexagonal-architecture, create a notification system"

Global Guidelines

The CLAUDE.md file provides global Python development guidelines that Claude Code references automatically.

Maintenance

Syncing Upstream Changes

To pull updates from solatis/claude-config:

cd /path/to/claude-config
./scripts/sync-upstream.sh
git push origin master

# If using chezmoi
chezmoi update

For detailed sync instructions, see docs/upstream-sync.md.

Adding Custom Skills

  1. Create skill directory in appropriate category:
mkdir -p skills/python/new-skill
  1. Create SKILL.md following the skill format (see existing skills for examples)

  2. Commit and push:

git add skills/python/new-skill/
git commit -m "feat: add new-skill for Python development"
git push origin master
  1. If using chezmoi, apply the update:
chezmoi update

For detailed customization instructions, see docs/customization.md.

Adding Custom Agents

  1. Create agent template in agents/ directory:
vim agents/my-agent.md
  1. Follow the agent template format (see existing agents for examples)

  2. Commit and push:

git add agents/my-agent.md
git commit -m "feat: add my-agent template"
git push origin master

File Deployment Mapping (Chezmoi)

When deployed via chezmoi, files are merged as follows:

Source in claude-config repo Deployed to ~/.claude/
CLAUDE.md ~/.claude/CLAUDE.md
settings.json.template ~/.claude/settings.json (managed)
agents/*.md ~/.claude/agents/*.md
skills/**/* ~/.claude/skills/**/*
skills-archive/**/* ~/.claude/skills-archive/**/* (not loaded)
upstream/agents/*.md ~/.claude/agents/*.md (merged)
upstream/skills/**/* ~/.claude/skills/**/* (merged)
upstream/output-styles/* ~/.claude/output-styles/*

Files excluded from deployment: .git/, docs/, scripts/, .gitignore, LICENSE, README.md

Documentation

Security

  • No secrets are stored in this repository in plain text
  • settings.json.template contains only permissions configuration
  • Machine-specific settings belong in settings.local.json (gitignored)
  • Runtime data (history, cache, etc.) is gitignored
  • Suitable for public sharing and version control

Contributing

This is a personal configuration repository, but feel free to:

  1. Fork and adapt for your own use
  2. Submit issues for bugs or suggestions
  3. Share your own skill/agent templates

License

MIT License - see LICENSE file for details.

Acknowledgments

Version

Last Updated: 2026-01-01 Repository: ssh://[email protected]:222/jmz/claude-config.git Branch: master