pipecat: Skill for Claude Code

.claude/skills/cleanup/SKILL.md

cleanup is a skill for Claude Code from pipecat-ai/pipecat. It costs 17 tokens per session (1,737 once invoked), scanned A, original, BSD-2-Clause.

A code-cleanup workflow for reviewing changes in the current branch. A branch is a separate line of development where related code changes are made.

In plain words
What is it for?
Use it to inspect branch changes, refactor code, add Google-style Python docstrings, check project patterns, and validate examples.
Why use it?
It helps find readability, consistency, documentation, performance, and validation issues before changes are submitted.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is pipecat-ai/pipecat's own configuration. It tells Claude Code how to work on pipecat itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pipecat configures →

Part of the pipecat-dev plugin — 11 skills shipped together

About the project

Pipecat is an open-source Python framework for building real-time conversational agents that work with voice, video, images, and other media. It is for creating voice assistants, companions, business agents, and multi-agent systems from modular conversation pipelines.

pipecat-ai/pipecat · 16,618 stars · on GitHub · pipecat.ai

Reuse

Borrowing it

Nothing to install: this file belongs to pipecat-ai/pipecat. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pipecat-ai/pipecat/main/.claude/skills/cleanup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pipecat-ai/pipecat

Made for: Claude Code.

Or install pipecat-dev, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/pipecat-ai/pipecat/cleanup/github.svg)](https://agentmods.dev/skills/pipecat-ai/pipecat/cleanup)
Your own site
<a href="https://agentmods.dev/skills/pipecat-ai/pipecat/cleanup"><img src="https://agentmods.dev/badge/skills/pipecat-ai/pipecat/cleanup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/pipecat-ai/pipecat/cleanup"><img src="https://agentmods.dev/badge/skills/pipecat-ai/pipecat/cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.01737
Opus 5.5 $0.00007 $0.00695
Sonnet 5.5 $0.00003 $0.00347
Haiku 4.5 $0.00002 $0.00174

Measured 1mo ago against content hash 4f419ba49000, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cleanup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/cleanup/SKILL.md · 326 lines

How it starts

The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Cleanup Skill

The Code Cleanup Skill reviews, refactors, and documents code changes in your current branch, ensuring alignment with Pipecat's architecture, coding standards, and example patterns. It focuses on readability, correctness, performance, and consistency, while avoiding breaking changes.


Skill Overview

This skill analyzes all changes introduced in your branch and performs the following actions:

  1. Analyze Branch Changes
    • Review uncommitted changes and outgoing commits
  2. Refactor for Readability
    • Improve clarity, naming, structure, and modern Python usage
  3. Enhance Performance
    • Identify safe, conservative optimization opportunities
  4. Add Documentation
    • Apply Pipecat-style, Google-format docstrings
  5. Ensure Pattern Consistency
    • Match existing Pipecat services, pipelines, and examples
  6. Validate Examples
    • Ensure examples follow foundational patterns (e.g. 07-interruptible.py)

Usage

Invoke the skill using any of the following commands:

  • "Clean up my branch code"
  • "Refactor the changes in my branch"
  • "Review and improve my branch code"
  • /cleanup

What This Skill Does

1. Analyze Branch Changes

The skill retrieves all uncommitted changes and outgoing commits to understand:

  • New files added
  • Modified files
  • Code additions and deletions
  • Overall scope and intent of changes

2. Code Refactoring

Readability Improvements
  • Replace tuples with named classes or dataclasses
  • Improve variable, method, and class naming
  • Extract complex logic into well-named helper methods
  • Add missing type hints
  • Simplify nested or complex conditionals
  • Replace deprecated methods and features
  • Normalize formatting to match Pipecat style
Performance Enhancements
  • Identify inefficient loops or repeated work
  • Suggest appropriate data structures
  • Optimize async workflows and I/O
  • Remove redundant operations

Performance changes are conservative and non-breaking.

Read the full file on GitHub · 326 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 326 lines · 17 tokens per session scan A 4f419ba49000

Subscribe to this mod's changes

cleanup is a skill published in the GitHub repository pipecat-ai/pipecat (16,618 stars, last pushed today), licensed BSD-2-Clause. It adds 17 tokens to every session and 1,737 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.