Description
Describe the feature or problem you'd like to solve
Without an explicit version or pin, gh skill install and gh skill update resolve to the newest version of a skill:
- the latest GitHub release (
releases/latest), or - the default branch HEAD if the repository has no release.
A skill that was published a few minutes ago (or a compromised release or commit) is therefore installed or updated immediately. Skills are executable-adjacent content: SKILL.md instructions and bundled scripts/ are loaded by coding agents (Claude Code, Copilot, Cursor, Codex, etc.) and can influence what the agent runs on the user's machine. A configurable delay would give maintainers and the community more time to detect and respond to compromised versions before users adopt them.
Today the only mitigation is to pin manually with --pin <tag|SHA> or skill@version. That requires vetting a specific version by hand, and pinned skills are skipped by gh skill update unless --unpin is used. There is no way to say "track the newest version, but only if it has been public for at least N days", which is a common policy in dependency managers.
Proposed solution
Add a minimum age option to gh skill install and gh skill update, for example:
# Only consider versions published at least 7 days ago
gh skill install github/awesome-copilot git-commit --min-release-age 7d
# Update to the newest version that is at least 3 days old
gh skill update --all --min-release-age 3dSuggested behavior:
- Releases: pick the newest release whose publish time (
published_at) is at least the given age in the past. If the newest release is too young, fall back to the previous eligible release. - Default branch fallback (repositories without releases): never silently bypass the age policy by installing HEAD. Author/committer dates do not establish publication time: they can be backdated, and they can also be old for legitimate reasons (for example a commit made weeks ago and pushed or fast-forwarded today). The repository activity API (
GET /repos/{owner}/{repo}/activity) may provide a basis for server-recorded timing, but history availability and the handling of force pushes, reverts, and branch deletion need investigation (for example, a past tip that was later removed by a force push should not be selected). If an eligible revision cannot be established safely, stop with a clear message. Refusing default-branch installs while this option is enabled would be a reasonable first version. update: do nothing if the installed skill is already at or newer than the eligible version, and never downgrade because of this option. Report skills that were skipped because the latest version is too young (this would also show up in--dry-run).- Explicit pins:
--pinandskill@versionbypass the check, because the user chose that version explicitly. (Applying the check to explicit pins as well is defensible, so this is an open question.) - Configuration: allow a persistent default through
gh configand/or an environment variable, so users and CI do not have to repeat the flag. A flag-only first version would already be useful. - Duration format: accept Go-style durations or days (
72h,7d).
Additional context
Other tools offer the same safeguard: pnpm minimumReleaseAge, uv exclude-newer, npm --before, and Renovate minimumReleaseAge.
A similar request exists for the Vercel skills CLI, which has the same exposure (new commits are picked up on the next add/update): vercel-labs/skills#2649. Since the two tools are intended to share a compatible lock format (see #14895), it would be good to keep the semantics of this option aligned where possible, e.g. whether an explicit pin bypasses the check.
Related, but not duplicates:
- [feat] enable
gh skillto republish upstream skills, by tracking upstream source in frontmatter #13276 (tracking upstream source for republished skills) - feat: make gh skill automation-ready — flags and contracts for agent session-lifecycle integration #13215 (flags and contracts for automation-ready
gh skill). A non-interactiveupdate --all --min-release-agewould fit well with session-start sync scripts.
I searched open and closed issues in this repository for "release age", "cooldown", "supply chain", and similar terms and did not find an existing request. Tested on gh 2.103.3.
Activity
cli-triage commentedon Nov 9, 2026
GitHub CLI 2.103.3 does not provide a minimum-age policy for
gh skill installorgh skill update. Current resolution selects the latest release, then falls back to the default branch when no release exists; an explicit pin selects a fixed ref instead of tracking the newest eligible version. This leaves the requested moving safety window unsupported. The proposal is actionable and covers releases, updates, pins, and repositories without releases. Default-branch timing and whether explicit pins bypass the policy remain design decisions for maintainers.Supporting reports
Duplicate analysis
Label reasoning
Investigation notes
Generated by issue triage.
github-actions commentedon Nov 9, 2026
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.