Use when setting up a project, adding linting, formatting, git hooks, or type checking, or installing agent skills with skills.sh. Detects the language and installs that ecosystem's lint/format/hooks toolchain (JS/TS, Python, Go, Rust).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tartinerlabs-setup)
---
name: setup
description: Use when setting up a project, adding linting, formatting, git hooks, or type checking, or installing agent skills with skills.sh. Detects the language and installs that ecosystem's lint/format/hooks toolchain (JS/TS, Python, Go, Rust).
license: MIT
allowed-tools: Read Glob Write Edit Skill Bash(nub *) Bash(nubx *) Bash(pnpm *) Bash(pnx *) Bash(npx *) Bash(bunx *) Bash(npm *) Bash(bun *) Bash(yarn *) Bash(uv *) Bash(poetry *) Bash(pdm *) Bash(pip *) Bash(ruff *) Bash(mypy *) Bash(go *) Bash(gofmt *) Bash(goimports *) Bash(golangci-lint *) Bash(cargo *) Bash(rustfmt *) Bash(rustup *) Bash(pre-commit *) Bash(gitleaks *) Bash(trufflehog *)
model: haiku
effort: low
compatibility: Any language project; sets up that ecosystem's lint/format/hooks + a git secret scanner (GitLeaks default; TruffleHog accepted) (JS/TS best-supported, Python, Go and Rust via references/)
metadata:
short-description: Lint, format, and git hook setup.
title: Set up code checks
goal: keep-code-tidy
audience: developers
---
You are a tooling setup assistant. Detect the project's language, then auto-detect what's missing and install everything that's not already configured for that ecosystem.
## 0. Detect Language and Route
Detect the project's language from its manifest, then follow the matching setup guide:
| Language | Detected by | Setup guide |
|----------|-------------|-------------|
| **JS/TS** | `package.json` | the `rules/*.md` files below (Biome · Husky · commitlint · lint-staged · GitLeaks · TypeScript) |
| **Python** | `pyproject.toml`, `requirements*.txt`, `setup.py`, `setup.cfg` | [references/python.md](references/python.md) (Ruff · mypy · pre-commit · GitLeaks) |
| **Go** | `go.mod` | [references/go.md](references/go.md) (gofmt · golangci-lint · pre-commit · GitLeaks) |
| **Rust** | `Cargo.toml` | [references/rust.md](references/rust.md) (rustfmt · Clippy · pre-commit · GitLeaks) |
Load **only** the guide for the detected language. For a language not listed (e.g. Ruby), set up its standard formatter/linter and wire the project's secret scanner into a pre-commit hook, following the same shape; note that first-class support for it is not yet bundled. A secret scanner (GitLeaks default; TruffleHog accepted) is set up in **every** ecosystem — it is cross-language. So is `.worktreeinclude` ([rules/worktreeinclude.md](rules/worktreeinclude.md)) when the project has gitignored local files a worktree needs, and the skills.sh check ([rules/skills-sh.md](rules/skills-sh.md)) when the project uses it or the user asks to install skills with it.
The rest of this file (Steps 1-5) is the **JS/TS** path. For Python, Go or Rust, follow the referenced guide (including [rules/worktreeinclude.md](rules/worktreeinclude.md) and [rules/skills-sh.md](rules/skills-sh.md)), then jump to Step 5 (Supply Chain Hardening) which applies to any ecosystem.
## 1. Detect Package Manager
Follow [rules/package-manager.md](rules/package-manager.md). It covers how to detect the manager and the `<pm>` and `<pmx>` placeholders the other rule files write their commands with. When it detects pnpm, also set up what [references/pnpm.md](references/pnpm.md) describes — the `devEngines` declarations for pnpm and Node.
## 2. Detect Existing Tooling
Before installing anything, check what the project already has, using the signals in [rules/existing-tooling.md](rules/existing-tooling.md).
**Skip tools that are already configured.** Report what was skipped at the end.
## 3. Install Tools
Read each rule file for detailed setup instructions and config files.
> **This stack is opinionated by design.** Tooling choices are subjective — Biome vs ESLint/Prettier, conventional commits vs none, Husky vs another hook manager are all legitimate positions. Each rule file documents its choice under `### Why This Matters` and names the mainstream alternative under `### Alternatives`. Two principles: you may decline any tool, and a deliberately-configured alternative is **kept, not swapped** — Step 2's detection exists so the skill fills genuine gaps rather than overriding working setups. Secret scanning is the one thing recommended for every project (GitLeaks default; TruffleHog accepted); only the scanner is swappable, not whether to scan.
### Auto-install (always set up when missing)
| Tool | Purpose | Rule |
|------|---------|------|
| Biome | Linting + formatting | [rules/biome.md](rules/biome.md) |
| Husky | Git hooks | [rules/husky.md](rules/husky.md) |
| commitlint | Conventional commits | [rules/commitlint.md](rules/commitlint.md) |
| lint-staged | Pre-commit linting | [rules/lint-staged.md](rules/lint-staged.md) |
| Secret scanner | Secrets detection | [rules/secret-scanner.md](rules/secret-scanner.md) |
| TypeScript | Type checking | [rules/typescript.md](rules/typescript.md) |
| `.worktreeinclude` | Copy gitignored local files into worktrees (Claude Code; only when such files exist) | [rules/worktreeinclude.md](rules/worktreeinclude.md) |
| skills.sh | Install agent skills safely and keep them committed and restorable (when skills.sh is in use or requested) | [rules/skills-sh.md](rules/skills-sh.md) |
### Opt-in (only when explicitly requested)
| Tool | Purpose | Rule |
|------|---------|------|
| semantic-release | Automated versioning | [rules/semantic-release.md](rules/semantic-release.md) |
## 4. Output Summary
After all tools are installed, display a summary:
```
## Setup Complete
### Installed
- [list of tools installed]
### Skipped (already configured)
- [list of tools skipped with reason]
### Next Steps
- [how to verify each installed tool, from its rule file]
- Make a test commit to verify git hooks
```
## 5. Supply Chain Hardening
After tooling setup is complete, run the `deps` skill (`security:deps` in Claude Code) when it is available, to harden the ecosystem's dependency supply chain (it detects the language too). It ships in the separate `security` collection, so it may not be installed — if it is not, skip this step silently.
Requires git initialised in the project, and a secret scanner installed on the system ([rules/secret-scanner.md](rules/secret-scanner.md) has the install command) — it is wired into the pre-commit hook in every ecosystem.