phuchaitt3/claude-config
πͺMarketplaceAdd this Marketplace
/plugin marketplace add phuchaitt3/claude-configThen open /plugin in Claude Code to pick and install its plugins.
Plugins in this Marketplace1
README.md
View on GitHub βclaude-config
My Claude Code setup, shared between machines through git.
| Part | What it is | How it loads |
|---|---|---|
rules/working-rules.md | Always-on rules, kept short (hard limits, decision rights, git, model/effort, context) with a list of which skill to load when | imported by ~/.claude/CLAUDE.md in every session |
plugins/workflow/ | Plugin with the workflow:multi-chat skill (worktrees, inbox, handoff reports) and its templates, the on-demand skills workflow:pr-review, workflow:new-project, workflow:rule-change, workflow:subagents, workflow:experiment (trying a replacement for a working design: criteria first, behind a setting, then supersede or remove) and workflow:self-drive (a user-started /loop brief for one chat; moved out of the always-on rules so they load only when needed), and two hooks (hooks/hooks.json) that keep chats in sync with GitHub: github_state.py (UserPromptSubmit: when open PRs, needs-you items or merges changed since the chat last heard, it adds one line, plus the "after a merge" steps and a warning when the checked-out branch's PR is already merged; silent otherwise) and push_guard.py (PreToolUse: refuses git push to a branch whose PR is already merged). Tests: hooks/test_*.py | installed from this repo as a local marketplace. A plugin is a cached copy: after each change, bump version in .claude-plugin/plugin.json, push, and on every machine run /plugin update workflow@personal-config and restart. /plugin does not exist in the VS Code extension: there use claude.exe plugin update workflow@personal-config (step 3 below), or rely on autoUpdate (step 4), which applies a bumped version at the next restart. |
modes/<mode>.md | What each project mode means and requires (build, study-design, docs) | not auto-loaded: rules/working-rules.md tells the agent to read it when a project's mode is not build |
standards/ | Register of industry practices agents have checked (finding, source links, limits, date), one file per topic, so the next chat answers from it instead of searching the web again | not auto-loaded: rules/working-rules.md ("Industry practice") and the standard_nudge hook tell the agent to read standards/README.md before a search |
CLAUDE.user.md | The stub to copy to ~/.claude/CLAUDE.md | copied once per machine |
Project-specific rules stay in each project's own CLAUDE.md, together with its hard limits, which these rules never relax.
Set up or repair a machine: one command
After cloning this repo to ~/claude-config (step 1 below), everything else is one command, safe to run any number of times (it pulls this repo, installs or updates the workflow plugin through the Claude Code command line, and turns autoUpdate on in ~/.claude/settings.json with a backup):
powershell -NoProfile -File "$HOME\claude-config\scripts\setup-machine.ps1"
Needs git, python and Claude Code. Run it once on a machine that is behind; after that the plugin keeps the machine current by itself. The numbered steps below are what it automates (and the manual fallback). Tests: scripts/test_merge_settings.py.
Set up a machine (once)
- Clone this repo to
~/claude-config, which isC:\Users\<you>\claude-configon Windows. The import path in the stub assumes that location. - Copy
CLAUDE.user.mdto~/.claude/CLAUDE.md, or add its import line to an existing one. - In a Claude Code session:
Choose user scope. Check with/plugin marketplace add ~/claude-config /plugin install workflow@personal-config/plugin(Installed tab) and/memory, which lists the loaded instruction files. Where/pluginis not available (the VS Code extension), use the bundled command line instead:claude.exesits in%USERPROFILE%\.vscode\extensions\anthropic.claude-code-*\resources\native-binary\. Runclaude.exe plugin marketplace add %USERPROFILE%\claude-config, thenclaude.exe plugin install workflow@personal-config. To update by hand:claude.exe plugin marketplace update personal-config, thenclaude.exe plugin update workflow@personal-config, then restart. - Turn on automatic plugin updates: in
~/.claude/settings.json, underextraKnownMarketplaces>personal-config, add"autoUpdate": true(sibling ofsource). The plugin then updates itself at startup whenever itsversioninplugin.jsonis newer; a plugin change without a version bump is not picked up. The plugin'spull_config.py(SessionStart) runsgit pull --ff-onlyon~/claude-configat most every 30 minutes, silently, so the repo follows too; a machine is current after one or two restarts.
Change something
Edit here, commit, push; on the other machine, git pull. A local-path marketplace reads the plugin straight from this folder, so changes apply at the next session start or after /reload-plugins, with no version bump.