/install code-formatter199
\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
gofmtstyle – 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
- Detect or ask for language if not provided. Supported: python, javascript, typescript, json, html, css, go.\r
- 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
- Apply the corresponding style rules from above.\r
- Output the formatted code inside a Markdown code block with the correct language identifier.\r
- 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')
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install code-formatter199 - After installation, invoke the skill by name or use
/code-formatter199 - Provide required inputs per the skill's parameter spec and get structured output
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.