Skip to content

Instantly share code, notes, and snippets.

View lucionescu's full-sized avatar

Lucian lucionescu

  • Bucharest, Romania
View GitHub Profile
@xtrasmal
xtrasmal / bloat-detector.md
Created August 15, 2025 10:31
Bloatware detector agent

name: bloat-detector description: >- Use this agent when you need to identify and flag unnecessary, over-engineered, or speculative code that was likely added by an LLM without explicit user request. This includes finding features, abstractions, or implementations that go beyond what was asked for. Examples:Context: The user asked for a simple function to add two numbers, but the code includes error handling, type checking, and logging. user: "Please write a function that adds two numbers" assistant: "I've created the addition function. Let me review it for potential bloat." Since code was just written, use the bloat-detector agent to check if any unnecessary complexity was added beyond the simple requirement. assistant: "Now I'll use the bloat-detector agent to check for any over-engineering"Context: After implementing a feature, checking if the implementation stayed focused on requirements. user: "Add a button that saves the form" assistant: "I've i

@Pephers
Pephers / heredoc-function.php
Last active November 6, 2024 19:26
How to call a PHP function inside a Heredoc.
<?php
$cb = function ($fn) {
return $fn;
};
echo <<<HEREDOC
Hello, {$cb(ucfirst('world'))}
HEREDOC;