Skip to content
Agentmart
Submit a tool

open-sourcing

This skill should be used when the user asks to "open source this project", "prepare this repository for public release", "make this repo public", "check…

Skill by trailofbits

IndexedCC-BY-SA-4.0★ 7,783
Write a review

Chalk Labs

Need help deploying open-sourcing?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/trailofbits-open-sourcing

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

This skill should be used when the user asks to "open source this project", "prepare this repository for public release", "make this repo public", "check open-source readiness", "choose a license for this project", or "set up release automation" ahead of a public launch. Provides a release-readiness workflow covering secrets hygiene, licensing, documentation, CI, and language-specific packaging.

Use cases: devops, security, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/open-sourcing

What's inside

Skill name
open-sourcing
Description
This skill should be used when the user asks to "open source this project", "prepare this repository for public release", "make this repo public", "check open-source readiness", "choose a license for this project", or "set up release automation" ahead of a public launch. Provides a release-readiness workflow covering secrets hygiene, licensing, documentation, CI, and language-specific packaging.
License
CC-BY-SA-4.0
Instructions
221 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (11)

  • SKILL.md
  • c-cpp.md · references/
  • go.md · references/
  • javascript.md · references/
  • licensing.md · references/
  • python.md · references/
  • ruby.md · references/
  • rust.md · references/
  • trailofbits.md · references/
  • check_readiness.sh · scripts/
  • detect_org.sh · scripts/

SKILL.md (first lines)

# Open-Sourcing a Repository

Prepare a repository for public release so that an outsider with no prior
context can build, use, and contribute to it — and so that nothing sensitive
ships with it. Work through the steps in order; the secrets audit comes first
because its outcome (keeping vs. recreating the repository) affects
everything after it.

## When to Use

- Making a private repository public
- Auditing an existing public repository for release quality ("make it
  official")
- Choosing a license for a project
- Setting up packaging, versioning, or release automation ahead of a public
  launch

## When NOT to Use

- Routine development on an already-released project (no release event)
- Auditing third-party code for vulnerabilities (use a security-review skill)
- Publishing a package from a repository that will stay private — only the
  release-management steps apply; skip the rest

## Workflow

### Step 1: Detect the organization profile

```sh
bash {baseDir}/scripts/detect_org.sh
```

The script inspects git remotes and recent committer emails, and prints a
profile name. If it prints `trailofbits`, read
[references/trailofbits.md](references/trailofbits.md) now and apply its
license policy, publishing accounts, and process notes throughout the
remaining steps. If it prints `generic`, proceed with the generic guidance
alone. If the user says the detection is wrong, trust the user.

### Step 2: Audit for secrets — before anything else

A repository that has **ever** contained secrets (API keys, credentials,
client data) should not be flipped public. History rewriting is error-prone
and does not reach forks, caches, or CI artifacts. The reliable fix is a
fresh repository: copy the current tree over, commit, and archive the old
repository privately.

1. Ask whether the project ever handled secrets or client-confidential
   material. For a security consultancy's tooling, also ask whether test
   fixtures or example data came from client engagements.
2. Scan the full history with a dedicated tool if available —
   `gitleaks git .` or `trufflehog git file://.` — rather than eyeballing.
3. Check beyond the git tree: GitHub Actions logs and artifacts, old
   releases, issue and PR history, and the repository wiki all become public
   with the repository.
4. After going public, enable GitHub secret scanning and push protection in
   the repository settings.

Reject these rationalizations — this is the one step that cannot be fixed
after publication:

- *"The key was revoked, so the history is fine."* Revoked credentials still
  leak infrastructure names, internal URLs, and patterns attackers use for
  targeting.
- *"We'll rewrite history with git-filter-repo."* Rewrites miss forks,
  clones, caches, and CI artifacts; the fresh-repository approach does not.
- *"It's only test data."* Fixtures derived from client engagements or
  production systems are confidential regardless of how they are labeled.

### Step 3: Run the readiness check

```sh
bash {baseDir}/scripts/check_readiness.sh
```

The script prints a checklist of presence indicators (README, LICENSE,
CONTRIBUTING, SECURITY.md, CI, tests, semver tags, ...) and warns about
tracked files that commonly contain secrets. Treat unchecked items as
discussion prompts, not hard failures — a research prototype does not need
everything a flagship library needs. Walk through the gaps with the user and
fix the ones that matter for this project.

### Step 4: Documentation

The README is the project's front door. Confirm it explains:

- **What the project is** and what problem it solves (first paragraph)
- **How to install it** — package manager, container image, or build from
  source; a fresh-clone build must work using only what is in the repository
- **How to use it** — at least one concrete, copy-pasteable example
- **How to contribute** — inline or via `CONTRIBUTING.md`
- **The license** — a short section naming it

Also add:

- **`SECURITY.md`** with vulnerability-reporting instructions (a contact
  address or GitHub private vulnerability reporting). For security tooling
  this is table stakes.
- **API documentation**, built and hosted (GitHub Pages via CI is the usual
  route), linked from the README and the repository website field. See the
  language references below for per-ecosystem doc tooling.
- A **code of conduct** if the project expects outside contributors.

### Step 5: Licensing

No license means not open source, regardless of visibility. Read
[references/licensing.md](references/licensing.md) for selection criteria and
mechanics. The short version:

1. Apply the organization's policy if one was detected in Step 1.
2. Otherwise: Apache 2.0 as the permissive default, AGPLv3 when private
   modification by competitors is a real concern, Creative Commons for
   non-code artifacts.
3. Add the `LICENSE` file, set SPDX identifiers in package metadata, state
   the license in the README, and verify all three agree.

### Step 6: Tests and CI

- Confirm the test suite exists and passes; a public repository with a

From trailofbits/skills, CC-BY-SA-4.0.

More from trailofbits/skills

Signals

Stars
7,783
Forks
671
Open issues
30
Last commit (this folder)
Jul 29, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
CC-BY-SA-4.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from trailofbits

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get open-sourcing running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying open-sourcing?

CallGet help
Cite this page

open-sourcing skill. Agent Mart. https://agentmart.dev/skills/trailofbits-open-sourcing (last updated 2026-10-24)