checking-code-formatting

Detect code formatting issues across multiple programming languages.

13|2|Updated Jan 22, 2023
One-click install
npx skills add https://github.com/meirm/askGPT --skill checking-code-formatting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: checking-code-formatting
Source: https://github.com/meirm/askGPT/tree/main/src/askGPT/data/builtin_skills/code-formatting-checker
Command: npx skills add https://github.com/meirm/askGPT --skill checking-code-formatting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze code files for formatting issues and inconsistencies across languages.

Core Features & Use Cases

  • Trailing whitespace, line endings, indentation checks.
  • Language-specific checks for Python, JavaScript/TypeScript, Rust, Go.
  • Automated suggestions and optional formatter usage.

Quick Start

Run a formatting check on the current project: check code formatting for this repo

Frequently Asked Questions about checking-code-formatting

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

FAQPage Schema
How do I check code formatting issues across multiple programming languages?

Code formatting checks analyze source files for style inconsistencies across languages like Python, JavaScript, TypeScript, Rust, Go, and Java. This Skill scans your repository to detect trailing whitespace, mixed line endings, indentation problems, line-length violations, and language-specific style deviations, then produces a structured report with file paths, line numbers, and recommended fixes.

What formatting problems can be detected in my codebase?

The Skill identifies trailing whitespace, mixed line endings, indentation inconsistencies, line-length violations, blank-line problems, and language-specific style deviations. It targets common source files including .py, .js, .ts, .jsx, .tsx, .rs, .go, .java, .cpp, .c, and .h files across your entire repository or specified targets.

Can I run formatting checks on my entire repository or specific files?

Yes, you can run formatting checks on the entire repository or specify particular targets. The Skill analyzes your codebase comprehensively and produces a language-aware report detailing all formatting issues found with exact file paths and line numbers.

Does this Skill provide automated fix suggestions for formatting issues?

The Skill generates automated suggestions for detected formatting problems and can integrate with formatters for optional automated corrections. Each issue in the structured report includes recommended fixes to help you resolve style inconsistencies.

What's the difference between trailing whitespace and line-ending issues?

Trailing whitespace refers to extra spaces or tabs at the end of lines, while line-ending issues involve mixed line terminators (CRLF vs LF). The Skill detects both separately, allowing you to address each formatting inconsistency type independently across your codebase.

Related Skills