A CLI tool to manage global Claude Code memories and skills across all your projects.
Problem: Claude Code stores memories per-project. When you start a new project, your preferences (commit style, package manager, coding conventions) don't carry over. You have to re-teach Claude every time.
Solution: claude-prefs (alias: ccp) maintains a central store of global memories and a saved skills list. Initialize any project in one command with an interactive picker to choose what to include. It also works automatically with Claude Code - after install, Claude Code can query and manage your memories and skills by name without any manual steps.
Claude Code must be installed:
npm install -g @anthropic-ai/claude-codeOne-liner:
bash <(curl -fsSL https://raw.githubusercontent.com/pccly/claude-prefs-cli/main/install.sh)This will:
- Check that Claude Code is installed
- Clone the repo to
~/.claude/claude-prefs-cli/ - Symlink
claude-prefsandccpalias to~/.claude/bin/ - Add
~/.claude/binto your PATH - Add
Bash(claude-prefs *)andBash(ccp *)permissions to Claude Code settings - Offer to run setup (loads defaults + initializes current project)
All commands work with both claude-prefs and ccp.
# Pick default memories to add to your global store
ccp add
# Pick skills to install from the saved list
ccp skills add
# Start a project - picker for which memories and skills to include
cd ~/my-project
ccp initEach command shows a picker so you choose exactly what to include. Claude Code will use them automatically.
# Import existing memories from all projects into the global store
ccp import all
# Pick which memories and skills to include in a project
cd ~/my-project
ccp initRun ccp help for the full list.
| Command | Description |
|---|---|
list [here] |
List global memories, or current project's |
status |
Show sync status across all projects |
add [name...] |
Pick default memories to add, or add by name |
remove [here] <name> |
Remove a memory from global or current project |
init [dir] |
Initialize a project with memories + skills (per-project) |
sync [all|here] |
Sync global memories to projects |
import [here|all] |
Import memories from project(s) to global |
skills list [here] |
List saved skills, or current project's |
skills install [name] |
Download all saved, or search and add by name |
skills add [name...] [-y] |
Add skills by name, or pick from saved list |
skills remove [name] |
Remove a skill from global list (picker) |
skills remove here [name] |
Unlink skills from current project (picker) |
defaults list |
Preview bundled default memories and skills |
defaults load |
Load bundled defaults into global store |
setup |
Load defaults into global store |
update |
Update claude-prefs to the latest version |
All interactive commands support -y / --yes to skip the picker and select everything.
After install, ccp adds a reference to ~/.claude/CLAUDE.md so Claude Code knows about it in every project. Claude Code can query your memories and skills, then add exactly what's needed - no picker required.
Example - Claude Code checks what's available and adds specific items:
ccp defaults list
ccp list
ccp add feedback_no_em_dash feedback_use_pnpm
ccp skills add conventional-commit api-design
ccp init -yExample - Claude Code sets up a new project:
ccp skills list
ccp skills add typescript-advanced-types nodejs-backend-patterns
ccp init -yAll commands have non-interactive forms that work without a TTY, so Claude Code can call them directly.
How it works: Running ccp setup or the installer writes a reference block to ~/.claude/CLAUDE.md with all available commands. This is loaded into every Claude Code conversation automatically, so Claude Code knows how to use ccp without being told.
MIT
This repo now also includes a native macOS prototype in macos-app/README.md.
It gives you a first desktop control center for:
- memories from bundled defaults and
~/.claude/global-memory - saved and installed skills from
~/.claude,~/.codex, and~/.agents - plugin bundles from shared plugin directories
Run it locally with:
cd macos-app
swift runFull project notes live in the CCLY Obsidian vault at ~/Nextcloud/CCLY/Projects/claude-prefs-cli/:
- Hub:
claude-prefs-cli.md— purpose, install, command reference, architecture, status. - Guide:
Guide.md— workflow walkthroughs (importing, init, skills, sync, defaults, memory file format, updating, tips).
Architecture, sync semantics, and detailed workflow walkthroughs live in the vault — this README sticks to install + quick-start + command summary.