open-sourcing
ما الذي تفعله
يرشد خطوات جعل مستودع خاص عامًا بأمان، بدءًا من فحص الأسرار. وهو موجه إلى أصحاب المشاريع الذين يجهزون لإطلاق عام.
متى تستخدمها
- ✓عندما يريد فريق جعل مستودع خاص عامًا.
- ✓عندما يريد صاحب مشروع معرفة هل المستودع العام جاهز للإصدار.
- ✓عندما يحتاج مشرف إلى اختيار ترخيص للمشروع قبل الإطلاق.
رابط المهارة
https://github.com/trailofbits/skills/blob/main/plugins/open-sourcing/skills/open-sourcing/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أريد جعل مستودعي الخاص عامًا. افحصه بحثًا عن أسرار وأخبرني بما يجب إصلاحه أولًا.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تكتشف المهارة ملف المنظمة، ثم تعمل على الخطوات بالترتيب، بدءًا من تدقيق الأسرار. ثم تغطي الترخيص والتوثيق وCI والتغليف حتى يستطيع شخص من خارج المشروع البناء واستخدامه.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من 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
الأسئلة الشائعة
لماذا يفحص الأسرار أولًا؟
لأن نتيجته تحدد هل يمكن الإبقاء على المستودع أو يلزم بدء جديد، لذلك تعمل قبل أي شيء آخر.
هل تختار الترخيص عني؟
تساعد في اختيار ترخيص للمشروع، لكن الاختيار النهائي لك.
هل تنطبق على مستودع يبقى خاصًا؟
ليس للمجموعة الكاملة. تقول المهارة إن المستودع الخاص يحتاج فقط إلى خطوات إدارة الإصدار.
التفاصيل
الوصف الأصلي من المؤلف
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
الشعبية
- نجوم GitHub
- 8.0k
- الترتيب
- #12687
- الترخيص
- CC-BY-SA-4.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
audit-context-building
8.0kيساعد وكيلك على فهم شيفرة غير مألوفة قبل مراجعة أمنية، عبر رسم ما تفترضه كل دالة وما تضمنه وما تعتمد عليه.
algorand-vulnerability-scanner
8.0kيساعد وكيلك على فحص عقود Algorand الذكية المكتوبة بـ TEAL أو PyTeal لاكتشاف 11 مشكلة أمنية شائعة، مثل هجمات إعادة المفاتيح والرسوم غير المفحوصة.
audit-prep-assistant
8.0kيساعد وكيلك على تجهيز الشيفرة لمراجعة أمنية خارجية، عبر التحليل الثابت وتغطية الاختبارات وحذف الشيفرة الميتة وتوثيق واضح.
cairo-vulnerability-scanner
8.0kيساعد وكيلك على فحص عقود Cairo الذكية على StarkNet لاكتشاف 6 مشكلات خطيرة، مثل فيض الحساب والرسائل بين الطبقات وإعادة تشغيل التوقيعات.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.