oss-bootstrap
Skill13 starsChanged 4 months agoMITView on GitHub
Prepare a new public open-source repository, or convert a small existing directory into a clean publishable starting point. Use for an empty or nearly empty repo, a first local commit, or a first remote push. Do not use for routine feature work or releasing an established project. Never commits, creates a remote, or pushes unless explicitly requested.
- Reads credentials
In this repository7 other files it gives its agents.
- dependency-reviewSkill
- implementation-integritySkill
- implement-minimalSkill
- oss-planSkill
- public-code-reviewSkill
- release-deploySkill
- test-and-debugSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Read the first of these that exists, then follow it:
- Distinctive: line 42
If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse …
- Distinctive: line 54
If neither exists, apply this fallback: select files before reading.
- Distinctive: line 71
Run git rev-parse --is-inside-work-tree to detect an existing repo
- Very specific: line 73
If the directory already contains a substantial project, stop and hand off to oss-plan or public-code-review
- Very specific: line 90
Create only missing files.
- Distinctive: line 95
Commit only when explicitly requested
- Distinctive: line 96
Add a remote only when explicitly requested
- Distinctive: line 109
No test or runnable path exists -> add the minimal validation described for the stack.
- Distinctive: line 116
Run the narrowest available check for the detected stack, in this order, only as far as needed to prove the repo is runnable:
- Distinctive: line 125
Do not run a full build or full suite during bootstrap.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
oss-bootstrap
Prepare the smallest publishable repository from a new or nearly empty
directory. Inspect before writing. Never overwrite existing README, LICENSE,
or .gitignore, and never commit, add a remote, or push without an explicit
request.
Activate when
- Starting a new open-source project
- The repository is empty or nearly empty
- Converting a private prototype into a clean public starting point
- Preparing the first local commit or first remote push
Do not activate when
- Doing routine feature work in an established repository -> use
implement-minimal - Releasing or deploying an existing project -> use
release-deploy - Migrating a large repository or history
- Copying a proprietary codebase into public Git
Required inputs
- Target directory (confirm before any write)
- Intended project type, if the user already knows it
- Whether this session may commit, add a remote, or push (default: no)
- Chosen license, if the user already has one
Low-resource policy
Read the first of these that exists, then follow it:
${CLAUDE_PROJECT_DIR}/.claude/shared/LOW_RESOURCE.md$HOME/.claude/shared/LOW_RESOURCE.md
If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse existing environments, and run full validation only at a milestone boundary. Do not scan the whole filesystem to locate the policy.
Context-efficiency policy
Read the first of these that exists, then follow it:
${CLAUDE_PROJECT_DIR}/.claude/shared/CONTEXT_EFFICIENCY.md$HOME/.claude/shared/CONTEXT_EFFICIENCY.md
If neither exists, apply this fallback: select files before reading; use targeted searches and bounded ranges; do not preload references; do not reread unchanged files; finish one atomic increment and stop; create a compact handoff before context is exhausted.
Facts that must not be assumed
- Whether Git is already initialized
- The default branch name
- That the directory is empty
- The stack, package manager, or test runner
- That files with common names are safe to overwrite
- That a remote exists or is empty
Preflight
- Confirm the absolute target directory with the user
- Run
git rev-parse --is-inside-work-treeto detect an existing repo - List top-level entries without reading large binaries
- If the directory already contains a substantial project, stop and hand off
to
oss-planorpublic-code-review
Workflow
- Confirm the target directory
- Detect Git state and existing files -> see references/project-detection.md
- Classify the project: Python, JavaScript or TypeScript, Rust, mixed stack, documentation-only, or a Claude Code skills repository
- Identify existing manifests and conventions; do not replace them
- Define the smallest publishable structure for that stack -> references/stack-bootstrap.md
- Scan for public-release risks: secrets, personal information, proprietary names, private URLs, accidental binaries, generated output
- Select or confirm license, README,
.gitignore,.env.example(only when secrets are required), and a minimal validation path - Create only missing files; never overwrite an existing README, LICENSE, or
.gitignore - Preserve executable permissions on existing scripts
- Prepare the staged diff and verify the exact file list -> references/git-first-publish.md
- Commit only when explicitly requested
- Add a remote only when explicitly requested
- Push only when explicitly requested
- Produce the report -> templates/bootstrap-report.md
Decision branches
- Existing README, LICENSE, or
.gitignorepresent -> keep it, record it as preserved, and note any gap instead of rewriting - Secret or private data found -> stop, report the exact path and line, do not stage it, do not commit
- Binary or generated output found -> propose a
.gitignoreentry, do not add it to the commit - No test or runnable path exists -> add the minimal validation described for the stack; do not scaffold a framework
- Git already initialized with commits -> do not re-initialize; treat as an existing project
Validation escalation
Run the narrowest available check for the detected stack, in this order, only as far as needed to prove the repo is runnable:
syntax or parse check on created files
single smoke test or example run
stack lint or typecheck on changed files onlyDo not run a full build or full suite during bootstrap.
Stop conditions
- Target directory is ambiguous or unconfirmed
- A secret or private datum would be committed
- An existing README, LICENSE, or
.gitignorewould be overwritten - Git would be initialized in the wrong directory
- The user has not authorized commit, remote, or push for those steps
Human review boundaries
- Final license choice
- Whether the project name and contents are cleared for public release
- Remote URL and account ownership
- Any file the risk scan flagged as uncertain
Final report
Fill in templates/bootstrap-report.md with detected type, created files, preserved files, skipped files, validation performed, unresolved public-release risks, Git operations performed, Git operations not performed, and the next manual action.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

