Open-source pipeline: fork, sanitize, and package private projects for safe public release. Chains 3 agents (forker, sanitizer, packager). Triggers: '/opensource', 'open source this', 'make this public', 'prepare for open source'.
Detected risks:
The Open-Source Pipeline skill provides a structured workflow to safely transform private projects into publicly shareable repositories. It addresses the common challenge of preparing code for open-source release without exposing sensitive information or internal dependencies. By automating key steps, it ensures projects comply with open-source best practices and are ready for public contribution and distribution.
The skill operates through a three-stage pipeline: Fork, Sanitize, and Package. The Fork stage duplicates the project while stripping secrets and sensitive data. The Sanitize stage runs thorough checks, including scanning for secrets, personally identifiable information (PII), internal references, dangerous files, and configuration completeness. Finally, the Package stage generates essential files such as CLAUDE.md, setup.sh, and README, facilitating straightforward deployment and documentation. This modular design allows users to run each stage independently or as a full pipeline.
Ideal use cases include developers and teams looking to release private repositories safely, maintain compliance with licensing requirements, or automate the preparation of repositories for public platforms like GitHub. The skill suits anyone needing to sanitize codebases, generate setup scripts, and produce structured documentation for open-source distribution.
You can trigger the full pipeline using the command `/opensource fork PROJECT`, which will run the fork, sanitize, and package stages in sequence.
Yes, use `/opensource verify PROJECT` to run the sanitizer agent independently on an existing project.
The packaging stage produces CLAUDE.md (documentation of commands, architecture, key files), setup.sh (bootstrap script), and a README with project description.
If the sanitization step fails, the skill presents findings to the user. You can fix the issues and re-run the sanitizer up to three times, or abort and manually address the problems.
The skill allows choosing from MIT, Apache-2.0, GPL-3.0, and BSD-3-Clause licenses during the forking stage.
Quick Setup:
.claude/skills/Repository
affaan-m/everything-claude-code