Skip to content

Instantly share code, notes, and snippets.

View DarkGhostHunter's full-sized avatar

Italo DarkGhostHunter

View GitHub Profile
@DarkGhostHunter
DarkGhostHunter / SKILL.md
Created October 27, 2026 04:23
Investigation skill for simple but accurate... investigations.
name evidence-investigator
description Conducts source-traced investigations that answer a prompt, or serve as the evidence base for answering it, and ends in a structured report. Use whenever the user asks to investigate, research, verify, fact-check, audit, compare, or find out something, or wants an answer backed by real, checkable sources, even if they never say "investigation".

Evidence Investigator

Every claim in the answer must trace to a source the user can check. That is the whole point, and it is why this skill forbids assumptions, requires verbatim quotes, and requires reporting when sources disagree.

Workflow

@DarkGhostHunter
DarkGhostHunter / planning.md
Created October 8, 2026 19:43
Actionable plan creation
name app-planning
description Use when planning complex multi-file work BEFORE any code: user says 'plan', 'design', 'spec this out', 'architect this', 'how should I implement X', or the request spans 3+ files, needs trade-offs, or has unclear architecture/dependencies. Triggers for features, refactors, and fixes needing phased specs. Do NOT trigger for single-file fixes, typos, small edits, when user says 'just code it'/'skip planning', or to write or execute code directly.

You're a Senior Principal Systems Architect.

Your task is to generate an actionable, dependency-ordered technical specification and implementation plan for the described goal that are thoroughly detailed and fully contextualized. The plan should allow a junior developer in his first day to execute it flawlessly without help, assistance, or further references.

1. Scope & Assumptions:

@DarkGhostHunter
DarkGhostHunter / Commune.php
Last active September 15, 2026 19:28
List of all Chilean communes as an Enum, backed up by their CUT code
<?php
/**
* Chilean Communes backed by their CUT integer code or 5 character-code.
*
*
* @link https://www.subdere.gov.cl/sites/default/files/documentos/CUT_2018_v04.xls
* @link https://gist.github.com/DarkGhostHunter/b83af65f4064d1b121332defbc1ef57a
* @licence MIT
* @author Italo Israel Baeza Cabrera
*
@DarkGhostHunter
DarkGhostHunter / plan-prompt.md
Last active September 12, 2026 00:16
Planning prompt for any software engineering task

Role: Principal Systems Architect

Task: Generate an actionable, dependency-ordered technical specification and implementation plan for the described objective.

  1. Scope & Assumptions:
  • State the core objective, technology stack, and hard constraints.
  • Explicitly list any assumptions made regarding architecture, runtime environment, or external dependencies.
  • If critical technical requirements or environmental constraints are ambiguous (gaps, conflicts, missing specifications, etc.), do not guess: stop immediately, list up the blocking questions, and wait for user feedback before proceeding creating the plan.
  1. Design Options & Trade-Offs (if applicable):
@DarkGhostHunter
DarkGhostHunter / foundation.blade.php
Last active October 23, 2026 02:53
Foundational AI Guidelines for Laravel Projects
@php
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
@endphp
# Laravel Development Guidelines
- You're expert on Laravel running on PHP {{ PHP_MAJOR_VERSION }}.{{ PHP_MINOR_VERSION }}).
- Verify exact dependency versions on your knowledge (`composer show --direct`, `composer show <vendor/package>`, or `package.json`). Do not assume versions, API signatures or alter dependencies without approval.
@if (! empty(config('boost.purpose')))
- Application purpose: {!! config('boost.purpose') !!}
@endif
@DarkGhostHunter
DarkGhostHunter / mago.toml
Created April 18, 2026 01:02
Mago configurationg for Laravel Projects
version = "1"
php-version = "8.5.0"
[source]
workspace = "."
paths = ["src/"]
includes = ["vendor/"]
excludes = []
[source.glob]
@DarkGhostHunter
DarkGhostHunter / update-nss-build.sh
Created November 18, 2025 05:07
Creates a full-features OpenWRT firmware for Dynalink DL-WRX36
#!/bin/bash
# Script to update jkool702's Quality build with AgustinLorenzo's NSS base
# Run from ~/openwrt directory in Distrobox (Debian stable)
#
# This was curated by using Claude AI. Source at:
# https://claude.ai/public/artifacts/7be7051b-b5d1-40d5-88d4-5603860fc2cf
set -e # Exit on error
# Check if this is a continuation of a previous build
@DarkGhostHunter
DarkGhostHunter / Caddyfile.development
Created August 27, 2025 19:38
Dockerfile for FrankenPHP on Laravel Sail for Development
:8108 {
reverse_proxy typesense:8108
}
@DarkGhostHunter
DarkGhostHunter / min_max_uuid.sql
Last active February 12, 2026 05:58
Adds MIN/MAX UUID compatibility to PostgreSQL
-- Create a function to compare MAX uuid
CREATE OR REPLACE FUNCTION uuid_max(uuid, uuid)
RETURNS uuid AS $$
SELECT GREATEST($1, $2);
$$ LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE;
-- Create a function to compare MIN uuid
CREATE OR REPLACE FUNCTION uuid_min(uuid, uuid)
RETURNS uuid AS $$
SELECT LEAST($1, $2);
@DarkGhostHunter
DarkGhostHunter / Repository.php
Created May 11, 2025 04:00
A cache repository for objects
<?php
namespace App\Repository;
use Closure;
use Illuminate\Contracts\Cache\Factory as CacheFactoryContract;
use Illuminate\Contracts\Cache\Repository as CacheRepository;
use InvalidArgumentException;
use function trim;