Skip to main content
skill CX Codex

open-sourcing — Claude Code skill: get a repo ready for release

Walks a repository through the pre-release checklist: secret audit, license, docs, CI and packaging.

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

What open-sourcing does

The skill fires when you ask to open source a project, flip a repo to public, or check whether it is release-ready. Steps run in order, and the secret audit comes first because its outcome shapes everything after it. If credentials or client data ever touched the history, the advice is to leave visibility alone and build a fresh repository from the current tree, archiving the old one.

After that come the readiness check, documentation, licensing, tests and CI, then repository settings. Two scripts do the mechanical work: detect_org.sh reads git remotes and recent committer emails to name an organization profile, and check_readiness.sh prints which of README, LICENSE, CONTRIBUTING, SECURITY.md, CI, tests and semver tags are present. For history scanning it points at gitleaks git . or trufflehog git file://..

License choice follows the organization policy when a profile is detected. Otherwise Apache 2.0 is the permissive default, AGPLv3 covers the case where competitors must not close a fork, and Creative Commons fits non-code artifacts. A formatter or linter that already works stays in place — the skill flags an outdated one and leaves the call to the maintainer. You need a git repository with history, since the commit audit has nothing to run against otherwise.

What it helps with

  • check whether API keys leaked into commit history
  • pick a license and keep LICENSE, package metadata and README in agreement
  • rewrite the README so a stranger can build the project
  • set up CI with tests, linting and a coverage gate
  • protect the default branch and keep dependencies updated

Example prompts for the agent

  • Check this repo for open-source readiness and list what is missing
  • We want to make this project public — run a secrets audit over the full history
  • Pick a license for this project and apply it across the files

How to install open-sourcing

1Skills CLI (Vercel)

npx skills add trailofbits/skills --skill open-sourcing -a claude-code

2Manually: put the files in place

~/.claude/skills/open-sourcing/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/open-sourcing/

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

Questions about open-sourcing

How do I install open-sourcing in Claude Code?

Run npx skills add trailofbits/skills --skill open-sourcing -a claude-code. The skill lands at ~/.claude/skills/open-sourcing/SKILL.md.

What does open-sourcing do?

It takes a repository through the release steps: secret audit, readiness check, documentation, licensing, tests and CI, repository settings.

What if the repository history already contains secrets?

The skill advises against publishing it as is. Copy the current tree into a new repository and archive the old one — rewriting history does not reach forks, caches or CI artifacts.

Similar skills

All skills for Git and GitHub →

From the same set77

trailmark-variant-neighborhood This skill expands a suspected vulnerability into related code locations for review. Use it before variant analysis, Semgrep, static analysis, or a manual audit. CX Codex +1 1,300installs trailmark-finding-triage Builds a graph evidence packet for a single security finding: reachability, entrypoint paths, taint and blast radius. Useful before you spend time on a PoC. CX Codex +1 1,300installs slicing-code-context Extracts bounded, graph-informed source code slices via Trailmark and delegates analysis to a smaller subagent. Useful when running focused tasks on local or constrained models. CX Codex +1 1,300installs github-triage This skill reviews a repository’s open GitHub issues and pull requests, links pending fixes to issues, and prepares local priority and change-size estimates. CX Codex +1 1,300installs modern-cpp Directs C++ development toward C++20/23/26 idioms, replacing dangerous raw pointers, legacy macros, and SFINAE boilerplate with memory-safe patterns. CX Codex +1 1,200installs writing-lean-proofs Guides Lean 4 proof writing and review using Mathlib conventions. Use it when formalising theorems, restructuring tactic code, or adding project checks. CX Codex +1 1,200installs goal-prompt Generates copy-paste /goal directives for Claude Code and Codex with verified stop conditions and invariant checks. CX Codex +1 1,100installs pr-improver pr-improver runs repeated PR review and fix passes on the current branch until blocking findings are cleared. Use it before opening or updating a pull request. CX Codex +1 995installs

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