Refactor
Automates Python backend code refactoring for improved readability, performance, and adherence to Solatis coding standards.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add solatis-refactor npx -- -y @trustedskills/solatis-refactor
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"solatis-refactor": {
"command": "npx",
"args": [
"-y",
"@trustedskills/solatis-refactor"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The solatis-refactor skill automatically restructures and cleans up existing code. It aims to improve readability, maintainability, and potentially performance by applying consistent formatting and removing redundancies. The skill is designed for backend codebases and can be integrated into development workflows.
When to use it
- Legacy Codebase Cleanup: Improve the structure of older projects with inconsistent coding styles.
- Code Review Assistance: Quickly identify areas needing refactoring during a code review process.
- Onboarding New Developers: Standardize code formatting for new team members joining a project.
- Automated Formatting: Integrate into CI/CD pipelines to enforce consistent code style automatically.
Key capabilities
- Automatic code restructuring
- Code cleaning and redundancy removal
- Consistent formatting application
- Backend codebase focus
Example prompts
- "Refactor this Python function: [code snippet]"
- "Clean up the following JavaScript file to improve readability: [file content]"
- "Apply consistent formatting to this Java class: [class code]"
Tips & gotchas
The skill is primarily intended for backend code. While it can be applied to other languages, results may vary depending on language support and complexity of the codebase.
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.