- Home
- Skills
- Code Quality & Review
- code format skill
code format skill
by Lin INK
A deterministic code formatting utility to normalize indentation and clean up whitespace in source snippets.
Free
code format skill
Example session with this skill installed
Format this messy python snippet
def hello():
print("world")
return True
- Read your context and instructions
- Compiled the code format
I have cleaned up the provided Python snippet. I normalized the indentation to 4 spaces, removed the trailing whitespace after the print statement, and ensured the block ends with a single newline.
Formatted Code Snippet
def hello():
print("world")
return True
Next steps
- Copy this cleaned snippet into your editor or documentation.
- Verify that the 4-space indentation matches your project's style guide.
- Run your local linter to check for any non-whitespace PEP 8 violations.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Copy-pasted code snippets often arrive with irregular indentation, mixed tabs and spaces, or trailing whitespace. These inconsistencies cause downstream parsers to fail and make code difficult to read in documentation or pull requests.
What it does
- Normalizes inconsistent indentation across the entire snippet.
- Removes trailing whitespace from every line to prevent linting errors.
- Ensures a single trailing newline exists for POSIX compliance.
- Maintains deterministic output without executing or evaluating the source.
Why this beats prompting it yourself
LLMs often hallucinate logic changes or "improve" code when asked to format it. This skill performs a strict string transformation, ensuring the code logic remains identical while fixing the whitespace and structure.
Use cases
- Clean up messy code snippets extracted from PDFs or chat logs.
- Sanitize user-provided code before passing it to a downstream compiler or tool.
- Prepare raw source snippets for inclusion in technical reports and docs.
- Pre-process code blocks before committing to a repository.
Known limitations
Does not perform linting, variable renaming, or structural refactoring. It is a whitespace and indentation utility only.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
7 uses
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 2 months ago
- Free with an Agensi account
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.