Xpersona
C

code-formatter199

CLAWHUB · Unverified

Format Python, JavaScript, TypeScript, JSON, HTML, CSS, and Go code snippets Skill: code-formatter199 Owner: hahg199 Summary: Format Python, JavaScript, TypeScript, JSON, HTML, CSS, and Go code snippets Tags: latest:1.0.0 Version history: v1.0.0 | 2026-05-22T14:56:36.768Z | user - 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

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17e841x48jmj2bhx9g4zz7eds869xkc:code-formatter199
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-hahg199-code-formatter199/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

4,588 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: code-formatter
description: "Format Python, JavaScript, TypeScript, JSON, HTML, CSS, and Go code snippets"
version: 1.1.0
author: hahg199
tags:
  - code
  - formatter
  - python
  - javascript
  - typescript
  - json
  - html
  - css
  - go
---

## Description
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.

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

## Instructions
When the user provides a code snippet and specifies (or implies) a language:

1. **Detect or ask for language** if not provided. Supported: python, javascript, typescript, json, html, css, go.
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.
3. **Apply the corresponding style rules** from above.
4. **Output the formatted code inside a Markdown code block** with the correct language identifier.
5. **Add a brief explanation** of what changes were made (e.g., "Added 2-space indentation and fixed spacing after commas").

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."

## Examples

### Example 1: Python
**User:** "Format this Python: def hello():print('world')"
**AI:** 
```python
def hello():
    print('world')

_meta.json

{
  "ownerId": "kn73rm0shjes1zfwt8ng8hpw198688sh",
  "slug": "code-formatter199",
  "version": "1.0.0",
  "publishedAt": 1779461796768
}

skill-card.md

## Description:

Format Python, JavaScript, TypeScript, JSON, HTML, CSS, and Go code snippets.

This skill is ready for commercial/non-commercial use.

## Publisher:

[hahg199](https://clawhub.ai/user/hahg199)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to reformat pasted code snippets into readable Markdown code blocks and receive a brief explanation of the formatting changes.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Formatted output may include incorrect syntax or unintended style changes because the skill provides manual formatting guidance rather than a guaranteed parser-backed formatter.

Mitigation: Review formatted output before using it in source code or configuration files.

## Reference(s):


## Skill Output:

**Output Type(s):** [text, markdown, code, guidance]

**Output Format:** [Markdown with fenced code blocks and a brief explanatory note]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Supports Python, JavaScript, TypeScript, JSON, HTML, CSS, and Go snippets.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to code-formatter199 and adjacent AI workflows.