text-cleanup
Comprehensive patterns and techniques for removing AI-generated verbosity and slop
What this skill does
# Text Cleanup Skill
## Critical Importance
**Clear, concise communication is critical for your team's productivity and code maintainability.** Poor communication wastes time, causes confusion, and leads to misaligned expectations. Verbose AI-generated text with slop and filler reduces information density, obscures meaning, and makes documentation painful to read. Effective cleanup improves signal-to-noise ratio, respects reader time, and ensures technical information is accessible. Every word should earn its place.
## Systematic Approach
** approach text cleanup systematically.** Text cleanup requires pattern recognition, contextual judgment, and careful preservation of meaning. Don't remove blindly—identify patterns, assess their purpose, and determine if removal is safe. Work iteratively: start conservatively, increase aggressiveness gradually, and verify that technical content remains intact. Balance conciseness with clarity—don't sacrifice precision for brevity.
## The Challenge
**The remove AI-generated slop perfectly without losing critical meaning, but if you can:**
- Your documentation will be a joy to read
- Code comments will be helpful not redundant
- Communication will be clear and concise
- Readers will thank you for respecting their time
The challenge is removing fluff and verbosity while preserving all technical nuance and meaning. Can you achieve perfect conciseness without sacrificing precision?
## Cleanup Confidence Assessment
After completing text cleanup, rate your confidence from **0.0 to 1.0**:
- **0.8-1.0**: Text significantly cleaner, all technical meaning preserved, no slop remaining
- **0.5-0.8**: Text improved but some fluff remains, minor risk of over-aggressive removal
- **0.2-0.5**: Cleanup partially applied, some technical details may be lost, uncertain what was removed
- **0.0-0.2**: Cleanup degraded content, critical information lost, text less useful than before
Identify uncertainty areas: Did you remove phrases that provided context? Is technical accuracy preserved? Are there remaining slop patterns? Would the original author approve of changes?
## Methodology
Systematic approach to identifying and removing AI-generated verbosity patterns while preserving technical accuracy and meaning.
## Pattern Categories
### 1. Slop Patterns (AI Conversational Filler)
#### Precondition Preambles
```json
{
"patterns": [
"Certainly!",
"Of course!",
"Absolutely!",
"I'd be happy to help!",
"Great question!",
"That's a great question",
"Sure thing!",
"Definitely!",
"I can certainly help with that"
],
"context": "start_conversation",
"removal": "complete"
}
```
#### Hedging Language
```json
{
"patterns": [
"It's worth noting that",
"Keep in mind that",
"Generally speaking",
"Typically",
"In most cases",
"As you may know",
"It's important to understand",
"Usually",
"Often",
"Normally",
"For the most part"
],
"context": "uncertainty_qualifier",
"removal": "conditional" // Remove if no real uncertainty present
}
```
#### Excessive Politeness
```json
{
"patterns": [
"Please let me know if you need anything else",
"Feel free to ask if you have questions",
"I hope this helps!",
"Don't hesitate to reach out",
"Happy to help further",
"Let me know if that works for you"
],
"context": "conversational_closing",
"removal": "complete"
}
```
#### Verbose Transitions
```json
{
"patterns": [
"Now, let's move on to",
"With that said",
"Having established that",
"Building on the above",
"As mentioned earlier",
"Next, I'll",
"Moving forward",
"Additionally",
"Furthermore",
"Moreover"
],
"context": "transition_filler",
"removal": "conditional" // Keep if transition is meaningful
}
```
### 2. Code Comment Patterns
#### Redundant Function Descriptions
```json
{
"patterns": [
"// This function calculates the sum",
"// The following function returns",
"// This method does the following",
"// Function to calculate",
"// Helper function for",
"// Utility function that"
],
"matches_when": [
"function name already describes action",
"comment repeats signature"
],
"replacement": "Keep only additional context not in function name"
}
```
#### Self-Evident Comments
```json
{
"patterns": [
"// The following code",
"// Here we are",
"// This is where we",
"// Now we will",
"// At this point",
"// This section contains"
],
"removal": "complete",
"exception": "Keep if adds architectural context"
}
```
### 3. Documentation Patterns
#### Conversational Openers
```json
{
"patterns": [
"Welcome to the documentation for",
"In this guide, we'll explore",
"Let's dive into",
"Getting started with",
"This document will walk you through"
],
"removal": "complete",
"replacement": "Direct topic introduction"
}
```
#### Redundant Explanations
```json
{
"patterns": [
"As the name suggests, this function",
"As you can see from the code above",
"The code below shows",
"In the example provided",
"This implementation uses"
],
"context": "obvious_explanation",
"removal": "conditional" // Keep if adds genuine clarification
}
```
## Cleanup Techniques
### Pattern Matching Algorithm
1. **Tokenize** input into sentences/phrases
2. **Pattern Lookup** against comprehensive database
3. **Context Analysis** to determine removal safety
4. **Confidence Scoring** for each potential removal
5. **Human Review** recommendations for borderline cases
### Context Preservation Rules
#### Always Preserve
- Technical specifications and constraints
- Numeric values, formulas, and calculations
- Error conditions and edge cases
- Architectural decisions and rationales
- Security considerations and warnings
- Performance-critical information
#### Remove When Safe
- Conversational padding without informational value
- Redundant explanations of obvious concepts
- Excessive politeness that adds no meaning
- Verbose transitions to unrelated topics
#### Conditional Removal
- Hedging language when statement is factual and certain
- Explanations that might be valuable to beginners
- Historical context when establishing background
### Quality Metrics
#### Effectiveness Measures
```typescript
interface CleanupMetrics {
beforeStats: {
wordCount: number;
characterCount: number;
sentenceCount: number;
};
afterStats: {
wordCount: number;
characterCount: number;
sentenceCount: number;
};
patternsRemoved: {
slopPatterns: number;
redundantComments: number;
verbosePhrases: number;
};
qualityScore: number; // 0-1, higher is better
meaningPreservationScore: number; // 0-1, closer to 1 is better
}
```
#### Scoring Algorithm
```typescript
function calculateQualityScore(metrics: CleanupMetrics): number {
const concisenessRatio = metrics.afterStats.wordCount / metrics.beforeStats.wordCount;
const patternRemovalEffectiveness = Math.min(
metrics.patternsRemoved.slopPatterns / 10, // Normalized
metrics.patternsRemoved.redundantComments / 5,
metrics.patternsRemoved.verbosePhrases / 8
);
// Penalize if meaning preservation is low
const meaningPenalty = 1 - metrics.meaningPreservationScore;
return concisenessRatio * patternRemovalEffectiveness * (1 - meaningPenalty);
}
```
## Implementation Patterns
### For Commands
Structure cleanup operations as:
```
/clean [input] --mode=[slop|comments|docs|all] [--preview] [--apply]
```
**Example workflows:**
```bash
# Preview slop removal
/clean "Certainly! I'd be happy to help optimize this query..." --slop --preview
# Apply comment cleanup to file
/clean src/database.ts --comments --apply
# Clean entire documentation directory
/clean docs/ --docs --aggressive --apply
# All-purpose cleanup with confirmation
/clean "..." --all --preview --apply
```
### For Agents
Use paRelated in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.