Repository navigation
Description
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:
- feat: [gh skill CLI, v2.90.0+] first-class remote skill source integration as a step toward programmatic config access across all Claude surfaces anthropics/claude-code#50148 — cross-surface integration proposal (parent)
- feat: [gh skill CLI, v2.90.0+] native session-lifecycle skill sync for Claude Code CLI and Cloud — part of cross-surface remote skill integration (#50148) anthropics/claude-code#50150 — Claude Code CLI + Cloud session sync
- feat: [gh skill CLI, v2.90.0+] remote skill source connection in Claude.ai desktop customize panel — part of cross-surface remote skill integration (#50148) anthropics/claude-code#50154 — Desktop customize panel remote source
- feat: [gh skill CLI, v2.90.0+] session-start skill sync in Cowork — part of cross-surface remote skill integration (#50148) anthropics/claude-code#50158 — Cowork session-start sync
- feat: [gh skill CLI, v2.90.0+] org-level managed skill distribution via remote source config — enterprise angle of cross-surface integration (#50148) anthropics/claude-code#50161 — Managed/enterprise org distribution
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
github-actions commentedon Apr 17, 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.
CorellisOrg commentedon Apr 18, 2026
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:
Deterministic resolution.
gh skill installby 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.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.
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.
Session-scoped installs, not global. Agents share a machine; skills shouldn't. Per-session sandboxes (think
pnpmstyle) 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.aiHappy to share the lockfile spec we landed on if useful for the RFC.
Fleinsopp commentedon Apr 18, 2026
feat(nix): add agent-skills-outdated to detect skill updates