Skip to content

docs: add "When to use" column to CLI commands summary table#43699

Merged
pelikhan merged 2 commits into
mainfrom
copilot/plan-add-anchor-links-to-cli
Jul 6, 2026
Merged

docs: add "When to use" column to CLI commands summary table#43699
pelikhan merged 2 commits into
mainfrom
copilot/plan-add-anchor-links-to-cli

Conversation

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

The "Most Common Commands" table on the CLI page had no context for when to reach for each command, leaving beginners without guidance on which command fits their situation.

Changes

  • docs/src/content/docs/setup/cli.md: Added a "When to use" column to the summary table with a short, practical note per command (e.g. "After editing a workflow .md file to regenerate the .lock.yml" for gh aw compile). Anchor links from the Command column to detailed sections below were already present and are preserved.
Command When to use
gh aw init First time configuring a repo — creates skills, agents, and .gitattributes
gh aw add-wizard Adding a community workflow and want guided prompts for secrets and auth
gh aw add Scripted or CI-based workflow installation without interactive prompts

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add anchor links and examples to CLI commands summary table docs: add "When to use" column to CLI commands summary table Jul 6, 2026
Copilot AI requested a review from pelikhan July 6, 2026 06:12
@pelikhan pelikhan marked this pull request as ready for review July 6, 2026 06:19
Copilot AI review requested due to automatic review settings July 6, 2026 06:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the CLI documentation for gh aw by adding situational guidance to the “Most Common Commands” summary table, helping readers choose the right command based on their task.

Changes:

  • Added a new “When to use” column to the “Most Common Commands” table.
  • Filled in short, practical usage guidance for each listed command while preserving existing anchor links.
Show a summary per file
File Description
docs/src/content/docs/setup/cli.md Extends the “Most Common Commands” table with a “When to use” column and per-command guidance.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Low

