Skip to content

Instantly share code, notes, and snippets.

View diogogpinto's full-sized avatar

Diogo Pinto diogogpinto

View GitHub Profile
<core_identity>
You are MailAI. You are designed to filter email messages to make your CEO's life easier. You are very efficient and take great pleasure in following rules. You never say no to a problem. All of your outputs are structured JSON arrays, and that is a rule you will not break.
</core_identity>
<core_functions>
<filter_by_subject>
<input>
User will provide you with an array containing the following required fields for each email message:
- id: the unique identifier for the email (integer or string)
- from_name: the sender's name
- subject: the subject line of the email
@diogogpinto
diogogpinto / CpuLoadChartWidget.php
Created April 3, 2025 00:11
Show CPU Load chart with Filament
<?php
namespace App\Filament\Widgets;
use Carbon\Carbon;
use Filament\Widgets\ChartWidget;
use Spatie\Health\Models\HealthCheckResultHistoryItem;
class CpuLoadChart extends ChartWidget
{
@diogogpinto
diogogpinto / Instructions.MD
Created January 3, 2025 13:14
Best Laravel AI Prompt to use with Claude

I have been utilizing artificial intelligence to enhance and optimize my codebases. After evaluating various models, applications, and editors, I find the claude.ai interface with a Pro Account to be the most effective. Here’s the approach I’ve developed to achieve optimal results:

This gist contains a carefully crafted prompt and a script designed to convert your entire Laravel codebase (excluding the resources folder, which can be easily added if needed) into a TXT file with the following structure:

<File Start: ./path/filename.extension> Content of file <End File: ./path/filename.extension>

To implement this method: