compliancegate
v0.1.1
Published
Governance gap layer for AI-assisted code — pre-commit and pre-push compliance gates with local audit retention.
Maintainers
Readme
compliancegate (npm)
Node installer for ComplianceGate — hooks, rule packs, LLM routing, and agent skills.
Site: compliancegate.dev · GitHub: tedrubin80/compliancegate · npm: compliancegate
What it does
| Command | Purpose |
|---------|---------|
| npx compliancegate install | venv + pip + hooks + config + project agent skill |
| npx compliancegate check | Verify hooks, venv, CLI |
| npx compliancegate skills install | Cursor / Claude agent skills |
| npx compliancegate run … | Passthrough to Python CLI |
Requirements
- Node.js 18+
- Python 3.10+
- A git repository (target project)
Install into your repo
cd /path/to/your/project
npx compliancegate installWith options:
npx compliancegate install --mode sqlite_markdown --packs base,pii
npx compliancegate install --repo . --mode markdown
npx compliancegate install --langchain # two-stage LLM review depsThis also copies the compliancegate agent skill to .cursor/skills/compliancegate/.
Verify
npx compliancegate checkAgent skills
npx compliancegate skills install # compliancegate → ~/.cursor/skills/
npx compliancegate skills install --all # Cursor + Claude
npx compliancegate skills install --all-skills # + compliance-review standalone
npx compliancegate skills install --project # .cursor/skills/ in current repo
npx compliancegate skills check| Skill | Use when |
|-------|----------|
| compliancegate | Repo has CG hooks — invoke CLI, interpret findings |
| compliance-review | Standalone in-chat review — no CG install required |
Run the Python CLI via npx
npx compliancegate run status
npx compliancegate run rules list
npx compliancegate run llm route
npx compliancegate run watchOr use the venv directly:
.venv/bin/compliancegate watchLLM routing (after install)
Configure config.yaml in your repo:
llm:
provider: openrouter
api_key_env: OPENROUTER_API_KEY
model: anthropic/claude-3.5-sonnet
langchain:
enabled: true # use --langchain on install, or: pip install 'compliancegate[langchain]'npx compliancegate run llm testLocal development
export CG_INSTALL_SOURCE=/var/www/compliance
node bin/compliancegate.js install --repo /path/to/test-repoSync skills before npm publish:
npm run sync-skillsPublish (maintainers)
cd npm
npm run sync-skills
npm login
npm publish --access publicprepublishOnly runs sync-skills automatically.
License
MIT
