Shared APM skill package, Git guardrail templates, pre-handoff Output Gate, and mutation tests for tool-agnostic AI coding workflows (used with Claude Code and Antigravity across the Kokage and Minori repositories).
- Shared skills (
skills/): distributed natively to.agents/skills/(Antigravity) and.claude/skills/(Claude Code) viaapm. - Git safety & verification hooks (
templates/lefthook.yml): enforced across every agent and human terminal vialefthook(pinned in each repo'smise.toml), covering two-stage branch protection, whitespace checks, immutable-migration guards, and AI-attribution guards (commit-msgplus--no-verify/ zero-diffpre-pushguards), verified by 21 mutation tests intests/test-lefthook.sh. - Tool pinning & unified tasks (
mise.toml): identical locally and in CI. - Declarative guardrails (
templates/claude-settings.json): nativepermissions.allow/permissions.denybaseline with zero custom hook scripts. - Optional host-level Output Gate (
templates/output-gate-stop.py): opt-in pre-handoff checker forStophooks or CLI that inspects runnable Markdown command fences before handing destructive commands (pkill -fflag order, unfilteredlsof,git --no-verify/--force) or unconfiguredgcloudsnippets to humans, verified by 11 unit tests intests/test_output_gate.py.
git clone https://github.com/ProjectKokage/agent-workflow.git
cd agent-workflow
mise trust && mise install
mise run test
# Or run the test suites directly:
bash tests/test-lefthook.sh
python3 -B -m unittest discover -s tests -p 'test_*.py' -v
# Install skills globally for Claude Code + Antigravity CLI:
apm install --global ./ -t antigravity,claudeTo reference from a project's apm.yml, add ProjectKokage/agent-workflow under dependencies.apm.
| File | Purpose |
|---|---|
templates/lefthook.yml |
Drop-in pre-commit, commit-msg, and zero-diff-safe pre-push guardrails |
templates/output-gate-stop.py |
Optional Stop-hook / CLI checker for runnable Markdown command fences |
templates/claude-settings.json |
Reference declarative permissions.allow / permissions.deny ruleset |
| Skill | Purpose |
|---|---|
pr-review-contract |
Fresh-context contract-gated audit of invariants, docs sync, learner/website copy rules, and cross-repo agreements |
pr-review-adversarial |
Fresh-context proof-gated audit that proves runtime breakage, concurrency/idempotency bugs, and silent test skips while dropping unproven speculation |
worktree-flow |
Fresh origin/main worktree creation, non-codex* branch naming, and safe pruning |
cross-repo-impact |
Cross-repo dependency matrix across kokage, kokage-cloud, kokage.cloud, kokage_website, and minori |
Apache License 2.0. See LICENSE.