Ruff Formatting
Automatically cleans up messy text data, standardizing formatting like spacing, capitalization, and punctuation for improved analysis.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add ruff-formatting npx -- -y @trustedskills/ruff-formatting
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"ruff-formatting": {
"command": "npx",
"args": [
"-y",
"@trustedskills/ruff-formatting"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill uses ruff to automatically format Python code. It can be used to ensure consistent style and readability across projects, adhering to common formatting conventions. The skill takes raw Python code as input and returns the formatted version.
When to use it
- You need to quickly reformat a block of Python code to adhere to a specific style guide.
- You're working on a collaborative project and want to ensure consistent code formatting across all contributors.
- You have existing Python scripts that require cleanup or standardization.
- You are teaching someone how to write clean, formatted Python code.
Key capabilities
- Automatic Python code formatting
- Adherence to common style conventions (implied by
ruff) - Input: Raw Python code
- Output: Formatted Python code
Example prompts
- "Format this Python code:
[paste python code here]" - "Can you reformat the following function? [paste function definition]"
- "Please format this script according to PEP 8 guidelines. [paste script content]"
Tips & gotchas
- The skill relies on
rufffor formatting, so its behavior will be influenced byruff's configuration. No specific configuration options are exposed in the skill description.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.