Skip to content

docs(gh-skill): document gh api field passing pitfalls - #14700

Closed
MatiasOlivera wants to merge 1 commit into
cli:trunkfrom
MatiasOlivera:docs/gh-skill-gh-api-field-passing
Closed

MatiasOlivera wants to merge 1 commit into
cli:trunkfrom
MatiasOlivera:docs/gh-skill-gh-api-field-passing

Conversation

@MatiasOlivera

@MatiasOlivera MatiasOlivera commented Oct 15, 2026 •

Copy link
Copy Markdown

Description

Improve the official gh skill by documenting how to pass values safely through
gh api. Agents frequently mishandle -f/-F: raw field sends literal
strings without type conversion or @ expansion; typed field converts
true/false/null numbers, expands {owner}/{repo}/{branch} from remotes,
and reads from file when the value starts with @. This causes accidental
file reads and failed mutations. The existing section also lacked guidance
about body ambiguity and verification read-back.

Closes #14701

How did you test this change?

Not tested by execution; change is documentation only in skills/gh/SKILL.md. Verified the flags and placeholder behavior against gh api --help locally before writing.

Key points

  • Scope limited strictly to docs in skills/gh/SKILL.md.
  • --input documented as deterministic escape hatch when bodies may start with @.

Notes for reviewers

Review starts at the new Passing values in gh api section between
Fall back to gh api and Authentication.

Authorship and follow-up

Who wrote this:

  • A human wrote it.
  • An agent wrote it under close human direction.
  • An agent wrote it independently, and no human has guided the implementation beyond the initial prompt.

Who answers review comments:

  • @MatiasOlivera will read and reply directly.
  • An agent will draft replies and @MatiasOlivera will read them before they are posted.
  • Nobody has explicitly committed to replying.

Add a section explaining the difference between -f/--raw-field and
-F/--field (typed conversion and @-file expansion), avoiding @ ambiguity
with --input, and reading back after mutation.
@MatiasOlivera
MatiasOlivera requested a review from a team as a code owner October 15, 2026 10:31
@MatiasOlivera
MatiasOlivera requested a review from niik October 15, 2026 10:31
@github-actions github-actions Bot added external pull request originating outside of the CLI core team needs-triage needs to be reviewed unmet-requirements and removed needs-triage needs to be reviewed labels Oct 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your pull request! Unfortunately, it doesn't meet the requirements for review:

  • No linked help wanted issue found in PR description

Please update your PR to address the above. This PR will be automatically closed in 4 days if these requirements are not met.

Full contribution requirements
  1. Include a detailed description of what this PR does
  2. Link to an issue with the help wanted label (use Fixes #123 or Closes #123)

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

Labels

external pull request originating outside of the CLI core team unmet-requirements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: cover gh api mutation pitfalls in the gh skill

1 participant