Skip to content

feat: make gh skill automation-ready — flags and contracts for agent session-lifecycle integration #13215

Open

Description

@TrudosKudos

Following up on #13211 (docs request) with a feature request on the integration side.

I've been working on wiring gh skill into Claude Code's session lifecycle — specifically, having skills from a private GitHub repo sync automatically at session start across surfaces (CLI, Cloud, desktop app, Cowork). The issues I filed on the Claude Code side for context:

To make gh skill work as a native session-lifecycle tool rather than just a manual CLI command, there are gaps on the scripting side. The current experience is designed around interactive use — which works for one-off installs but blocks when called from a session hook or startup script.

The broader direction

gh skill is the first standardized protocol for syncing agent configuration from a GitHub source. With a clean scripting interface it becomes a natural primitive for agent runtimes to build on — not just for skills, but potentially as a template for how GitHub-hosted configuration gets pulled into agent sessions more broadly (CLAUDE.md, project context, custom tool definitions, etc.).

The cross-repo issues above represent the Claude Code team's side of this integration. The missing piece is gh skill having the flags and output contracts that make automated use viable.

Gaps and recommendations

Gap Current behavior Proposed addition Runtime use case
Non-interactive update gh skill update --all blocks on confirmation prompts --yes / --non-interactive flag Run from SessionStart hooks and startup scripts without human input
Machine-readable output Human-formatted text only --json on list and update Let runtimes parse installed skills, current versions, and update status
Exit code contract Undocumented for “up to date” vs “updated” vs “error” states Documented exit codes (e.g. 0=current, 1=updated, 2=error) Conditional script logic — only reinstall skills if something changed
Read-only status check No dry-run or status mode gh skill status or update --dry-run Lightweight session-start check that doesn’t mutate state unless needed

Activity

  1. added
    enhancement
    gh-skill
    on Apr 17, 2026
  2. github-actions commented on Apr 17, 2026

    @github-actions
    Contributor

    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 wanted Contributions 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.

  3. removed
    needs-triage
    on Apr 17, 2026
  4. CorellisOrg commented on Apr 18, 2026

    @CorellisOrg

    The four gaps you called out are real — we've hit all of them running fleets of Claude/Codex sessions in production for the last two months. A few more that bite once you're past single-session:

    1. Deterministic resolution. gh skill install by name is fine for humans, but agents need content-addressed refs (commit SHA or digest) so the same goal reproduces across sessions. Name-based installs drift silently when upstream moves.

    2. Dry-run / plan output. Before an agent runs a skill, it needs a machine-readable plan (inputs, side-effects, required scopes) to decide whether to execute or escalate. Right now it's run-or-bust.

    3. Batch contracts. When one parent session fans out to N children, each child re-installing the same skill is wasteful and racy. A session-scoped lockfile + shared cache would fix it.

    4. Session-scoped installs, not global. Agents share a machine; skills shouldn't. Per-session sandboxes (think pnpm style) avoid cross-session contamination.

    We've been building the governance layer for exactly this — on top of runtime CLIs like gh skill, Claude Code, Codex, etc. Not competing with the runtime, just the orchestration/audit/recovery piece that has to live above it. Early write-up: https://corellis.ai

    Happy to share the lockfile spec we landed on if useful for the RFC.

  5. Fleinsopp commented on Apr 18, 2026

    @Fleinsopp
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

    enhancementgh-skill

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions