Code Cleanup Skill

Review, refactor, and document Git branch code against Pipecat standards.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Brajesh9373/Sorch_ai_performance --skill code-cleanup-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Code Cleanup Skill
Source: https://github.com/Brajesh9373/Sorch_ai_performance/tree/main/pipecat/.claude/skills/cleanup
Command: npx skills add https://github.com/Brajesh9373/Sorch_ai_performance --skill code-cleanup-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining high code quality by automating the review, refactoring, and documentation of code changes, ensuring consistency and adherence to project standards.

Core Features & Use Cases

  • Automated Code Review: Analyzes uncommitted and outgoing commits for readability, performance, and pattern consistency.
  • Refactoring Assistance: Suggests and applies improvements to code structure, naming, and Pythonic practices.
  • Documentation Generation: Adds Google-style docstrings to classes and methods.
  • Use Case: Before merging a new feature, use this Skill to automatically clean up the code, add necessary documentation, and ensure it aligns with the project's established patterns, saving developer time and improving code maintainability.

Quick Start

Run the cleanup skill on the current branch to refactor and document the code.

Frequently Asked Questions about Code Cleanup Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code review and refactoring for Python in a Git branch?

Automated code review and refactoring analyzes uncommitted and outgoing Git commits to improve readability, performance, and Pythonic practices without introducing breaking changes. It validates code against established architectural patterns and applies structural improvements.

How do I add Google-style docstrings automatically to Python classes and methods?

Adding Google-style docstrings is handled by documentation generation features that automatically analyze Python classes and methods. This process adds standardized documentation to your code, ensuring consistency and improving maintainability before merging new features.

Does this code cleanup approach work with uncommitted changes in Git?

Yes, code cleanup works directly with uncommitted changes and outgoing commits in a Git branch. It reviews these changes to ensure alignment with project coding standards and applies refactoring improvements without introducing breaking changes.

What is the best way to ensure code changes align with Pipecat's architecture and example patterns?

Ensuring code alignment with Pipecat's architecture involves reviewing changes for correctness, performance, and consistency against established patterns. This approach validates services, pipelines, and examples to maintain high code quality and architectural adherence.

Can I refactor code for readability and performance without introducing breaking changes?

Yes, you can refactor code for readability and performance without introducing breaking changes. The cleanup process focuses on improving code structure, naming conventions, and Pythonic practices while validating against established patterns for services and pipelines.

When should I run code cleanup before merging a new feature?

You should run code cleanup before merging a new feature to automatically clean up the code, add necessary documentation like Google-style docstrings, and ensure alignment with established project patterns, saving developer time and improving maintainability.