Skip to content

gh-skill agent skill: publish pushes and releases without asking the user #14994

Open

Description

@JacobTRND

Describe the bug

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.

Activity

  1. added
    needs-triage
    on Nov 9, 2026
  2. cli-triage commented on Nov 9, 2026

    @cli-triage

    Reproducible on source-736c68f.

    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-run
    warning demo recommended field missing: license
    warning 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.

    Supporting reports

    Generated by issue triage.

  3. added
    bug
    gh-skill
    priority-3
    on Nov 9, 2026
  4. removed
    needs-triage
    on Nov 9, 2026
  5. added
    repository-skills
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggh-skillpriority-3repository-skills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions