Teach create workflow agent to discover CLI automation before manual configuration#14189
Teach create workflow agent to discover CLI automation before manual configuration#14189
Conversation
- Add prominent CLI tool discovery guidance to create-agentic-workflow.md - Document gh aw project new --with-project-setup command with examples - Show anti-pattern vs recommended approach for project setup - Update projects.md with Quick Setup section at the top - Emphasize using CLI commands before manual configuration Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot CLI Automation Discovery:* section is much too verbose. It should be shorter or not needed at all (since it has help) |
Reduced from ~93 lines to ~8 lines based on feedback that it was too verbose. The section now provides just the key principle and brief examples, referring users to `gh aw --help` for details instead of duplicating help text. Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot Remove the reundant section ## Quick Setup with CLI, it should be clear enough. |
The CLI command reference is already present in Core Projects Patterns section, making the separate Quick Setup section redundant. Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
🔍 PR Triage ResultsCategory: docs | Risk: low | Priority: 28/100 Scores Breakdown
📋 Recommended Action: deferDraft or low priority - can wait for more development Triaged by PR Triage Agent on 2026-02-06
|
There was a problem hiding this comment.
Pull request overview
Updates the repository’s “create workflow” agent guidance to encourage discovering and using gh aw CLI automation (especially for GitHub Projects) before suggesting manual configuration steps.
Changes:
- Add a concise “CLI Automation Discovery” section to
.github/aw/create-agentic-workflow.mdwith keygh awcommands to check first. - Update
.github/aw/projects.mdto recommendgh aw project new --with-project-setupas the preferred quick setup path and positioncreate-projectsafe-output as advanced.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/aw/projects.md | Adds CLI-first recommendation for Projects setup and reframes programmatic project creation as advanced. |
| .github/aw/create-agentic-workflow.md | Adds a short CLI discovery section and a pointer in the tools/resources list to encourage CLI-first setup suggestions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - **Create projects with automation** - Use `gh aw project new --with-project-setup` for quick setup with standard views and fields (recommended) | ||
| - **Track items and fields** with `update-project` (add issue/PR items, create/update fields, optionally create views) | ||
| - **Post periodic run summaries** with `create-project-status-update` (status, dates, and a concise markdown summary) | ||
| - **Create new projects** with `create-project` (optional; prefer manual creation unless automation is explicitly desired) | ||
| - **Create new projects programmatically** with `create-project` safe-output (advanced; prefer CLI for initial setup) |
There was a problem hiding this comment.
The new bullet recommends CLI automation for project creation, but later in this doc ("Create a new project (optional)") still says to prefer manual creation unless bootstrapping. This reads as contradictory guidance; consider clarifying that the "prefer manual" guidance applies specifically to the create-project safe-output (programmatic creation), while initial setup should be done via CLI (or update/remove the later statement to match).
See below for a potential fix:
- **Create projects with automation (CLI)** - Run `gh aw project new --with-project-setup` yourself to bootstrap new projects with standard views and fields (recommended for initial setup)
- **Track items and fields** with `update-project` (add issue/PR items, create/update fields, optionally create views)
- **Post periodic run summaries** with `create-project-status-update` (status, dates, and a concise markdown summary)
- **Create new projects programmatically (agent)** with `create-project` safe-output (advanced; use only when the agent must create projects itself—otherwise create projects manually or via CLI as described in "Create a new project (optional)")
| - **Advanced static analysis** → See `.github/aw/serena-tool.md` for guidance on when and how to use Serena language server (only for advanced coding tasks when user explicitly requests it) | ||
| - **Orchestration patterns** → See `.github/aw/orchestration.md` for guidance on coordinating multi-step work and tracking progress across runs (use when the workflow is acting as a coordinator) | ||
| - **GitHub Projects (v2)** → See `.github/aw/projects.md` for GitHub Projects (v2) integration patterns and safe-outputs setup (use when the workflow updates project boards or posts project status updates) | ||
| - **⚡ CLI Tool Discovery** → Before configuring complex manual setup, check if `gh aw` provides a CLI command for the task (see CLI Automation Discovery section below) |
There was a problem hiding this comment.
The resource bullet is titled "CLI Tool Discovery" but points to the "CLI Automation Discovery" section below. To reduce confusion and make the reference easy to find (especially for agents scanning headings), consider using the exact same phrase for both the bullet label and the section heading.
| - **⚡ CLI Tool Discovery** → Before configuring complex manual setup, check if `gh aw` provides a CLI command for the task (see CLI Automation Discovery section below) | |
| - **⚡ CLI Automation Discovery** → Before configuring complex manual setup, check if `gh aw` provides a CLI command for the task (see CLI Automation Discovery section below) |
Improve Create Workflow Agent to Discover CLI Tools
Problem
When asked to create a dependabot project management workflow, the agent gave manual setup instructions instead of discovering the available
gh aw project new --with-project-setupCLI command.Solution
Added concise CLI automation discovery guidance to the create workflow agent.
Changes Made
gh aw projectCLI capabilities--with-project-setupflag and its featuresKey Improvements
1. CLI Automation Discovery Section (
.github/aw/create-agentic-workflow.md)gh aw --helpfor explorationproject new --with-project-setup,secrets,init,new,add2. Projects Guide (
.github/aw/projects.md)Impact
The create workflow agent will now:
gh aw project new --with-project-setupTesting
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.