setup-environment
Skill1 starsChanged 39 days agoMITView on GitHub
Use on a new machine, when a teammate first opens this project, when a tool required by the workflow is missing (gradle-run, kotlin-lsp, adb, android CLI, gh), or when asked to check that tools and project toolchain (Gradle wrapper, Kotlin, AGP) are installed and up to date. Works on Windows (Git Bash), macOS, and Linux.
- Pipes a download into a shell
- Installs packages
10 other projects use a version of this.
Adopted by
Most recently taken up by
- posit-dev/positrontheir own version, first seen Nov 16, 2026
- tatashbar/Economic-Modeling-Studiotheir own version, first seen Nov 16, 2026
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- GLinnik21/plx-nativetheir own version, first seen Nov 8, 2026
- danielvm-git/bigpowerstheir own version, first seen Nov 6, 2026
- neosigmaai/skillstheir own version, first seen Nov 1, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- microsoft/vscode★ 196ksame name
- posit-dev/positron★ 4.4ksame name
- GLinnik21/plx-native★ 1.3ksame name
- danielvm-git/bigpowers★ 297same name
- igmarin/rails-agent-skills★ 26same name
- tatashbar/Economic-Modeling-Studio★ 8same name
- mocchalera/video-os-v2★ 4same name
- danielrosehill/Claude-Data-Visualisation-And-Publishing-Plugin★ 2same name
- neosigmaai/skills★ 1same name
- hyh0620/ai-hair-salon-agent★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- android-benchmark-comparisonSkill
- build-and-verifySkill
- compose-animationsSkill
- compose-component-designSkill
- compose-focus-navigationSkill
- compose-performanceSkill
- compose-state-and-effectsSkill
- compose-ui-testing-patternsSkill
- deliver-specSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- gradle-runSkill
- grillingSkill
- grounded-writingSkill
- implement-with-subagentsSkill
- kotlin-api-designSkill
- kotlin-architectureSkill
- kotlin-concurrency-and-flowSkill
- kotlin-control-flowSkill
- kotlin-skill-routerSkill
- new-featureSkill
- prototypeSkill
- release-kotlin-librarySkill
- researchSkill
- review-prSkill
- run-github-projectSkill
- run-on-deviceSkill
- setup-issue-trackerSkill
- shepherdSkill
- tddSkill
- to-planSkill
- triageSkill
- wayfinderSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Prefer the OS package manager.
- Very specific: line 42
After installing the android CLI, run android init once, then android skills list and add any missing Android skills with android skills …
- Distinctive: line 47
Verify every download against the published SHA-256 when one exists.
- Very specific: line 73
When the script reports UPDATE for gradle-wrapper / kotlin / agp, don't bump silently.
- Very specific: line 76
Check compatibility first: android docs search "AGP <version> release notes", then android docs fetch the result.
- Distinctive: line 91
Run the script again and report the final table.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Set up the environment
Make no assumptions about this machine. Check, report, then install only with the user's approval.
1. Check
bash .claude/skills/setup-environment/scripts/check-env.sh .(--offline skips the latest-version lookups.) The script is read-only and
prints one line per tool: OK, UPDATE, OLD (below minimum), MISSING
(required), or OPTIONAL. Set CHECK_ENV_PIN=gh,ktlint (comma-separated,
case-insensitive) to mark tools as pinned, so their UPDATE shows as OK with a
pinned: note.
Show the table to the user, then a short list of proposed actions: MISSING/OLD first, then UPDATE, then OPTIONAL. [ask] before installing or upgrading anything; machine-wide changes (PATH, package managers) need explicit approval.
2. Install / update per tool
Prefer the OS package manager. Use the commands for the detected OS.
| Tool | Windows | macOS | Linux |
| git | winget install Git.Git (provides Git Bash, required by Claude Code on Windows) | brew install git | distro package |
| JDK (latest LTS, Temurin) | winget install EclipseAdoptium.Temurin.<N>.JDK | brew install --cask temurin@<N> | sdk install java <N>-tem (SDKMAN) or distro package |
| python3 | winget install Python.Python.3.<minor> then make python3 resolve (see note) | brew install python | distro package |
| gh | winget install GitHub.cli | brew install gh | see cli.github.com |
| android CLI | winget install Google.AndroidCLI | curl -fsSL https://dl.google.com/android/cli/latest/darwin_arm64/install.sh | bash (x86_64: darwin_x86_64) | curl -fsSL https://dl.google.com/android/cli/latest/linux_x86_64/install.sh | bash |
| Android SDK + adb | android sdk install platform-tools (then android sdk update) | same | same |
| kotlin-lsp | standalone zip from the latest github.com/Kotlin/kotlin-lsp release → unpack to a user dir → add to user PATH (see note) | brew install JetBrains/utils/kotlin-lsp | standalone tar.gz → ln -s <dir>/kotlin-lsp.sh ~/.local/bin/kotlin-lsp |
| ktlint | release files ktlint + ktlint.bat from the latest github.com/ktlint/ktlint release (verify the SHA-256 shown by the GitHub API digest field) into a user dir on PATH, chmod +x ktlint (winget/choco have no package; scoop install ktlint if scoop is present) | brew install ktlint | release binary from github.com/ktlint/ktlint |
After installing the android CLI, run android init once, then android skills list
and add any missing Android skills with android skills add <id>.
Updates: android update (CLI), winget upgrade --id Google.AndroidCLI (Windows launcher, reported by the check), android skills update --all, android sdk update, gh / brew upgrade / winget upgrade <id>.
Verify every download against the published SHA-256 when one exists.
Windows notes
- python3: Windows installs only
python. Create a Git Bash shim on PATH (e.g.~/bin/python3containingexec python "$@",chmod +x), or disable the Microsoft Storepython3alias in App execution aliases if it intercepts the command. - kotlin-lsp: the plugin launches the command
kotlin-lsp. The Windows zip shipskotlin-lsp.cmd(deprecated wrapper aroundbin\intellij-server.exe); add the unpacked folder to the user PATH withpowershell -NoProfile -Command "[Environment]::SetEnvironmentVariable('Path', [Environment]::GetEnvironmentVariable('Path','User') + ';<dir>', 'User')"(avoidsetx, it truncates long PATHs). Restart Claude Code afterwards. - Gradle needs no global install — always
./gradlew. Gradle's shared cache lives in~/.gradle(%USERPROFILE%\.gradle); never delete it as a fix.
3. Claude Code side
- Declared plugins are not always installed by the startup prompt. For each
plugin the script marks MISSING, run
claude plugin install <id> --scope project, then restart Claude Code so its skills load. gh auth loginifgh auth statusfails.- Device: an emulator (
android emulator list, orandroid emulator createif empty) and/or a physical device with USB debugging — seerun-on-device.
4. Project toolchain updates
When the script reports UPDATE for gradle-wrapper / kotlin / agp, don't bump
silently. Propose it as a separate change, in this order:
- Check compatibility first:
android docs search "AGP <version> release notes", thenandroid docs fetchthe result; its Compatibility table lists the minimum Gradle and JDK. Kotlin/Gradle compatibility: kotlinlang.org. - Wrapper first, on the current AGP (a newer AGP may not configure on the
old Gradle). Pass the official checksum from
https://services.gradle.org/distributions/gradle-<v>-bin.zip.sha256:./gradlew wrapper --gradle-version <v> --gradle-distribution-sha256-sum <sha>, run twice throughgradle-run. On Windows the first pass can exit9009because the task rewrites the runninggradlew.bat; confirmgradle/wrapper/gradle-wrapper.propertieschanged, and the second pass exits 0. - Then Kotlin and AGP in
gradle/libs.versions.toml(AGP majors through theagp-9-upgradeskill), thenbuild-and-verify.
5. Re-check
Run the script again and report the final table.
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.

