--- name: Agentic Workflows description: Routes GitHub Agentic Workflows tasks to focused authoring, debugging, and reference guidance. disable-model-invocation: true --- # GitHub Agentic Workflows Agent Dispatch gh-aw tasks to the matching prompt or reference. Load only what the task needs; follow its instructions and the target repository's `.github/aw/instructions.md` when present. Use the guidance checkout only when its repository/ref matches; apply the overlay only in a matching checkout. The target repository's overlay overrides conflicting guidance. Without a matching checkout, load public guides at the resolved guidance repository/ref; `main` URLs below are defaults only when no ref was supplied. Do not create or edit workflows unless requested. ## Execution and safety - For incident, health, and failure-related optimization requests, use intent routing before generic update, upgrade, or optimization routes. First load [debug-bootstrap.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/debug-bootstrap.md) from the resolved guidance repository/ref, even when the CLI is installed. Preserve that ref in all debugging links and public raw fallbacks; use `main` defaults only when no guidance revision is supplied. Reuse already-loaded guides. Then load only the selected route in [.github/aw/debug-scenarios.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/debug-scenarios.md). - Do not dispatch workflows to obtain evidence. Compile is not execution authorization. Follow [debug-agentic-workflow.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/debug-agentic-workflow.md) for execution gates; never bypass a gate or retry authorization failures. - Use `gh aw` for authoring and compilation; `copilot` is a separate runtime. Compile Markdown workflows before Actions can execute them. - Bash is enabled by default; do not restrict commands unnecessarily. - When dispatch is permitted and human-validated, prefer `gh aw run` over `gh workflow run`; this grants no authorization. - For workflow writes, use declared safe outputs, not direct GitHub mutations from authored steps. Load [safe-outputs.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/safe-outputs.md) for write behavior and configuration. - Before reporting, follow the selected prompt's verification and output contract. In workflows that declare them, use `noop` for no action and `report_incomplete` when blocked or unable to finish. - Use only authorized tools and credentials. Never expose secret values. - If GitHub API, `gh api`, or GitHub MCP returns HTTP 403, including a token SAML-authorized for a different organization, do not retry with the same token. For public `github/gh-aw` content only, fetch without authentication: `curl --fail --silent --show-error --location 'https://raw.githubusercontent.com/github/gh-aw/main/'`. Preserve the repository-relative path, including `.github/`; never send an Authorization header or token to the raw URL. Apply this fallback to referenced instructions and `SKILL.md` files. If fetching fails, report that error. This fallback supports public projects only, not private or enterprise repositories. ## What This Agent Does - **Creating new workflows**: [create-agentic-workflow.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/create-agentic-workflow.md) - **Updating workflows**: [update-agentic-workflow.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/update-agentic-workflow.md) - **Diagnosing, patching, or debugging a workflow**: use the debugging route above, then [debug-agentic-workflow.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/debug-agentic-workflow.md). - **Analyzing existing runs or repository-wide failures**: [analyzing-runs.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/analyzing-runs.md). Start with failure clustering; supplied workflow/run scope takes precedence. - **Upgrading workflows**: [upgrade-agentic-workflows.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/upgrade-agentic-workflows.md) - **Creating report-generating workflows**: [report.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/report.md) - **Creating shared components**: [create-shared-agentic-workflow.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/create-shared-agentic-workflow.md) - **Fixing Dependabot workflow-manifest PRs**: [dependabot.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/dependabot.md); never merge manifest-only PRs, update source Markdown, and compile with `--dependabot`. - **Analyzing test coverage**: [test-coverage.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/test-coverage.md) - **CLI commands or restricted environments**: [cli-commands.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/cli-commands.md). For logs, use `gh aw logs [workflow-name] --repo HOST/OWNER/REPO`. - **Reducing token use or cost**: [token-optimization.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/token-optimization.md) - **Selecting workflow architecture or patterns**: [patterns.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/patterns.md) - **Designing, deploying, inspecting, or recovering work queues**: [work-queue.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/work-queue.md). Also load it after the primary create/update/debug/upgrade prompt when `tools.work-queue` is used. - **Compact Markdown/ASCII charts**: [asciicharts.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/asciicharts.md) for charts rendered directly in issues or comments. - **Third-party integrations**: [connectors.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/connectors.md); inspect the selected declaration and its schema/docs. Bind approved resources and secret names only; importing grants no capabilities or credentials. - **Local SDLC issue bootstrap**: [squad.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/squad.md) Workflows may optionally include project tracking or coordination; consult the selected design prompt. For general workflow authoring, load [github-agentic-workflows.md](https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/github-agentic-workflows.md). Load linked specifications only when the selected prompt requires them.