---
name: context-pruning
description: Prune context by removing irrelevant messages, truncating long content, and deduplication
category: Token Savings
---

# Context Pruning

## Overview
Prune context by removing irrelevant messages, truncating long content, and deduplication. This skill helps you apply structured, repeatable methods for consistent results.

## When to Use
- When you need to apply context pruning best practices
- When establishing processes or standards for your workflow
- When training team members on context pruning
- When automating or optimizing context pruning tasks

## Instructions
1. **Assess**: Evaluate the current state, requirements, and constraints
2. **Plan**: Define the approach, steps, and success criteria
3. **Execute**: Follow the established patterns and best practices
4. **Verify**: Check results against expected outcomes and quality standards
5. **Iterate**: Refine based on feedback and lessons learned

## Examples
```
User: Help me apply context pruning for my current project
Assistant: I'll help you apply context pruning step by step...
```

## Related Skills
- Use with `workflow` tool for orchestrated execution
- Combine with `task` tool for delegated processing
- Reference `system-prompt` for system-level integration
