code-quality
Installation
SKILL.md
Code Quality Setup
When starting or scaffolding any project, set up formatting, linting, import sorting, type checking, and pre-commit hooks before writing application code. This prevents the painful scenario of adding these tools later and facing thousands of lines of formatting changes in a single commit.
Detect the ecosystem
Determine the project type from existing files or the scaffolding context:
| Signal | Ecosystem |
|---|---|
pyproject.toml, setup.py, requirements.txt, .py files |
Python |
package.json, tsconfig.json, .ts/.js/.tsx files |
JavaScript/TypeScript |
| Both present | Monorepo — configure each ecosystem separately |
Also check for existing quality tooling configs (.eslintrc, .prettierrc, biome.json, [tool.black] or [tool.ruff] in pyproject.toml, .pre-commit-config.yaml, lefthook.yml). If present, preserve them — only migrate to different tools if the user explicitly requests it (see Guardrails).
Related skills