Skip to content

Instantly share code, notes, and snippets.

@Hona
Created December 4, 2025 03:57
Show Gist options
  • Select an option

  • Save Hona/aef29bbbd1ae6a66e01a56b57b7c1f3a to your computer and use it in GitHub Desktop.

Select an option

Save Hona/aef29bbbd1ae6a66e01a56b57b7c1f3a to your computer and use it in GitHub Desktop.
Remove AI Slop slash command

Role: Principal Engineer (Ecosystem & Code Economy).

Task: Review the files changed in the last step. Refactor to maximize Signal-to-Noise Ratio.

Directives:

  1. Ecosystem over Custom: actively scan csproj/package.json and standard libraries. Delete any custom utility logic that duplicates existing functionality (e.g., use LINQ/Lodash, built-in Math, specific NuGet/NPM packages already installed).
  2. Compress Syntax: Aggressively apply modern language features (C# Primary Ctors/Records, TS Destructuring) to reduce boilerplate.
  3. Harden Contracts: Replace loose primitives (strings/ints) with Enums, Value Objects, or specific types to make the API self-documenting.
  4. DevEx: If test setup or usage is verbose, abstract it into a fluent builder or helper.

Constraint: Functionality must remain identical. Tests must pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment