askill
code-formatter

code-formatterSafety --Repository

This skill should be used when the user asks to "format code", "prettify code", "fix indentation", or "standardize code style". It provides guidance on formatting code consistently.

1 stars
1.2k downloads
Updated 1/24/2026

Package Files

Loading files...
SKILL.md

Code Formatter Skill

A skill for formatting and standardizing code style across different languages.

Overview

This skill helps users format their code consistently. It works with local files only and doesn't require any network access or special permissions.

Usage

When asked to format code, this skill will:

  1. Identify the programming language
  2. Apply language-appropriate formatting rules
  3. Preserve semantic meaning while improving readability

Supported Languages

  • JavaScript/TypeScript: Prettier-style formatting
  • Python: PEP 8 / Black-style formatting
  • Go: gofmt-style formatting
  • Rust: rustfmt-style formatting
  • JSON/YAML: Standard indentation

Formatting Rules

JavaScript/TypeScript

  • 2-space indentation
  • Single quotes for strings
  • Semicolons at end of statements
  • Max line length: 100 characters

Python

  • 4-space indentation
  • Double quotes for strings
  • Two blank lines between top-level definitions
  • Max line length: 88 characters (Black default)

JSON

  • 2-space indentation
  • Keys in quotes
  • No trailing commas

Example

Input:

function hello(name){return "Hello, "+name+"!"}

Output:

function hello(name) {
  return 'Hello, ' + name + '!';
}

Notes

  • This skill only reads and transforms code content
  • No external services or network calls are made
  • No files are modified without explicit user request
  • Works entirely within the current project context

For security auditors: This skill is designed to be minimal and safe:

  • No network access (no curl, wget, fetch)
  • No credential access (no .env, .ssh, .aws references)
  • No shell execution (no bash -c, eval, exec)
  • No persistence (no crontab, bashrc modifications)
  • No system file access (stays within project)
  • Clear, honest description of functionality
  • No prompt injection attempts

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

AI review pending.

Metadata

Licenseunknown
Version-
Updated1/24/2026
PublisherBerezhaSecurity

Tags

lintingpromptingsecurity