Spec-Driven Agentic DevOps

Code by Contract

Agree on specs before writing code. Let agents execute.
PactKit compiles workflows, roles, and rules into executable constitutions for AI coding assistants.

$pip install pactkit
9 Agents|13 Commands|Full PDCA Lifecycle|MIT License

Why PactKit?

AI coding assistants are powerful but unpredictable without structure. PactKit adds a spec-driven governance layer.

Spec is the Law
Specifications are the single source of truth. Spec > Tests > Code. When conflicts arise, Spec wins. Always.
Multi-Agent Ensemble
9 specialized agents collaborate with constrained tools and focused responsibilities — from Architect to QA.
Full PDCA Lifecycle
Plan, Act, Check, Done — with quality gates at every stage. Or run the full cycle in one command with /project-sprint.
Safe by Design
TDD-first development, safe regression testing, and pre-existing test protection. Agents can't break what already works.

PDCA+ Workflow

12 commands covering the full software development lifecycle.

CommandAgentWhat Happens
/project-planSystem ArchitectCodebase scan, Spec generation, Board entry
/project-actSenior DeveloperVisual scan, TDD loop, Regression check
/project-checkQA + Security6-phase deep audit (Security/Quality/Spec)
/project-doneRepo MaintainerSafe regression gate, Archive, Conventional commit
/project-traceCode ExplorerCall graph tracing, Sequence diagram
/project-drawVisual ArchitectGenerate Draw.io XML architecture diagrams
/project-doctorSystem MedicConfiguration drift detection, Health report
/project-reviewQA EngineerPR review with SOLID/Security/Quality checklists
/project-sprintTeam LeadOne-command automated PDCA orchestration
/project-hotfixSenior DeveloperFast-track fix bypassing PDCA
/project-releaseRepo MaintainerVersion bump, Archive, Git tag, Changelog
/project-designProduct DesignerPRD generation, Story decomposition, Board setup

Agent Ensemble

9 specialized agents, each with constrained tools and focused responsibilities.

System Architect
Architecture designMaintain Intent Graph, write Specs
Senior Developer
Full-stack developmentTDD loop, call chain analysis, hotfix
QA Engineer
Quality gatesDeep check (P0-P3), PR review
Security Auditor
Security auditOWASP scanning, threat modeling
Repo Maintainer
Repository opsCleanup, archiving, Git conventions, releases
System Medic
System diagnosticsConfiguration drift repair
Visual Architect
Architecture visualizationDraw.io XML generation
Code Explorer
Code tracingCall graph + sequence diagram
Product Designer
Product designPRD, story decomposition, board init

Quick Start

Three steps to spec-driven development.

1

Install

pip install pactkit
2

Deploy

# Deploy 13 commands + 9 agents + 3 skills
pactkit init
3

Use in Claude Code

/project-plan "Add user authentication"
/project-act STORY-001
/project-check
/project-done