Skip to content

About

Tool-agnostic AI coding workflow skills, lefthook guardrails, pre-handoff output gate, and mutation tests

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agent-workflow

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).

Architecture (zero custom agent adapters)

  • Shared skills (skills/): distributed natively to .agents/skills/ (Antigravity) and .claude/skills/ (Claude Code) via apm.
  • Git safety & verification hooks (templates/lefthook.yml): enforced across every agent and human terminal via lefthook (pinned in each repo's mise.toml), covering two-stage branch protection, whitespace checks, immutable-migration guards, and AI-attribution guards (commit-msg plus --no-verify / zero-diff pre-push guards), verified by 21 mutation tests in tests/test-lefthook.sh.
  • Tool pinning & unified tasks (mise.toml): identical locally and in CI.
  • Declarative guardrails (templates/claude-settings.json): native permissions.allow / permissions.deny baseline with zero custom hook scripts.
  • Optional host-level Output Gate (templates/output-gate-stop.py): opt-in pre-handoff checker for Stop hooks or CLI that inspects runnable Markdown command fences before handing destructive commands (pkill -f flag order, unfiltered lsof, git --no-verify / --force) or unconfigured gcloud snippets to humans, verified by 11 unit tests in tests/test_output_gate.py.

Setup

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,claude

To reference from a project's apm.yml, add ProjectKokage/agent-workflow under dependencies.apm.

Templates

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

Included skills

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

License

Apache License 2.0. See LICENSE.

About

Tool-agnostic AI coding workflow skills, lefthook guardrails, pre-handoff output gate, and mutation tests

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages