open-sourcing
Fungsinya
Memandu langkah-langkah untuk membuat repositori privat menjadi publik dengan aman, dimulai dengan pemeriksaan rahasia. Skill ini untuk pemilik proyek yang menyiapkan peluncuran publik.
Kapan dipakai
- โSaat tim ingin membuat repositori privat menjadi publik.
- โSaat pemilik proyek ingin memeriksa apakah repositori publik sudah siap dirilis.
- โSaat maintainer perlu memilih lisensi untuk proyek sebelum peluncuran.
Link skill
https://github.com/trailofbits/skills/blob/main/plugins/open-sourcing/skills/open-sourcing/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin membuat repo privat saya menjadi publik. Periksa rahasia di dalamnya dan beri tahu apa yang harus diperbaiki lebih dulu.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini mendeteksi profil organisasi, lalu mengerjakan langkah-langkah secara berurutan, dimulai dengan audit rahasia. Setelah itu skill ini membahas lisensi, dokumentasi, CI, dan pengemasan agar orang luar bisa membangun dan memakai proyek tersebut.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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
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 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.
- 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.
- Scan the full history with a dedicated tool if available โ
gitleaks git .ortrufflehog git file://.โ rather than eyeballing. - 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.
- 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
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.mdwith 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/lice
Pertanyaan umum
Mengapa memeriksa rahasia lebih dulu?
Hasilnya menentukan apakah repositori bisa dipertahankan atau perlu dimulai dari awal, sehingga langkah ini dijalankan sebelum yang lain.
Apakah skill ini memilihkan lisensi untuk saya?
Skill ini membantu Anda memilih lisensi untuk proyek, tetapi pilihan akhirnya tetap di tangan Anda.
Apakah berlaku untuk repo yang tetap privat?
Tidak untuk seluruh rangkaian. Skill ini menyatakan repo yang tetap privat hanya perlu langkah manajemen rilis.
Detail
Deskripsi asli dari pembuat
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.
repo: trailofbits/skills
Popularitas
- Bintang GitHub
- 8.0k
- Peringkat
- #12687
- Lisensi
- CC-BY-SA-4.0
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
audit-context-building
8.0kMembantu agent Anda mempelajari basis kode yang belum dikenal sebelum tinjauan keamanan, dengan memetakan apa yang diasumsikan, dijamin, dan bergantung pada setiap fungsi.
algorand-vulnerability-scanner
8.0kMembantu agent Anda memindai smart contract Algorand, yang ditulis dalam TEAL atau PyTeal, untuk 11 masalah keamanan umum seperti serangan rekeying dan biaya yang tidak diperiksa.
audit-prep-assistant
8.0kMembantu agent Anda menyiapkan basis kode untuk tinjauan keamanan dari luar, dengan analisis statis, cakupan tes, pembersihan kode mati, dan dokumentasi yang jelas.
cairo-vulnerability-scanner
8.0kMembantu agent Anda memindai smart contract Cairo di StarkNet untuk 6 masalah serius, termasuk overflow aritmetika, pesan lintas lapisan yang berisiko, dan replay tanda tangan.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.