You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue tracks CLI documentation inconsistencies found during a comprehensive inspection of all gh aw commands.
Inspection method: Source code analysis (cmd/gh-aw/main.go, pkg/cli/*.go) cross-referenced against docs/src/content/docs/setup/cli.md.
Severity breakdown: 1 high · 7 medium · 4 low
High
H1 — mcp list-tools example shows wrong invocation syntax
Affected command:gh aw mcp
Docs (line 723):
gh aw mcp list-tools <mcp-server> # List tools for server
Source (pkg/cli/mcp_list_tools.go):
Use: "list-tools [workflow]",
The flag --server is required; <mcp-server> is not a positional argument.
Source examples (from Long text):
gh aw mcp list-tools --server github
gh aw mcp list-tools weekly-research --server github
Problem: The docs example implies mcp-server is a positional argument. A user following the docs literally (gh aw mcp list-tools github) will pass the value as a workflow name, not as the server filter, and either get the wrong results or an error about the missing required --server flag.
Suggested fix: Replace line 723 with the correct invocation:
gh aw mcp list-tools --server github # List tools for a server (all workflows)
gh aw mcp list-tools workflow --server github # List tools for a server in a specific workflow
Medium
M1–M7: Missing flag shorthands in docs (click to expand)
cmd.Flags().Int("timeout", 0, "Gracefully stop forecast computation after this many minutes (0 disables timeout)")
Problem:--timeout is present in source but absent from docs options list. The source's own Long text includes an example:
gh aw forecast --timeout 10 # Stop gracefully after 10 minutes
Suggested fix: Add --timeout to the options list.
Low
L1–L4: Minor issues (click to expand)
L1 — init: .github/skills/agentic-workflow-designer/SKILL.md not documented
Source (pkg/cli/init_command.go Long text):
Creates the workflow designer skill at `.github/skills/agentic-workflow-designer/SKILL.md`
Docs: The init section describes the dispatcher skill (.github/skills/agentic-workflows/SKILL.md) and the agent file, but does not mention the agentic-workflow-designer skill.
Suggested fix: Add the designer skill file to the list of files created by init.
L2 — init: example comment mismatch
Source (pkg/cli/init_command.go line 73):
# Configure Codespaces for current repo only
Docs (cli.md line 143):
# Configure devcontainer for current repo only
Both describe gh aw init --codespaces "". The terminology differs ("Codespaces" vs "devcontainer").
Suggested fix: Align to the source wording: # Configure Codespaces for current repo only.
L3 — compile: --gh-aw-ref is not hidden but not documented
Source (cmd/gh-aw/main.go):
compileCmd.Flags().String("gh-aw-ref", "", "Convenience alias for --action-mode release --action-tag <ref>. Use this to E2E-test workflows...")
This flag has no MarkHidden call.
Docs:--gh-aw-ref does not appear in the compile options.
Problem: Undocumented non-hidden flags appear in --help output but have no docs entry, which is confusing. This appears to be an internal/E2E-testing flag that should be hidden.
Suggested fix: Add compileCmd.Flags().MarkHidden("gh-aw-ref") in main.go, or add a brief docs entry if intentionally public.
L4 — mcp-server: --port/-p shorthand omitted
Docs (line 748):
**Options:** `--port` (HTTP server port), ...
Source (pkg/cli/mcp_server_command.go):
cmd.Flags().IntVarP(&port, "port", "p", 0, "Port to run HTTP server on (uses stdio if not specified)")
This issue tracks CLI documentation inconsistencies found during a comprehensive inspection of all
gh awcommands.Inspection method: Source code analysis (
cmd/gh-aw/main.go,pkg/cli/*.go) cross-referenced againstdocs/src/content/docs/setup/cli.md.Severity breakdown: 1 high · 7 medium · 4 low
High
H1 —
mcp list-toolsexample shows wrong invocation syntaxAffected command:
gh aw mcpDocs (line 723):
Source (
pkg/cli/mcp_list_tools.go):The flag
--serveris required;<mcp-server>is not a positional argument.Source examples (from
Longtext):Problem: The docs example implies
mcp-serveris a positional argument. A user following the docs literally (gh aw mcp list-tools github) will pass the value as a workflow name, not as the server filter, and either get the wrong results or an error about the missing required--serverflag.Suggested fix: Replace line 723 with the correct invocation:
Medium
M1–M7: Missing flag shorthands in docs (click to expand)
M1 —
update:--dir,--force,--engineshorthands omittedDocs (line 652):
Source (
pkg/cli/update_command.go):--dir/-d,--force/-f,--engine/-eall have single-letter shorthandsProblem:
--repo/-ris the only one listed with its shorthand;--dir,--force,--engineare not. Inconsistent within the same options list.Suggested fix: Change
--dir→--dir/-d,--force→--force/-f,--engine→--engine/-e.M2 —
new:--forceshorthand omittedDocs (line 209):
Source (
cmd/gh-aw/main.go):--force/-fregistered vianewCmd.Flags().BoolP("force", "f", ...)Suggested fix: Change
--force→--force/-f.M3 —
status:--jsonand--reposhorthands omittedDocs (line 416):
Source:
addJSONFlag(cmd)→--json/-j;addRepoFlag(cmd)→--repo/-rSuggested fix: Change
--json→--json/-jand--repo→--repo/-r.M4 —
list:--jsonand--reposhorthands omittedDocs (line 397):
Source:
addJSONFlag(cmd)→--json/-j;addRepoFlag(cmd)→--repo/-rSuggested fix: Change
--json→--json/-jand--repo→--repo/-r.M5 —
enableanddisable:--reposhorthand omittedDocs (lines 607, 620):
(both commands)
Source (
cmd/gh-aw/main.go):enableCmd.Flags().StringP("repo", "r", ...)and same fordisableCmdSuggested fix: Change
--repo→--repo/-rin bothenableanddisableoptions lines.M6 —
health:--jsonand--reposhorthands omittedDocs (line 558):
Source (
pkg/cli/health_command.go):addJSONFlag(cmd)→--json/-j;addRepoFlag(cmd)→--repo/-rSuggested fix: Change
--json→--json/-jand--repo→--repo/-r.M7 —
forecast:--timeoutflag not documentedDocs (line 592):
Source (
pkg/cli/forecast_command.go):Problem:
--timeoutis present in source but absent from docs options list. The source's ownLongtext includes an example:Suggested fix: Add
--timeoutto the options list.Low
L1–L4: Minor issues (click to expand)
L1 —
init:.github/skills/agentic-workflow-designer/SKILL.mdnot documentedSource (
pkg/cli/init_command.goLong text):Docs: The
initsection describes the dispatcher skill (.github/skills/agentic-workflows/SKILL.md) and the agent file, but does not mention theagentic-workflow-designerskill.Suggested fix: Add the designer skill file to the list of files created by
init.L2 —
init: example comment mismatchSource (
pkg/cli/init_command.goline 73):Docs (
cli.mdline 143):Both describe
gh aw init --codespaces "". The terminology differs ("Codespaces" vs "devcontainer").Suggested fix: Align to the source wording:
# Configure Codespaces for current repo only.L3 —
compile:--gh-aw-refis not hidden but not documentedSource (
cmd/gh-aw/main.go):This flag has no
MarkHiddencall.Docs:
--gh-aw-refdoes not appear in thecompileoptions.Problem: Undocumented non-hidden flags appear in
--helpoutput but have no docs entry, which is confusing. This appears to be an internal/E2E-testing flag that should be hidden.Suggested fix: Add
compileCmd.Flags().MarkHidden("gh-aw-ref")inmain.go, or add a brief docs entry if intentionally public.L4 —
mcp-server:--port/-pshorthand omittedDocs (line 748):
Source (
pkg/cli/mcp_server_command.go):Suggested fix: Change
--port→--port/-p.Inspection Metadata
init,new,add,add-wizard,remove,update,deploy,upgrade,compile,run,new,enable,disable,status,list,logs,audit,outcomes,checks,health,forecast,fix,lint,validate,mcp,mcp-server,secrets,env,pr,domains,completion,versiondocs/src/content/docs/setup/cli.mdcmd/gh-aw/main.go,pkg/cli/*.go/tmp/gh-aw/agent/all-help.txtwas empty (pre-agent-steps did not populate it)Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
proxy.golang.orgSee Network Configuration for more information.