Skip to main content
skill CX Codex

github-release · jezweb — Claude Code skill: releases and installation

Prepares a GitHub release by checking code for public publishing, creating a tag, and publishing through gh. Use it before making a repository public.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add jezweb/claude-skills --skill github-release -a claude-code
Open on GitHub

What github-release does

The skill runs a release in two stages. It first scans for secrets with gitleaks, checks personal artifacts, LICENSE, README.md, and .gitignore, then runs a build and dependency audit. A detected secret blocks the release.

It then checks the version and existing tag, shows commits since the last tag, and creates an annotated tag. The current branch and tags are pushed to the remote before gh creates the GitHub release.

You need an authenticated gh CLI, gitleaks, and a Git repository with a configured remote. Check gh authentication first, because publishing depends on it.

What it helps with

  • scan a project for secrets before publishing
  • remove personal artifacts from a repository
  • check LICENSE and README.md sections
  • create and push a version tag
  • publish a GitHub release with gh

Example prompts for the agent

  • Prepare the current repository for a GitHub release.
  • Check this project before publishing it publicly.
  • Create a GitHub release for the current version.

How to install github-release

1Skills CLI (Vercel)

npx skills add jezweb/claude-skills --skill github-release -a claude-code

2Manually: put the files in place

~/.claude/skills/github-release/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/github-release/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about github-release

How do I install github-release in Claude Code?

Run npx skills add jezweb/claude-skills --skill github-release -a claude-code, then run npx skills add jezweb/claude-skills --skill github-release -a claude-code again. The skill file is at ~/.claude/skills/github-release/SKILL.md.

What does github-release do?

It sanitizes a project before publication, checks for secrets and personal files, then creates a tag and a GitHub release through gh.

What does github-release require?

It requires an installed, authenticated gh CLI, gitleaks, and a Git repository with a configured remote.

Source text

SKILL.md · MIT
---
name: github-release
description: "Prepare and publish GitHub releases. Sanitizes code for public release (secrets scan, personal artifacts, LICENSE/README validation), creates version tags, and publishes via gh CLI. Trigger with 'release', 'publish', 'open source', 'prepare for release', 'create release', or 'github release'."
compatibility: claude-code-only
---

# GitHub Release

Sanitize and release projects to GitHub. Two-phase workflow: safety checks first, then tag and publish.

## Prerequisites

- `gh` CLI installed and authenticated (`gh auth status`)
- `gitleaks` installed for secrets scanning (`brew install gitleaks` or download from GitHub)
- Git repository with a remote configured

## Workflow

### Phase 1: Sanitize

Run these checks before any public release. Stop on blockers.

#### 1. Scan for Secrets (BLOCKER)

```bash
gitleaks detect --no-git --source=. --verbose
```

If secrets found: **STOP**. Remove secrets, move to environment variables. Check git history with `git log -S "secret_value"` — if in history, use BFG Repo-Cleaner.

If gitleaks not installed, do manual checks:

```bash
# Check for .env files
find . -name ".env*" -not -path "*/node_modules/*"

# Check config files for hardcoded secrets
grep -ri "api_key\|token\|secret\|password" wrangler.toml wrangler.jsonc .dev.vars 2>/dev/null
```

#### 2. Remove Personal Artifacts

Check for and remove session/planning files that shouldn't be published:

- `SESSION.md` — session state
- `planning/`, `screenshots/` — working directories
- `test-*.ts`, `test-*.js` — local test files

Either delete them or add to `.gitignore`.

#### 3. Validate LICENSE

```bash
ls LICENSE LICENSE.md LICENSE.txt 2>/dev/null
```

If missing: create one. Check the repo visibility (`gh repo view --json visibility -q '.visibility'`). Use MIT for public repos. For private repos, consider a proprietary license instead.

#### 4. Validate README

Check README exists and has basic sections:

```bash
grep -i "## Install\|## Usage\|## License" README.md
```

If missing sections, add them before release.

#### 5. Check .gitignore

Verify essential patterns are present:

```bash
grep -E "node_modules|\.env|dist/|\.dev\.vars" .gitignore
```

#### 6. Build Test (non-blocking)

```bash
npm run build 2>&1
```

#### 7. Dependency Audit (non-blocking)

```bash
npm audit --audit-level=high
```

#### 8. Create Sanitization Commit

If any changes were made during sanitization:

```bash
git add -A
git commit -m "chore: prepare for release"
```

### Phase 2: Release

#### 1. Determine Version

Check `package.json` for current version, or ask the user. Ensure version starts with `v` prefix.

#### 2. Check Tag Doesn't Exist

```bash
git tag -l "v[version]"
```

If it exists, ask user whether to delete and recreate or use a different version.

#### 3. Show What's Being Released

```bash
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [ -z "$LAST_TAG" ]; then
  git log --oneline --no-merges HEAD | head -20
else
  git log --oneline --no-merges ${LAST_TAG}..HEAD
fi
```

#### 4. Create Tag and Push

```bash
git tag -a v[version] -m "Release v[version]"
git push origin $(git branch --show-current)
git push origin --tags
```

#### 5. Create GitHub Release

```bash
gh release create v[version] \
  --title "Release v[version]" \
  --notes "[auto-generated from commits]"
```

For pre-releases add `--prerelease`. For drafts add `--draft`.

#### 6. Report

Show the user:
- Release URL
- Next steps (npm publish if applicable, announcements)

## Reference Files

| When | Read |
|------|------|
| Detailed safety checks | [references/safety-checklist.md](references/safety-checklist.md) |
| Release mechanics | [references/release-workflow.md](references/release-workflow.md) |

© jezweb · MIT · jezweb/claude-skills

Similar skills

All skills for Git and GitHub →

github-release by other authors comes first.

From the same set60

cloudflare-worker-builder Scaffolds Cloudflare Worker projects with Hono routing, Vite dev server, and Static Assets. It configures D1, R2, and KV bindings and fixes deployment routing conflicts. CX Codex +1 1,400installs design-review Reviews the visual quality of a web page or app and produces a findings report with screenshots. Use it when an interface looks off and the cause is hard to spot. CX Codex +1 1,400installs react-patterns A skill that checks React 19 components for waterfalls, bundle bloat and re-renders, and suggests composition fixes. Useful while writing or reviewing code. CX Codex +1 1,300installs react-native Performance guidelines and architecture patterns for React Native and Expo apps. Helps coding agents handle list virtualization, UI-thread animations, and navigation. CX Codex +1 1,300installs d1-migration Walks Cloudflare D1 migrations through Drizzle: generate the SQL, read it for traps, apply to local and remote, unstick partial runs. CX Codex +1 1,200installs deep-research Does the digging before you write code: scans your own projects, rivals, forums and libraries, then hands back a research brief. CX Codex +1 1,200installs proposal-writer Drafts client proposals, scopes of work, and quotes for service businesses. It helps web developers, agencies, and consultants close deals with structured terms. CX Codex +1 1,200installs shopify-content Creates and updates Shopify store content through the Admin API or browser automation. Use it for pages, blog posts, menus, redirects, and SEO fields. CX Codex +1 1,200installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor