Skip to main content
One repo of reusable workflows. Consumer repos write thin callers, choose Claude or Codex once, and receive workflow updates through reviewed pull requests. JacobPEvans/.github-ai ships reusable GitHub Actions workflows (on: workflow_call:). The workflow orchestration, provider routing, and rate guards live there. Prompt text comes from the pinned Prompt catalog. Consumers declare triggers and permissions.

Event-triggered workflows

These run on GitHub events. Wire one caller per workflow you want. CI failure classification and repair paths live in CI resolver.

Scheduled workflows

These run on cron, typically called with schedule: and a manual workflow_dispatch:.

How a reusable caller looks

A reusable-workflow caller is the smallest YAML that declares a trigger, sets permissions, and forwards to the upstream:
Permission shape varies per workflow. issue-resolver needs pull-requests: write, and post-merge-* needs actions: write for the re-dispatch. The canonical caller templates list the exact permission block for each.

How prompts are loaded

The reusable workflows check out the catalog at its pinned release commit and select an asset from automation/. They remove its OKF frontmatter before passing the prompt to the selected model. Local workflow YAML still owns triggers, permissions, publishing, and provider configuration.

Versioning

Shared workflow dependency pins and Renovate policy live in Dependency automation.

Authentication

The GH_ACTION_AI_AGENT=claude|codex variable selects the agent for reusable .yml workflows. Its default is claude, so existing callers keep that behavior. Set it to codex at the organization, repository, or environment level to switch every inherited workflow.
OAuth tokens are prohibited in unattended CI. A Claude Code subscription token (CLAUDE_CODE_OAUTH_TOKEN) in GitHub Actions violates the Claude Code Terms of Service. It can lead to an account ban. Reserve subscription tokens for interactive sessions. Use the standard GH_ACTION_AI_API_KEY for programmatic access.
Provider details and model configuration live in AUTHENTICATION.md.

Security boundary

  • Model job gets no privileged GitHub App token.
  • Checkout stores no credentials.
  • It returns structured output or workspace changes.
  • Publisher validates and performs GitHub writes.
Repository comments, labels, branches, commits, and pull requests produce the same results for the same input. Both agents share this boundary. Changing the selector does not change GitHub permissions.

Where to go next

Getting started

Caller examples and permissions.

Patterns

Dispatch flow and bot guards.

Authentication

Provider routing and model variables.

Prompt catalog

Versioned prompts and consumer pins.

Verification

End-to-end workflow verification.

Issue → PR pipeline on this repo

Current issue-to-PR callers.