Skip to content

Improve update --all command if some skills don't have metadata#13469

Open
tommaso-moro wants to merge 2 commits into
trunkfrom
tommy/skill-update-all-fix
Open

Improve update --all command if some skills don't have metadata#13469
tommaso-moro wants to merge 2 commits into
trunkfrom
tommy/skill-update-all-fix

Conversation

@tommaso-moro
Copy link
Copy Markdown
Contributor

Fixes #13369

Summary

Fixes gh skill update --all so it no longer prompts for skills that are missing GitHub metadata.

When --all is used, skills without GitHub metadata are skipped with a notice, matching the flag's "without prompting" behavior.

Changes

  • Skip missing-metadata skills when --all is used instead of prompting interactively.
  • Keep the warning summary so users know which skills were skipped.
  • Update the warning text to explain that users can run gh skill update <skill> interactively to add metadata, or reinstall the skill.
  • Add a regression test to verify --all does not prompt for missing metadata.

Testing

  • go test ./pkg/cmd/skills/update/... -run TestUpdateRun -count=1
  • go test ./pkg/cmd/skills/... -count=1

@tommaso-moro tommaso-moro marked this pull request as ready for review May 20, 2026 14:38
@tommaso-moro tommaso-moro requested review from a team as code owners May 20, 2026 14:38
@tommaso-moro tommaso-moro requested review from babakks and Copilot May 20, 2026 14:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes gh skill update --all so it no longer triggers interactive prompts for installed skills that are missing GitHub metadata, aligning --all with its “without prompting” behavior.

Changes:

  • Skip missing-metadata skills when --all is set (and emit a notice instead of prompting).
  • Improve the warning text to point users to an interactive update (or reinstall) to add metadata.
  • Add a regression test ensuring --all does not prompt when metadata is missing.
Show a summary per file
File Description
pkg/cmd/skills/update/update.go Avoids prompting for missing GitHub metadata when --all is used; improves skip notice text; updates command help text accordingly.
pkg/cmd/skills/update/update_test.go Adds regression coverage ensuring --all skips no-metadata skills without prompting.

Copilot's findings

Tip

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

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

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.

gh skill update --all: skip skills without GitHub metadata instead of prompting

2 participants