A toolkit for managing Claude Code configuration snippets and reference documentation across your development environment.
This repository contains scripts and snippets to help maintain consistent Claude Code behavior across different directories and manage a centralized reference notebook for AI-generated documentation.
AI-Developer-Notebook/
├── README.md # This file
├── setup.sh # Master setup script (runs all)
├── snippets/ # Configuration snippets
│ └── for-main-claude.md # Snippet to inject into ~/CLAUDE.md
├── scripts/ # Individual automation scripts
│ ├── inject-claude-snippet.sh # Injects snippet into ~/CLAUDE.md
│ └── setup-notebook.sh # Sets up reference notebook
└── claude-md/ # Template CLAUDE.md files
└── notebook-claude.md # CLAUDE.md for reference notebook
Injects the content from snippets/for-main-claude.md into ~/CLAUDE.md.
Usage:
./scripts/inject-claude-snippet.shWhat it does:
- Checks if the snippet section already exists in ~/CLAUDE.md
- If not present, appends the snippet to ~/CLAUDE.md
- If already present, updates the existing section
- Creates ~/CLAUDE.md if it doesn't exist
Sets up the reference notebook directory structure for Obsidian.
Usage:
./scripts/setup-notebook.shWhat it does:
- Creates
/home/daniel/obsidian-notebooks/notes-from-aidirectory - Initializes it as a git repository (if not already)
- Creates a GitHub remote repository (if requested)
- Populates CLAUDE.md in the notebook directory
- Creates basic Obsidian vault structure
Master setup script located at the repository root that runs all setup operations.
Usage:
./setup.shWhat it does:
- Runs
inject-claude-snippet.sh - Runs
setup-notebook.sh - Provides status updates for each operation
-
Clone this repository:
cd ~/repos/github git clone <repository-url> AI-Developer-Notebook cd AI-Developer-Notebook
-
Run the setup script:
./setup.sh
Run ./setup.sh from the repository root to configure everything at once.
After modifying snippets/for-main-claude.md, run:
./scripts/inject-claude-snippet.shIf you need to recreate or update the notebook structure:
./scripts/setup-notebook.shThis snippet provides instructions to Claude Code about managing the reference notebook located in /home/daniel/obsidian-notebooks/notes-from-ai. It's injected into ~/CLAUDE.md so Claude knows where to store reference documentation when working from the home directory.
The reference notebook is an Obsidian vault located at:
/home/daniel/obsidian-notebooks/notes-from-ai
This is where Claude Code will store documentation, code examples, and other reference materials when you explicitly request it during development sessions.
- Edit files in
snippets/directory - Run the corresponding injection script
- Commit changes to this repository
All scripts support git operations and can automatically commit changes. The notebook directory can optionally be version-controlled with its own GitHub repository.
- Bash shell
- Git
- GitHub CLI (
gh) - for creating remote repositories - Obsidian (optional, for viewing the reference notebook)
This is a personal toolkit. Use and modify as needed.