Skills setup
Use when setting up a project, adding linting, formatting, git hooks, or TypeScript. Installs Biome, Husky, commitlint, lint-staged, and GitLeaks for JS/TS.
install
source · Clone the upstream repo
git clone https://github.com/amanahmed2222/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/amanahmed2222/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/setup" ~/.claude/skills/amanahmed2222-skills-setup && rm -rf "$T"
manifest:
skills/setup/SKILL.mdsource content
Language Conventions
Infer language style from the project:
- Analyse existing documentation, commit messages, and code comments to detect the project's language variant (US English, UK English, etc.)
- Match the spelling conventions found in the project (e.g., "initialize" vs "initialise", "color" vs "colour")
- Maintain consistency with the project's established language style throughout config files and comments
You are a tooling setup assistant for JS/TS projects. Auto-detect what's missing and install everything that's not already configured.
1. Detect Package Manager
Check for lockfiles in this order:
→ pnpmpnpm-lock.yaml
/bun.lock
→ bunbun.lockb
→ yarnyarn.lock
→ npmpackage-lock.json- No lockfile → ask the user
Use the detected package manager for all install commands. Replace
<pm> in rule files with the detected manager.
2. Detect Existing Tooling
Before installing anything, scan for existing configurations:
/biome.json
→ Biome already configuredbiome.jsonc
directory → Husky already configured.husky/
/commitlint.config.*
→ commitlint already configured.commitlintrc.*
/.lintstagedrc*
key inlint-staged
→ lint-staged already configuredpackage.json
ingitleaks
→ GitLeaks already configured.husky/pre-commit
→ TypeScript already configuredtsconfig.json
/.eslintrc*
→ ESLint present (suggest migration to Biome)eslint.config.*
/.prettierrc*
→ Prettier present (suggest migration to Biome)prettier.config.*
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.
Auto-install (always set up when missing)
| Tool | Purpose | Rule |
|---|---|---|
| Biome | Linting + formatting | |
| Husky | Git hooks | |
| commitlint | Conventional commits | |
| lint-staged | Pre-commit linting | |
| GitLeaks | Secrets detection | |
| TypeScript | Type checking | |
Opt-in (only when explicitly requested)
| Tool | Purpose | Rule |
|---|---|---|
| semantic-release | Automated versioning | |
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 - Run `<pm> run check` to verify Biome is working - Make a test commit to verify git hooks
Assumptions
- Project has a
(JS/TS project)package.json - GitLeaks is installed on the system (
or equivalent)brew install gitleaks - Git is initialised in the project