gh-skill-publish - Man Page

Validate and publish skills to a GitHub repository (preview)

Synopsis

gh skill publish [<directory>] [flags]

Description

Validate a local repository's skills against the Agent Skills specification and publish them by creating a GitHub release.

Skills are discovered using the same conventions as install:

Validation checks include:

After validation passes, publish will interactively guide you through:

Use --dry-run to validate without publishing. Use --tag to publish non-interactively with a specific tag. Use --fix to automatically strip install metadata from committed files without publishing. Review and commit the changes, then run publish again.

Options

--dry-run

Validate without publishing

--fix

Auto-fix issues where possible without publishing (e.g. strip install metadata)

--tag <string>

Version tag for the release (e.g. v1.0.0)

Exit Codes

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

Example

# Validate and publish interactively
$ gh skill publish

# Publish with a specific tag (non-interactive)
$ gh skill publish --tag v1.0.0

# Validate only (no publish)
$ gh skill publish --dry-run

# Strip install metadata without publishing
$ gh skill publish --fix

See Also

gh-skill(1)

Referenced By

gh-skill(1).

May 2026 GitHub CLI manual