PluginBench
Skill
Fail
Audit score 45

github-release

jezweb/claude-skills

Sanitize and publish GitHub releases with automated secrets scanning and validation checks.

What is github-release?

Automates the two-phase process of preparing code for public release and publishing to GitHub. Scans for secrets, validates project structure (LICENSE, README, .gitignore), removes personal artifacts, and creates version tags via the gh CLI. Use this before making any project public or releasing a new version.

  • Scans for hardcoded secrets using gitleaks or manual grep patterns
  • Removes personal artifacts (SESSION.md, planning/, screenshots/, test files)
  • Validates LICENSE, README, and .gitignore presence and content
  • Runs build and npm audit checks (non-blocking)
  • Creates annotated git tags and pushes to remote
  • Generates GitHub releases with commit history via gh CLI

How to install github-release

npx skills add https://github.com/jezweb/claude-skills --skill github-release
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
Claude Code
Cursor
Windsurf
Cline

How to use github-release

  1. 1.Run Phase 1 sanitization checks: scan for secrets with gitleaks, remove personal artifacts, validate LICENSE and README exist
  2. 2.Fix any blockers (secrets must be removed and git history cleaned)
  3. 3.Create a sanitization commit if changes were made (git commit -m 'chore: prepare for release')
  4. 4.Determine the version number from package.json or user input
  5. 5.Run Phase 2 release: create annotated git tag, push to remote, create GitHub release via gh CLI
  6. 6.Review the release URL and next steps (e.g., npm publish)

Use cases

Good for
  • Publishing a private project to open source for the first time
  • Releasing a new version of an existing public repository
  • Automating safety checks before any public code push
  • Ensuring no API keys or secrets are accidentally committed
  • Creating release notes from commit history between versions
Who it's for
  • Open source maintainers
  • Developers preparing projects for public release
  • Teams automating release workflows
  • Anyone publishing code to GitHub

github-release FAQ

What happens if gitleaks is not installed?

The skill falls back to manual grep checks for common secret patterns in .env files and config files like wrangler.toml and .dev.vars.

What if secrets are found in git history?

Stop the release. Remove the secrets from the current code, then use BFG Repo-Cleaner to purge them from git history before proceeding.

Can I create a pre-release or draft release?

Yes. The skill supports --prerelease and --draft flags when creating the GitHub release via gh CLI.

What if the version tag already exists?

The skill checks if the tag exists and prompts you to either delete and recreate it or choose a different version.

Does this publish to npm automatically?

No. The skill creates the GitHub release only. You must manually run npm publish if needed, or set up a separate CI/CD workflow.

Full instructions (SKILL.md)

Source of truth, from jezweb/claude-skills.


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)

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:

# 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

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:

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

If missing sections, add them before release.

5. Check .gitignore

Verify essential patterns are present:

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

6. Build Test (non-blocking)

npm run build 2>&1

7. Dependency Audit (non-blocking)

npm audit --audit-level=high

8. Create Sanitization Commit

If any changes were made during sanitization:

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

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

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

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

5. Create GitHub Release

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

WhenRead
Detailed safety checksreferences/safety-checklist.md
Release mechanicsreferences/release-workflow.md

Related skills

More from jezweb/claude-skills and the wider catalog.

GOgoogle-apps-script logo

google-apps-script

jezweb/claude-skills

Build Google Apps Script automation for Sheets with custom menus, triggers, dialogs, and integrations.

1.9k installs
GOgoogle-chat-messages logo

google-chat-messages

jezweb/claude-skills

Send Google Chat messages via incoming webhooks — text, rich cards (cardsV2), threaded replies. TypeScript types, card builder utility, widget reference inline. Use whenever the user wants to post to Google Chat from a script, build a chatbot reply, send a notification card, build a Google Chat webhook integration, or troubleshoot card / threading issues.

998 installsAudited
GWgws-install logo

gws-install

jezweb/claude-skills

Quick install of the Google Workspace CLI (gws) on an additional machine using existing OAuth credentials. Requires client_secret.json from a previous gws-setup. Use whenever the user wants to install gws on a new computer, reinstall after a fresh OS, configure a second workstation, or says 'install gws', 'gws on new machine', 'set up gws again'.

789 installs
GWgws-setup logo

gws-setup

jezweb/claude-skills

Set up the Google Workspace CLI (gws) from scratch. Guides through GCP project creation, OAuth credentials, authentication, and installing 90+ agent skills for Claude Code. Use whenever the user wants to set up gws for the first time, configure Google Workspace API access, install the Google Workspace CLI, or troubleshoot gws auth issues.

799 installs
HOhono-api-scaffolder logo

hono-api-scaffolder

jezweb/claude-skills

Scaffold Hono API routes, middleware, and documentation for Cloudflare Workers.

1.6k installs
HOhono-routing logo

hono-routing

jezweb/claude-skills

|

624 installs