anti-ai-slop

Filter branch diffs against main to remove AI-generated slop.

Updated Oct 31, 2024
One-click install
npx skills add https://github.com/thesammykins/dotfiles --skill anti-ai-slop-thesammykins
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anti-ai-slop
Source: https://github.com/thesammykins/dotfiles/tree/main/.agents/skills/anti-slop
Command: npx skills add https://github.com/thesammykins/dotfiles --skill anti-ai-slop-thesammykins

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps maintain minimal, idiomatic changes by removing AI-generated slop introduced on this branch, ensuring diffs stay focused and clean.

Core Features & Use Cases

  • Detect AI-generated filler in code edits and prune it while preserving original logic.
  • Enforce small, idiomatic diffs to align with project conventions.
  • Use Case: during a code review of a feature branch where AI-assisted edits were applied.

Quick Start

Review the current branch against main and prune AI-generated changes to preserve the smallest idiomatic diff.

Frequently Asked Questions about anti-ai-slop

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

FAQPage Schema
How do I filter AI-generated slop from a git diff during code review?

To filter AI slop from a git diff, the skill reviews feature branches against main, identifying diff hunks to prune AI-generated filler while preserving essential logic and tests. This ensures your commits retain only minimal, idiomatic changes.

What is AI slop in code diffs and how does it affect feature branches?

AI slop in code diffs refers to unnecessary AI-generated filler introduced during assisted edits. It clutters feature branches, making commits unfocused; filtering it ensures diffs stay clean, minimal, and aligned with project conventions.

Can I use git to remove AI-assisted edits while preserving original logic?

Yes, you can use git to remove AI-assisted edits while preserving original logic. The skill requires git access to identify diff hunks, automatically pruning AI slop while retaining essential logic and tests.

What happens to AI slop filtering if the main branch is unavailable?

If the main branch is unavailable, AI slop filtering fails safely. The skill is designed to fail safely when main is inaccessible or when diffs are non-deterministic, preventing incorrect code pruning.

Does AI slop filtering work for CI previews across feature branches?

Yes, AI slop filtering works for CI previews across feature branches. The skill is specifically applied during code reviews and CI previews to enforce small, idiomatic diffs when collaborators incorporate AI-assisted edits.