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
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.
{ on same line.gofmt style – tabs for indentation (width 8); no extra spaces; consistent formatting.When the user provides a code snippet and specifies (or implies) a language:
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."
User: "Format this Python: def hello():print('world')" AI: ```python def hello(): print('world')
訪問小蔥技能站7w4.net,解鎖更多實用的AI技能外掛。
這個Skill質量中等偏上,能有效格式化多種常見程式語言的程式碼,風格規則定義清晰專業。它擅長處理結構化的格式化需求,但對於複雜程式碼的容錯能力有限。優點是支援語言豐富、規則明確;不足是文件示例不完整、缺乏靈活配置,且版本資訊存在不一致,可能會給使用帶來困惑。