Engineering
format avatar

format

Verify code style and formatting using Prettier and Stylelint without applying changes. Ensures consistent codebases by identifying issues in JS/TS/CSS/SCSS files.

Introduction

This skill provides a non-destructive way to validate project code quality by integrating industry-standard linting and formatting tools. Designed for developers and automated CI/CD pipelines, it analyzes the codebase for stylistic inconsistencies or rule violations without modifying the underlying files. By executing defined Prettier and Stylelint configurations, the agent identifies formatting discrepancies, syntax issues, and style violations across the repository.

The skill acts as a gatekeeper for code quality, providing a concise summary of the repository's health. When issues are detected, it reports the top three errors and suggests specific remediation commands, such as the companion format-fix skill. This helps maintain a clean, readable, and uniform codebase while preventing unintended side effects of automated formatting tools in sensitive environments.

  • Performs automated validation using Prettier for general code formatting and Stylelint for CSS/SCSS architecture.

  • Generates a concise status report indicating either successful validation (OK) or specific issue findings.

  • Identifies the top three most critical formatting or linting violations to help developers prioritize fixes.

  • Suggests actionable next steps by prompting the user to invoke the format-fix skill if errors are discovered.

  • Designed for use in pull request reviews, pre-commit workflows, or local development checks to ensure style compliance.

  • The skill assumes the project repository is configured with standard Prettier and Stylelint setup in the package.json file.

  • Input is triggered via the execution of the configured bash script, targeting the project source code.

  • Output is a textual summary displayed in the agent interface, listing total issues found if the check fails.

  • This utility is strictly read-only; it performs analysis but does not write or overwrite any project files.

  • It is highly recommended to run this check before merging any code changes to maintain consistent indentation, semi-colon usage, and CSS property order across the team.

Repository Stats

Stars
48
Forks
1
Open Issues
8
Language
JavaScript
Default Branch
main
Sync Status
Idle
Last Synced
May 3, 2026, 06:46 PM
View on GitHub