GitHub Agentic Workflows (gh-aw) is a GitHub CLI extension that compiles markdown workflows into GitHub Actions.
- gh-aw is the
gh awCLI extension. - copilot is a separate CLI used as one possible runtime engine.
- Use
gh awcommands for workflow authoring/compilation (gh aw compile,gh aw run,gh aw audit).
To keep first-turn context small, only these repository root instruction files should be considered ambient:
| File | Purpose |
|---|---|
AGENTS.md |
Minimal global operating rules and routing |
SKILL.md |
Short repository capability summary |
Everything else should be loaded lazily through skills only when needed.
- If you changed files, use
report_progressto commit and push. - Before
report_progress, runmake agent-report-progressand ensure it passes. - After Go changes, run
make fmt. - After workflow markdown changes (
.mdunder.github/workflows/), runmake recompile. - Do not add
.lock.ymlfiles to.gitignore.
Workflows that declare a source: frontmatter entry (for example source: githubnext/agentic-ops@<ref>) are provenance-managed from an upstream bundle.
- Treat those workflow source files (for example
.github/workflows/agentic-token-audit.mdand.github/workflows/agentic-token-optimizer.md) as read-only in this repository. - Do not manually edit their generated
.lock.ymlfiles. - To change these workflows, use the approved update path:
- run
gh aw updateto refresh from source, and/or - update the pinned source/version (
source: ...@...), and/or - make the change upstream first, then pull it in via
gh aw update.
- run
Use skills only when the task requires specialized guidance. Do not pre-load every skill.
- Workflow create/update/debug/upgrade tasks →
.github/skills/agentic-workflows/SKILL.md - Core engineering conventions, validation flow, and command playbooks →
.github/skills/developer/SKILL.md - Error handling design/patterns →
.github/skills/error-recovery-patterns/SKILL.md - GitHub MCP usage patterns →
.github/skills/github-mcp-server/SKILL.md - Query helpers for issues/PRs/workflows/discussions/labels → matching
.github/skills/github-*-query/SKILL.md - Doc-writing conventions →
.github/skills/documentation/SKILL.md - Reviewing or writing
git/gh/remote operations against checkouts (per-checkout credentials, sparse/shallow monorepos, safe-outputs MCP runs without credentials) →.github/skills/checkout-credential-review/SKILL.md
This file is loaded at first invocation and affects every task. Keep it concise and move detailed or domain-specific guidance into skills so that context is fetched only when relevant.