Learning resourcesReviewed · GitHub

Creating GitHub Agentic Workflows

Creating GitHub Agentic Workflows is a GitHub guide for developers and repository maintainers who want AI automation, but using it requires AI authentication and a compiled file alongside each workflow’s instructions. It explains Markdown workflow definitions, GitHub Actions triggers, permissions, permitted write operations, organization billing and workflow reuse.

Researched 26 Nov 2026

In short.

Creating GitHub Agentic Workflows is a practical GitHub guide for developers and maintainers automating repository work with AI, but setup includes engine credentials and two workflow files that must stay in sync. It describes writing Markdown instructions with YAML configuration, compiling a .lock.yml file, committing both files and running through GitHub Actions. Its strongest concrete example is a scheduled issue-activity report. The page explains authentication and billing routes but gives no prices, license terms or measured execution results.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises the complete documentation page captured as selected-page.txt at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows], including prerequisites, authentication and billing guidance, creation methods, configuration fields, the weekly-report example, updating and reuse restrictions. Linked pages, external repositories and image contents were not assessed. No commands or workflows were executed, no generated output was verified, and costs, licensing and runtime guarantees remain unestablished where the page supplies no evidence.

The overview

Resource identity

This is GitHub’s documentation article “Creating GitHub Agentic Workflows,” available at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows]. It teaches how to create, update and reuse repository automations through the GitHub Agentic Workflows extension for GitHub CLI, invoked as gh aw.

The resource is a guide to the feature. Its scope includes configuration, authentication, authoring methods, compilation, execution triggers and importing existing workflows.

Practical assessment

The guide is useful when repository work involves interpreting information and producing a GitHub artifact, such as summarizing issue activity into a new issue. It connects natural-language task instructions to concrete configuration for schedules, repository access and allowed outputs.

It provides an actionable starting path and explains how changes reach the executable workflow. It does not establish output accuracy, execution reliability, time savings or suitability for unattended production use. Nothing was executed for this report.

Intended users

The main readers are developers and maintainers with write access to a GitHub repository and permission to use GitHub Actions. The recommended authoring route suits people using a CLI coding agent or VS Code.

Beginners receive a guided authoring approach, but still need to authenticate the CLI, configure AI credentials and review workflow files. Experienced developers get configuration fields, compilation commands and reuse mechanics. Organization administrators may need to enable Copilot billing policies before maintainers can use the organization-billing route.

Documented capabilities

The guide covers custom AI-powered workflows triggered through GitHub Actions events or the GitHub CLI. The documented configuration supports permitted write operations such as creating issues, adding comments and creating pull requests. Copilot is the default AI engine; Claude, Codex and Gemini are also listed.

It also covers importing workflows from accessible external repositories. The example command is gh aw add-wizard githubnext/agentics/daily-repo-status. Non-interactive imports use gh aw add, with optional version pinning. Imported definitions receive a source: field so gh aw update can retrieve upstream changes.

Using it

Requirements

The stated prerequisites are an AI account for GitHub Copilot, Anthropic Claude, OpenAI Codex or Google Gemini; repository write access; GitHub Actions enabled; an authenticated GitHub CLI installation at version 2.0.0 or later; and the GitHub Agentic Workflows CLI extension.

The built-in GITHUB_TOKEN authentication route applies specifically to Copilot in organization-owned repositories with a GitHub Copilot plan and the required organization policy enabled. Personal repositories and third-party AI engines use a repository secret holding the appropriate personal access token or API key.

How workflows work

A workflow starts as a Markdown file in .github/workflows/. YAML frontmatter defines configuration, while the body gives the AI agent natural-language instructions. Compilation produces a .lock.yml file; both files must be committed before the workflow runs through GitHub Actions.

The on field uses GitHub Actions trigger syntax. The permissions field defines repository access and defaults to read-all. The safe-outputs field specifies allowed write operations, such as create-issue, add-comment or create-pull-request. The engine field chooses the AI engine and defaults to copilot. The page describes these configuration roles without detailing their enforcement architecture.

Setup and maintenance

The documented CLI setup uses gh auth login --scopes repo,workflow and gh extension install github/gh-aw. With GitHub CLI 2.90.0 or later, running a gh aw command prompts installation if the extension is missing. Running gh aw init adds workflow-authoring skills, instructions and a custom agent to the repository.

For Copilot organization billing, an administrator enables Copilot CLI and “Allow use of Copilot CLI billed to the organization.” The workflow then needs copilot-requests: write under permissions. Copilot requests use the Actions token and ignore COPILOT_GITHUB_TOKEN when this permission is set. Requests fail if the Actions token lacks the required organization Copilot access.

