lint-and-format
Runs linting and formatting checks before committing. Use this skill after writing or modifying code to ensure it passes all linters and formatters before creating a commit.
Best use case
lint-and-format is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Runs linting and formatting checks before committing. Use this skill after writing or modifying code to ensure it passes all linters and formatters before creating a commit.
Teams using lint-and-format should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/lint-and-format/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How lint-and-format Compares
| Feature / Agent | lint-and-format | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Runs linting and formatting checks before committing. Use this skill after writing or modifying code to ensure it passes all linters and formatters before creating a commit.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Lint & Format Skill You ensure all code passes the project's linters and formatters before it gets committed. This mirrors the lefthook pre-commit hooks and CI checks so problems are caught immediately. ## When to act - After writing or modifying any source file, **before creating a commit**. - When the user asks to fix lint or formatting issues. - When a commit or CI fails due to formatting. ## Commands ### Elixir (lib/, test/, config/) ```bash # Check formatting (what CI runs) mise run lint:core # Auto-fix formatting mise run format:core ``` ### TypeScript/JavaScript (cli/) ```bash # ESLint check cd cli && pnpm lint # ESLint auto-fix cd cli && pnpm lint:fix # Prettier check cd cli && pnpm format:check # Prettier auto-fix cd cli && pnpm format ``` ### Run everything ```bash # Check all (what CI runs) mise run lint # Fix all mise run format ``` ## Workflow 1. After making code changes, run the relevant lint/format check commands. 2. If there are failures, auto-fix them using the fix variants. 3. If auto-fix changes files, review the diff to make sure nothing unexpected changed. 4. Only then proceed with staging and committing. ## Rules 1. **Never commit code that fails linting or formatting checks.** 2. Prefer auto-fix (`mise run format`, `lint:fix`) over manual edits when possible. 3. If a lint rule seems wrong for a specific case, discuss with the user before adding a suppression comment. 4. Do not disable or weaken lint rules without explicit approval.
Related Skills
dbt-transformation-patterns
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or ...
verify-information-rule
This rule ensures that the AI always verifies information before presenting it, avoiding assumptions and speculation.
lint-and-validate
Automatic quality control, linting, and static analysis procedures. Use after every code modification to ensure syntax correctness and project standards. Triggers onKeywords: lint, format, check, validate, types, static analysis.
aws-cloudformation-rds
AWS CloudFormation patterns for Amazon RDS databases. Use when creating RDS instances (MySQL, PostgreSQL, Aurora), DB clusters, multi-AZ deployments, parameter groups, subnet groups, and implementing template structure with Parameters, Outputs, Mappings, Conditions, and cross-stack references.
adf-format-json-schema
Query Atlassian Document Format (ADF) JSON schema definitions to understand ADF node and mark types. Use this skill when implementing ADF dataclass nodes/marks, or when user asks about ADF structure, ADF nodes, ADF marks, or Atlassian Document Format implementation.
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
moai-lang-r
R 4.4+ best practices with testthat 3.2, lintr 3.2, and data analysis patterns.
moai-lang-python
Python 3.13+ development specialist covering FastAPI, Django, async patterns, data science, testing with pytest, and modern Python features. Use when developing Python APIs, web applications, data pipelines, or writing tests.
moai-icons-vector
Vector icon libraries ecosystem guide covering 10+ major libraries with 200K+ icons, including React Icons (35K+), Lucide (1000+), Tabler Icons (5900+), Iconify (200K+), Heroicons, Phosphor, and Radix Icons with implementation patterns, decision trees, and best practices.
moai-foundation-trust
Complete TRUST 4 principles guide covering Test First, Readable, Unified, Secured. Validation methods, enterprise quality gates, metrics, and November 2025 standards. Enterprise v4.0 with 50+ software quality standards references.
moai-foundation-memory
Persistent memory across sessions using MCP Memory Server for user preferences, project context, and learned patterns
moai-foundation-core
MoAI-ADK's foundational principles - TRUST 5, SPEC-First TDD, delegation patterns, token optimization, progressive disclosure, modular architecture, agent catalog, command reference, and execution rules for building AI-powered development workflows