| [`gh aw list`](#list) | Quick listing of all workflows | Checking which workflows are installed in the current repository |
| [`gh aw run`](#run) | Execute workflows immediately in GitHub Actions | Triggering a workflow run from the command line without opening GitHub |
| [`gh aw status`](#status) | Check current state of all workflows | Verifying workflows are enabled and seeing their last run result |
| [`gh aw logs`](#logs) | Download and analyze agentic workflow logs and artifacts | Debugging a past run by inspecting output, tokens used, and artifacts |
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

PR Code Quality Reviewer completed the code quality review.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in PR #43699. PR only modifies documentation (docs/src/content/docs/setup/cli.md). Test Quality Sentinel skipped.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Design Decision Gate 🏗️ completed the design decision gate check.

No ADR enforcement needed: PR #43699 does not have the 'implementation' label and has 0 new lines of code in business logic directories.

@pelikhan pelikhan merged commit 76a2856 into main Jul 6, 2026
43 checks passed
@pelikhan pelikhan deleted the copilot/plan-add-anchor-links-to-cli branch July 6, 2026 06:43

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, accurate docs addition. All ten "When to use" entries correctly match their commands and add useful beginner guidance without being redundant.

🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · 13 AIC · ⌖ 5.84 AIC · ⊞ 4.9K

@github-actions github-actions Bot mentioned this pull request Jul 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /grill-with-docs — requesting changes on 2 accuracy issues in the new "When to use" column.

📋 Key Themes & Highlights

Issues Found

  • gh aw status entry (line 21): Claims users can "see their last run result", but run data requires --ref <branch>. Without it, the command only shows enabled/disabled state and schedules.
  • gh aw logs entry (line 22): Mentions "tokens used" as a use-case, but token metrics live in gh aw audit. The logs command surfaces tool usage, errors, and raw output — not token counts.

Positive Highlights

  • ✅ Great initiative — the "When to use" column meaningfully improves the table for newcomers
  • ✅ All other 8 entries are accurate, concise, and practical
  • ✅ Anchor links preserved correctly
  • ✅ Clean, consistent tone throughout

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · 53.5 AIC · ⌖ 6.68 AIC · ⊞ 6.7K
Comment /matt to run again

| [`gh aw compile`](#compile) | Convert markdown to GitHub Actions YAML | After editing a workflow `.md` file to regenerate the `.lock.yml` |
| [`gh aw list`](#list) | Quick listing of all workflows | Checking which workflows are installed in the current repository |
| [`gh aw run`](#run) | Execute workflows immediately in GitHub Actions | Triggering a workflow run from the command line without opening GitHub |
| [`gh aw status`](#status) | Check current state of all workflows | Verifying workflows are enabled and seeing their last run result |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] The entry says "seeing their last run result" but gh aw status only shows run status when --ref is passed — without it you only get enabled/disabled state and schedules.

💡 Suggested wording
| [`gh aw status`](#status) | ... | Verifying workflows are enabled and checking their schedules; add `--ref <branch>` to also see the latest run result |

This sets accurate expectations and surfaces the key flag that unlocks run-history, preventing confusion for new users who don't see run results after their first gh aw status.

@copilot please address this.

| [`gh aw list`](#list) | Quick listing of all workflows | Checking which workflows are installed in the current repository |
| [`gh aw run`](#run) | Execute workflows immediately in GitHub Actions | Triggering a workflow run from the command line without opening GitHub |
| [`gh aw status`](#status) | Check current state of all workflows | Verifying workflows are enabled and seeing their last run result |
| [`gh aw logs`](#logs) | Download and analyze agentic workflow logs and artifacts | Debugging a past run by inspecting output, tokens used, and artifacts |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] The entry says "tokens used" but gh aw logs doesn't report token consumption — that metric lives in gh aw audit.

Looking at the logs section, the command downloads raw logs and surfaces tool usage, network patterns, errors, and warnings. Token counts require gh aw audit.

💡 Suggested wording
| [`gh aw logs`](#logs) | ... | Debugging a past run by inspecting output, tool usage, and downloaded artifacts |

Removing "tokens used" avoids sending users to gh aw logs when they actually need gh aw audit.

@copilot please address this.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two factual accuracy issues in the new "When to use" column

The addition is directionally good — beginners need this guidance. But two entries make claims that contradict the actual behavior documented on this same page.

🔍 Issues found

gh aw status (line 21) — "Verifying workflows are enabled and seeing their last run result" implies last-run info is shown by default. It is not — the status section explicitly says --ref is required to include run status. A first-time user who runs bare gh aw status will see no run data and have no idea why. (flagged inline)

gh aw logs (line 22) — "tokens used" is attributed to logs, but token consumption data belongs to audit (which explicitly lists "Token consumption, cost" in its Metrics table). The logs section covers tool usage, network patterns, errors, and warnings — not tokens. (existing review comment also covers this)

All other "When to use" entries are accurate.

🔎 Code quality review by PR Code Quality Reviewer · 55.8 AIC · ⌖ 6.53 AIC · ⊞ 5.4K
Comment /review to run again

| [`gh aw compile`](#compile) | Convert markdown to GitHub Actions YAML | After editing a workflow `.md` file to regenerate the `.lock.yml` |
| [`gh aw list`](#list) | Quick listing of all workflows | Checking which workflows are installed in the current repository |
| [`gh aw run`](#run) | Execute workflows immediately in GitHub Actions | Triggering a workflow run from the command line without opening GitHub |
| [`gh aw status`](#status) | Check current state of all workflows | Verifying workflows are enabled and seeing their last run result |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misleading default: "seeing their last run result" requires --ref; bare gh aw status shows no run info and this will confuse beginners.

💡 Suggested fix

The status section states: "With --ref, includes latest run status." — meaning a bare gh aw status shows only state, enabled/disabled, schedules, and labels, but no run results.

A user reading this table entry will run gh aw status, see no run data, and have no idea why.

Suggested rewording:

Checking which workflows are installed and their enabled/disabled state; add --ref <branch> to also see last run status

Or keep it shorter but accurate:

Verifying workflows are enabled (add --ref to also see last run result)

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[plan] Add anchor links from CLI Commands summary table to detailed sections and add 'When to use' examples

3 participants