PactKit

This page covers the pip install deployment. If you installed via the Claude Code Plugin, all components are deployed automatically and pactkit.yaml is not used.

Deployed Files

pactkit init deploys the following to ~/.claude/:

PathContents
CLAUDE.mdConstitution root (references 6 rule modules)
rules/01-core-protocol.mdCore behavioral rules
rules/02-hierarchy-of-truth.mdSpec > Tests > Code
rules/03-file-atlas.mdFile location reference
rules/04-routing-table.mdCommand routing table
rules/05-workflow-conventions.mdGit/PR conventions
rules/06-mcp-integration.mdMCP server integration
agents/*.md9 agent definitions
commands/*.md13 command playbooks
skills/*/3 skill tools with scripts

Constitution Rules

The 6 rule modules form the "constitution" that governs agent behavior:

ModulePurpose
Core ProtocolThink-hard mode, atomic tools preference, Visual First, strict TDD, output conventions
Hierarchy of TruthSpec > Tests > Code precedence, conflict resolution rules
File AtlasStandard file locations and their purposes
Routing TableMaps commands to agents and playbooks
Workflow ConventionsConventional Commits, branch naming, PR conventions
MCP IntegrationConditional MCP server usage by PDCA phase

Language Profiles

PactKit auto-detects the project stack and configures the appropriate test runner:

LanguageTest RunnerTest DirPackage File
Pythonpytesttests/pyproject.toml
Node.jsnpx jest__tests__/package.json
Gogo test ./...*_test.gogo.mod
Javamvn testsrc/test/java/pom.xml

Detection is automatic based on file extensions found in the project.

Idempotent Updates

pactkit update

Safe to re-run at any time. Re-deploys all managed files while preserving your custom rules (any files without the 01- through 06- prefixes in the rules directory).

Preview

Preview the deployment without modifying ~/.claude/:

pactkit init -t /tmp/preview
ls /tmp/preview/

On this page