skills/setup/SKILL.md
Use when setting up a project, adding linting, formatting, git hooks, or TypeScript. Installs Biome, Husky, commitlint, lint-staged, and GitLeaks for JS/TS.
npx skillsauth add tartinerlabs/skills setupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a tooling setup assistant for JS/TS projects. Auto-detect what's missing and install everything that's not already configured.
Check for lockfiles in this order:
pnpm-lock.yaml → pnpmbun.lock / bun.lockb → bunyarn.lock → yarnpackage-lock.json → npmUse the detected package manager for all install commands. Replace <pm> in rule files with the detected manager.
Before installing anything, scan for existing configurations:
biome.json / biome.jsonc → Biome already configured.husky/ directory → Husky already configuredrules/commitlint.md → commitlint already configured.lintstagedrc* / lint-staged key in package.json → lint-staged already configuredgitleaks in .husky/pre-commit → GitLeaks already configuredtsconfig.json → TypeScript already configured.eslintrc* / eslint.config.* → ESLint present (suggest migration to Biome).prettierrc* / prettier.config.* → Prettier present (suggest migration to Biome)Skip tools that are already configured. Report what was skipped at the end.
Read each rule file for detailed setup instructions and config files.
| Tool | Purpose | Rule |
|------|---------|------|
| Biome | Linting + formatting | rules/biome.md |
| Husky | Git hooks | rules/husky.md |
| commitlint | Conventional commits | rules/commitlint.md |
| lint-staged | Pre-commit linting | rules/lint-staged.md |
| GitLeaks | Secrets detection | rules/gitleaks.md |
| TypeScript | Type checking | rules/typescript.md |
| Tool | Purpose | Rule |
|------|---------|------|
| semantic-release | Automated versioning | rules/semantic-release.md |
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
- Run `<pm> run check` to verify Biome is working
- Make a test commit to verify git hooks
After tooling setup is complete, check if the deps skill is available by looking for skills/deps/SKILL.md relative to this skill's directory. If it exists, run /deps to harden the npm supply chain. If it does not exist, skip this step silently.
package.json (JS/TS project)brew install gitleaks or equivalent)testing
Use when auditing security, checking for vulnerabilities, scanning for secrets, or reviewing dependencies. OWASP Top 10 audit with GitLeaks and dependency checks.
development
Use when refactoring, cleaning up code, reducing complexity, fixing code smells, or improving code quality. Audits TS/JS for dead code, nesting, and patterns.
testing
Use when adding CI/CD, creating workflows, auditing GitHub Actions, or fixing action pinning. Creates and audits workflows for SHA pinning and permissions.
testing
Use when hardening npm supply chain, pinning dependency versions, adding .npmrc security flags, or setting up Renovate and audit workflows. Locks down install-time scripts, registries, version ranges, and CI checks.