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
{{ message }}
Repository navigation
gh-skill agent skill: publish pushes and releases without asking the user #14994
bugSomething isn't workinggh-skillrelating to the gh skill commandpriority-3Affects a small number of users or is largely cosmeticrepository-skillsRegarding the skills packaged in cli/cli
skills/gh-skill/SKILL.md (the agent skill for gh skill) lists what gh skill publish does: it adds the agent-skills topic to the repository, auto-pushes any unpushed commits, and creates a GitHub release. It then tells the agent:
Always pass --tag so it doesn't fall through to the interactive flow.
The interactive flow is where a person would see and approve what is about to be pushed and released. With this instruction an agent publishes, pushes, and creates a release without asking the user at all. A release and a pushed commit cannot be quietly undone, so the skill should have the agent confirm first.
Proposed change
Keep --tag for the actual publish, but put a dry run and a user confirmation in front of it. Diff against trunk at 736c68f:
--- a/skills/gh-skill/SKILL.md+++ b/skills/gh-skill/SKILL.md@@ -103,7 +103,10 @@
3. Auto-push any unpushed commits.
4. Create a GitHub release with auto-generated notes.
-Always pass `--tag` so it doesn't fall through to the interactive flow.+These steps change the repository and publish a release. Run+`gh skill publish --dry-run` first, then show the user the repository, the+tag, and any unpushed commits, and publish only after they confirm. Pass+`--tag` so the confirmed publish does not fall through to the interactive flow.
## Self-management pattern for agents
Acceptance criteria
The gh-skill agent skill tells agents to run gh skill publish --dry-run and get the user's confirmation before a publish that pushes commits and creates a release.
--tag remains the documented way to run the confirmed publish non-interactively.
Filed as an issue because the contributing guide accepts external pull requests only for help wanted issues.
The shipped agent skill lists automatic push and release side effects, then tells agents to always use the non-interactive --tag path without requiring user approval. The existing dry-run provides a safe preflight on both 2.103.3 and source:
$ gh skill publish --dry-runwarning demo recommended field missing: licensewarning no active tag protection rulesets found. Consider protecting tags to ensure immutable releases (Settings > Rules > Rulesets)Dry run complete. Use without --dry-run to publish.
Exit status:0.
The proposed confirmation step addresses the unsafe guidance while preserving --tag for the approved publish.
bugSomething isn't workinggh-skillrelating to the gh skill commandpriority-3Affects a small number of users or is largely cosmeticrepository-skillsRegarding the skills packaged in cli/cli
Activity
cli-triage commentedon Nov 9, 2026
Reproducible on source-736c68f.
The shipped agent skill lists automatic push and release side effects, then tells agents to always use the non-interactive
--tagpath without requiring user approval. The existing dry-run provides a safe preflight on both 2.103.3 and source:Exit status:
0.The proposed confirmation step addresses the unsafe guidance while preserving
--tagfor the approved publish.Supporting reports
Duplicate analysis
Label reasoning
Reproduction log
Investigation notes
Generated by issue triage.