State machine agent with hooks, skills, and automated git enforcement
npx claudepluginhub anentrypoint/gm-ccNo description provided.
Share bugs, ideas, or general feedback.
The easiest way to install gm-cc is through Claude Code's plugin marketplace:
claude plugin marketplace add AnEntrypoint/gm-cc
claude plugin install -s user gm@gm-cc
This installation method is best for:
For development or project-specific customization, install gm-cc directly into your project:
cd /path/to/your/project
npm install gm-cc && npx gm install
This installation method is ideal when you need to:
The npm install gm-cc && npx gm install command performs two steps:
npm install gm-cc - Downloads the gm-cc package and stores it in your project's node_modules/ directorynpx gm install - Runs the gm installer that copies configuration files into your Claude Code plugin directoryExpected output:
$ npm install gm-cc
added 1 package in 1.2s
$ npx gm install
Installing gm-cc...
✓ Created .claude/ directory
✓ Copied agents/gm.md
✓ Copied hooks to .claude/hooks/
✓ Created .mcp.json for MCP integration
After running npx gm install, your project will have:
.claude/
├── agents/
│ └── gm.md # State machine agent rules
├── hooks/
│ ├── pre-tool-use-hook.js # Tool validation and filtering
│ ├── session-start-hook.js # Session initialization
│ ├── prompt-submit-hook.js # Prompt validation
│ ├── stop-hook.js # Session completion enforcement
│ └── stop-hook-git.js # Git state verification
└── .mcp.json # MCP server configuration
Each hook runs automatically at the appropriate session event. No manual trigger needed.
If you prefer manual file management, clone the repository and copy files directly:
# Clone the repository
git clone https://github.com/AnEntrypoint/gm-cc.git
# Copy to your Claude Code plugin directory
cp -r ./agents ~/.claude/agents
cp -r ./hooks ~/.claude/hooks
cp .mcp.json ~/.claude/.mcp.json
# Ensure you have Node.js and bun x installed
# bun x is required for hook execution
# It's bundled with Node.js 18+
which bun x
bun x --version
The .mcp.json file automatically configures:
bun x)No additional configuration needed.
Marketplace installations use the default configuration. All settings work out-of-box:
For project customization:
Customizations are isolated to your project and won't affect other installations.
Hooks run automatically once installed. To verify hooks are active:
If hooks don't activate:
# Method 1: Via Claude Code commands
claude plugin marketplace update gm-cc
claude plugin update gm@gm-cc
# Method 2: Manual update
npm install -g gm-cc@latest
# Update the package
npm update gm-cc
# Re-run the installer to update .claude/ directory
npx gm install
# Or manually copy updated files
cp -r node_modules/gm-cc/agents/* .claude/agents/
cp -r node_modules/gm-cc/hooks/* .claude/hooks/
cp node_modules/gm-cc/.mcp.json .claude/.mcp.json