← Back to Skills Marketplace
hahg199

code-formatter199

by hahg199 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
56
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install code-formatter199
Description
Format Python, JavaScript, TypeScript, JSON, HTML, CSS, and Go code snippets
README (SKILL.md)

\r \r

Description\r

This skill takes raw, poorly indented code and returns a nicely formatted, readable version following community standard style guides. It supports multiple languages and provides clear error messages when language is not recognized or code is invalid.\r \r

Supported Languages & Style Rules\r

  • Python: PEP 8 – 4 spaces per indentation level; no unnecessary blank lines; single quotes preferred.\r
  • JavaScript (JS): 2 spaces per level; semicolons optional but consistent; { on same line.\r
  • TypeScript (TS): same as JavaScript, plus explicit return types for functions when possible.\r
  • JSON: 2 spaces; no trailing commas; no comments; keys in double quotes.\r
  • HTML: 2 spaces per level; inline elements should not be broken across lines; self-closing tags for void elements.\r
  • CSS: 2 spaces; one selector per line; opening brace on same line; space after colon.\r
  • Go: use gofmt style – tabs for indentation (width 8); no extra spaces; consistent formatting.\r \r

Instructions\r

When the user provides a code snippet and specifies (or implies) a language:\r \r

  1. Detect or ask for language if not provided. Supported: python, javascript, typescript, json, html, css, go.\r
  2. Check for syntax errors – if the code is clearly invalid (e.g., unmatched braces, missing quotes), inform the user and suggest correction before formatting.\r
  3. Apply the corresponding style rules from above.\r
  4. Output the formatted code inside a Markdown code block with the correct language identifier.\r
  5. Add a brief explanation of what changes were made (e.g., "Added 2-space indentation and fixed spacing after commas").\r \r If the language is not supported, respond with: "Sorry, I don't support formatting for {language} yet. Supported languages: python, javascript, typescript, json, html, css, go."\r \r

Examples\r

\r

Example 1: Python\r

User: "Format this Python: def hello():print('world')"\r AI: \r

def hello():\r
    print('world')
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install code-formatter199
  3. After installation, invoke the skill by name or use /code-formatter199
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Added HTML, CSS, and Go to supported languages. - Now provides clear error messages for invalid code or unsupported languages. - Outputs formatted code in a Markdown code block with language identifier. - Includes a brief explanation of formatting changes after each output. - Updated instructions and examples for improved clarity.
Metadata
Slug code-formatter199
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is code-formatter199?

Format Python, JavaScript, TypeScript, JSON, HTML, CSS, and Go code snippets. It is an AI Agent Skill for Claude Code / OpenClaw, with 56 downloads so far.

How do I install code-formatter199?

Run "/install code-formatter199" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is code-formatter199 free?

Yes, code-formatter199 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does code-formatter199 support?

code-formatter199 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created code-formatter199?

It is built and maintained by hahg199 (@hahg199); the current version is v1.0.0.

💬 Comments