format-code

Format and lint code across an Nx-based monorepo.

1|Updated Sep 15, 2023
One-click install
npx skills add https://github.com/emiljuchnikowski/smartsoft001 --skill format-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: format-code
Source: https://github.com/emiljuchnikowski/smartsoft001/tree/main/packages/shared/claude-plugins/src/plugins/smart/skills/format-code
Command: npx skills add https://github.com/emiljuchnikowski/smartsoft001 --skill format-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintains consistent code formatting and fixes lint issues across a large Nx-based monorepo, reducing style drift and CI failures.

Core Features & Use Cases

  • Automated formatting: runs Prettier/format across all apps and libraries to standardize code style.
  • Lint auto-fix: applies eslint --fix across projects to repair issues automatically.
  • CI readiness: ensures formatting and linting rules are enforced in pre-commit hooks and CI pipelines.

Quick Start

Format and lint the entire monorepo with the project's format script.

Frequently Asked Questions about format-code

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

FAQPage Schema
How do I format and lint an Nx monorepo automatically?

To format and lint an Nx monorepo automatically, run a project format script that executes Nx format and eslint --fix across all apps and libraries to standardize code style and repair issues automatically.

What is the best way to auto-fix lint issues across multiple Nx projects?

The best way to auto-fix lint issues across multiple Nx projects is to apply eslint --fix across the workspace, which automatically repairs style violations and reduces CI failures in a large monorepo.

Do I need Node.js 24 to run Nx format and prettier scripts?

Yes, you need Node.js 24 to run Nx format and prettier scripts correctly. The automated formatting and linting process requires this specific environment along with existing eslint and prettier configurations.

How does Prettier formatting work in a large Nx workspace?

Prettier formatting in a large Nx workspace works by running across all apps and libraries to standardize code style. This automated formatting prevents style drift and ensures consistent formatting rules are enforced.

Can I enforce prettier and eslint rules in CI pipelines for a monorepo?

Yes, you can enforce prettier and eslint rules in CI pipelines for a monorepo. Automating these checks ensures formatting and linting rules are enforced in pre-commit hooks and CI pipelines to prevent failures.

Why does Nx format fail to run correctly in my workspace?

Nx format may fail to run correctly if your workspace lacks the required Node.js 24 environment or proper eslint and prettier configurations. These dependencies are required to execute formatting and linting successfully.