code-style

Configure Ruff, Prettier, ESLint, and mypy with pre-commit hooks for Python and TypeScript.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/zhizhunbao/ai-dev-config --skill code-style-zhizhunbao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-style
Source: https://github.com/zhizhunbao/ai-dev-config/tree/main/core/skills/dev-code_style
Command: npx skills add https://github.com/zhizhunbao/ai-dev-config --skill code-style-zhizhunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining consistent code formatting, style, and quality across a project, preventing style inconsistencies and reducing manual review time.

Core Features & Use Cases

  • Automated Formatting: Applies consistent formatting rules using tools like Prettier and Ruff.
  • Linting & Error Detection: Identifies and fixes style violations and potential errors with ESLint and Ruff.
  • Type Checking: Ensures type safety with mypy and TypeScript.
  • Pre-commit Hooks: Integrates checks into the commit workflow to catch issues early.
  • Use Case: When starting a new project or onboarding new developers, use this Skill to set up automated code style checks and formatters, ensuring all code adheres to team standards from the beginning.

Quick Start

Configure the project's code style and set up pre-commit hooks by running the appropriate setup commands for Python and TypeScript.

Frequently Asked Questions about code-style

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up pre-commit hooks for automated code style checks?

To set up pre-commit hooks for automated code style checks, you can configure this Skill to integrate linters and formatters like Ruff, Prettier, and ESLint into your commit workflow, catching style violations early.

What is the best way to maintain consistent code formatting across Python and TypeScript projects?

Maintaining consistent code formatting across Python and TypeScript projects requires standardizing configurations for tools like Ruff and Prettier, which this Skill manages to enforce consistent code appearance and reduce manual review time.

Can I use Ruff and ESLint together to enforce code quality in a full-stack project?

Yes, you can use Ruff and ESLint together to enforce code quality in a full-stack project. This Skill manages configurations for both tools, handling Python linting and TypeScript error detection simultaneously.

How do I configure mypy and TypeScript for type checking to ensure code safety?

To configure mypy and TypeScript for type checking and ensure code safety, this Skill applies standardized type checking rules across your project, identifying potential type errors before code is committed.

Why should I use automated linters and formatters instead of manual code review?

Using automated linters and formatters instead of manual code review prevents style inconsistencies and significantly reduces manual review time by automatically identifying and fixing style violations and potential errors.