Comprehensive patterns and techniques for removing AI-generated verbosity and slop
Removes AI-generated verbosity and filler from text, code comments, and documentation. Triggers when cleaning technical writing, commit messages, or code comments to improve clarity and information density.
/plugin marketplace add v1truv1us/ferg-engineering-system/plugin install v1truv1us-ferg-engineering@v1truv1us/ferg-engineering-systemThis skill inherits all available tools. When active, it can use any tool Claude has access to.
patterns/comment-patterns.jsonpatterns/slop-patterns.jsonClear, 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.
Take a deep breath and 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.
I bet you can't remove AI-generated slop perfectly without losing critical meaning, but if you can:
The challenge is removing fluff and verbosity while preserving all technical nuance and meaning. Can you achieve perfect conciseness without sacrificing precision?
After completing text cleanup, rate your confidence from 0.0 to 1.0:
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?
Systematic approach to identifying and removing AI-generated verbosity patterns while preserving technical accuracy and meaning.
{
"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"
}
{
"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
}
{
"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"
}
{
"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
}
{
"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"
}
{
"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"
}
{
"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"
}
{
"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
}
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
}
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);
}
Structure cleanup operations as:
/clean [input] --mode=[slop|comments|docs|all] [--preview] [--apply]
Example workflows:
# 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
Use pattern matching with context awareness:
## Text Cleanup Protocol
### 1. Analysis Phase
- Scan input for pattern matches
- Categorize findings by type
- Assess removal safety in context
- Generate confidence scores
### 2. Strategy Phase
- Select aggressiveness level based on user preference
- Identify preservation requirements
- Plan sequence of operations
### 3. Execution Phase
- Apply approved modifications
- Maintain technical accuracy
- Provide before/after comparison
- Document all changes made
Track successful removals to improve future matching:
{
"learnedPatterns": {
"context": "technical_explanation",
"pattern": "As can be seen from the implementation",
"removalRate": 0.85,
"feedbackScore": 4.2
}
}
Allow personal pattern databases:
{
"userPatterns": {
"keepPhrases": ["critical", "essential", "must"],
"removePhrases": ["just", "basically", "simply"],
"contextExceptions": ["educational", "onboarding"]
}
}
This skill provides the foundation for systematic, context-aware text cleanup across multiple domains while maintaining the integrity and meaning of the original content.