The alternative Copilot authentication route uses a repository secret named COPILOT_GITHUB_TOKEN containing a fine-grained personal access token. The add-wizard flow prompts for secret setup; manual and web-based creation require adding it separately. Detailed third-party authentication instructions are linked rather than supplied here.

The recommended authoring route asks a coding agent to use the agentic-workflows skill. The agent creates and compiles the definition, after which the files should be reviewed, committed and pushed. The documented run command is gh aw run YOUR-WORKFLOW-NAME. Subsequent edits require gh aw compile, committing both updated files and checking GitHub Actions through a pull request.

Weekly issue report example

The supplied example runs weekly on Monday and asks the agent to review issue activity from the previous seven days. Its output is a new GitHub issue containing opened and closed issue totals, recurring themes from titles and descriptions, notable issues needing attention, and two or three recommendations for maintainers.

Its configuration grants issues: read and copilot-requests: write, selects the GitHub issues toolset, sets network: defaults and permits create-issue through safe-outputs. With no explicit engine field, it uses the documented Copilot default. The billing permission corresponds to the organization-billing route.

This is a simplified workflow definition. The page supplies no resulting report or evidence that its counts, themes or recommendations were verified.

Assessment & evidence

Limits and unknowns

The article delegates complete frontmatter syntax, detailed authentication, advanced patterns and troubleshooting to linked documentation. It lists four engines but does not establish equivalent capabilities, output quality or configuration behavior across them. The meaning of network: defaults in the example is not explained.

Workflow maintenance requires keeping the Markdown definition and compiled file synchronized. Imports are limited to accessible sources, and workflows marked private: true cannot be imported into other repositories. Upstream updates try to preserve local changes, but conflicts require manual resolution and recompilation.

No benchmark, end-to-end execution record, measured accuracy or security evaluation is supplied. The effectiveness of permission controls and safe outputs was not independently assessed.

Fit and tradeoffs

The documented weekly report illustrates a useful fit: a recurring task combines factual repository activity with interpretation of issue themes and recommendations. The workflow expresses the task in natural language while configuration determines its trigger, access and permitted output.

Adoption therefore depends on whether that task style justifies AI authentication, configuration review and maintenance of a compiled companion file. Organization billing also depends on administrator policy and Copilot access beyond the workflow definition. The page gives concrete starting steps but no evidence of an advantage in price, speed or accuracy over another approach.

Documented options

Within the documented feature, authoring options are a CLI coding agent or VS Code, the GitHub web interface, and manual editing. Existing workflows can also be imported instead of authored from scratch. The guide recommends the coding-agent route.

Copilot, Claude, Codex and Gemini are engine options, but the page provides no comparative assessment of them. The linked web-authoring instructions, manual-editing instructions and external workflow examples were not assessed, so their detailed requirements and suitability remain unknown here.

Evidence basis

GitHub’s own article is primary documentation for the commands, prerequisites, configuration fields and authentication behavior described here. It includes a simplified weekly issue-report definition but no observed output or measured results.

The article points to fuller documentation at [https://github.github.com/gh-aw/]. That site and the linked authentication, frontmatter, editing, creation and reuse pages are outside this report’s evidence scope. No commands, compilation steps or workflow runs were executed.

Access & freshness

Costs and billing

Total cost is unknown. The page provides no prices, per-run estimates, usage allowances or quantified GitHub Actions charges.

For eligible Copilot organization repositories, the built-in GITHUB_TOKEN bills workflow usage directly to the organization. Other authentication routes use personal access tokens or API keys, but their applicable prices and subscription coverage are not explained. An authentication method alone does not establish the cost of running a workflow.

Licensing and reuse rights

The page states no license or redistribution terms for the documentation, embedded example, gh-aw extension or externally imported workflows. Rights to modify or redistribute those materials are not established by this source.

The documented import feature explains how reuse works technically; it does not establish licensing terms for any particular imported workflow.

Freshness and versions

The page was captured at 2026-11-26T03:28:49.388Z. It specifies GitHub CLI 2.0.0 or later and describes automatic extension-installation prompting from version 2.90.0.

The page states no publication date, last-updated date or gh-aw release number. These instructions reflect the captured documentation; compatibility with particular installed extension and engine versions was not assessed.

Suggested next steps

Start with a limited task such as the weekly issue report. Choose an engine and authentication route, confirm repository and organization prerequisites, and establish applicable pricing. Consult the linked references for configuration details missing from this overview.

Review the generated instructions, repository permissions and safe outputs before committing both workflow files. For an initial run, compare reported counts and themes with the underlying issues before relying on the report.

For imported workflows, follow the article’s advice to use trusted sources and review their behavior. Consider the documented version-pinning option, check licensing separately, and recompile after edits or resolved update conflicts.

Evidence for this report

selected-page.txtselected · checked 2026-11-26