Update gh aw init to create the Agentic Workflows custom agent#35773
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
gh aw init to create the Agentic Workflows custom agent
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Addressed in 7190401. The generated Agentic Workflows agent is now a concise file index: it always lists |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates gh aw init so Copilot-engine initialization generates both the Agentic Workflows dispatcher skill and a new .github/agents/agentic-workflows.md custom agent (with --no-skill / --no-agent opt-outs), plus documentation and test coverage to validate the generated agent index content and keep the checked-in agent file in sync.
Changes:
- Add
Skill/Agenttoggles to init options and wire them to new--no-skill/--no-agentCLI flags. - Implement generation of
.github/agents/agentic-workflows.mdas a concise index of the dispatcher skill and.github/aw/*.mdprompts (sorted + summarized). - Extend/init tests and docs to cover default behavior, opt-outs, non-Copilot engines, and checked-in agent sync.
Show a summary per file
| File | Description |
|---|---|
| pkg/cli/interfaces_test.go | Updates init option construction to include new Skill/Agent toggles. |
| pkg/cli/init.go | Adds conditional creation of dispatcher skill and custom agent during init. |
| pkg/cli/init_test.go | Updates init tests to pass Skill/Agent options. |
| pkg/cli/init_mcp_test.go | Updates MCP init tests to pass Skill/Agent options. |
| pkg/cli/init_command.go | Adds --no-skill / --no-agent flags and wires them into InitOptions. |
| pkg/cli/init_command_test.go | Adds flag/help assertions and new tests for agent file creation + opt-outs. |
| pkg/cli/copilot_agents.go | Implements custom agent generation and prompt summary extraction/sorting. |
| pkg/cli/copilot_agents_test.go | Adds coverage for agent generation details + checked-in file sync. |
| docs/src/content/docs/setup/cli.md | Documents new default outputs and flags for gh aw init. |
| .github/agents/agentic-workflows.md | Adds the checked-in Agentic Workflows custom agent file expected by init/tests. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 10/10 changed files
- Comments generated: 4
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
| return summary | ||
| } | ||
|
|
||
| func humanizePromptFilename(name string) string { |
There was a problem hiding this comment.
@copilot read the description field from these files
There was a problem hiding this comment.
Implemented in f226d41. The agent index now reads frontmatter description values from .github/aw/*.md when building prompt summaries (with concise normalization), and the checked-in .github/agents/agentic-workflows.md plus tests are updated to stay in sync.
|
|
||
| Read only the files you need: | ||
| - `.github/skills/agentic-workflows/SKILL.md` — router skill for workflow create, debug, and upgrade tasks. | ||
| - `https://github.com/github/gh-aw/blob/main/.github/aw/github-agentic-workflows.md` — GitHub Agentic Workflows. |
There was a problem hiding this comment.
@copilot inline 'https://github.com/github/gh-aw/blob/main/.github/aw' for every file is very verbose. Tell the agents that the files below must be loaded from https://github.com/github/gh-aw/blob/main/.github/aw and don't repeat the URL.
There was a problem hiding this comment.
Updated in d5d96ce. The generated agent now states once that .github/aw/*.md prompts must be loaded from https://github.com/github/gh-aw/blob/main/.github/aw, then lists concise .github/aw/<file>.md entries without repeating the full URL.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
``
|
gh aw initonly created the dispatcher skill, so repositories were missing the.github/agents/agentic-workflows.mdcustom agent needed to invoke that skill directly. This change teaches init to generate both artifacts by default, while adding explicit opt-outs for each.Init output
.github/agents/agentic-workflows.mdduringgh aw initAgentic Workflows.github/skills/agentic-workflows/SKILL.md.github/aw/*.mdprompts with short purposes.github/aw/*.mdprompts using a shared canonical base URL instruction (https://github.com/github/gh-aw/blob/main/.github/aw) and concise per-file.github/aw/<file>.mdentries (without repeating the full URL per line)CLI surface
--no-skillto skip.github/skills/agentic-workflows/SKILL.md--no-agentto skip.github/agents/agentic-workflows.mdDocs and coverage
--no-skill--no-agent