Skip to content

Instantly share code, notes, and snippets.

@diegomarino
diegomarino / 00_extract_facturas_llama.py
Last active July 7, 2026 08:21
Generador de JSONs con datos de facturas mediante Llama{Parse,Extract}
"""Extracción de datos estructurados de facturas españolas con LlamaExtract.
Este script es un ejemplo *didáctico* del SDK nuevo `llama-cloud` (>= 1.0). Demuestra
cuatro ideas que importan al extraer facturas en producción:
1. EL FLUJO EN TRES ETAPAS
(1) PARSE -> client.files.create(...) sube el PDF y el servicio lo lee (OCR/visión)
(2) EXTRACT -> client.extract.run(...) un LLM rellena nuestro JSON Schema
(3) VALIDATE -> FacturaEspanola.model_validate(...) Pydantic valida y normaliza tipos
@diegomarino
diegomarino / _fable-audits.txt
Last active July 9, 2026 15:37
Fable Adversarial Reviews
# adversarial audit prompts - fetch & run
#
# This gist contains three generic audit prompts:
# - fable-audit-codebase.txt: codebase/implementation audit.
# - fable-audit-docs.txt: documentation audit.
# - fable-audit-process.txt: end-to-end workflow/process audit.
#
# These files are /goal specs. The launcher below only NAMES the file; the agent
# opens it with its own Read tool, so the ~4KB /goal size limit never touches the
# prompt body. Keep the launcher tiny and let the file on disk carry the detail.
@diegomarino
diegomarino / grab-port.sh
Last active June 9, 2026 17:58
grab-port — find the first available TCP port starting from a preferred one
#!/usr/bin/env bash
# =============================================================================
# grab-port — find the first available TCP port starting from a preferred one
# =============================================================================
#
# DESCRIPTION
# Accepts a preferred port (defaults to 3000) and prints to stdout the first
# free port found starting from that number. If the preferred port is in use,
# it increments by one until a free port is found.
#

Informe definitivo completo: Skills específicos para planificar desarrollos con Claude Code

Este informe combina el análisis detallado con nombres específicos de skills reales del ecosistema Claude Code, incluyendo URLs de repositorios y una comparativa cuantitativa. Se centra en resolver tu necesidad de una revisión integral que combine objetivos del proyecto, arquitectura existente, buenas prácticas y plan de verificación.[1][2]

1. Skills específicos comparados

Skills reales documentados en el ecosistema Claude Code:

Skill Repositorio Propósito principal
@diegomarino
diegomarino / inventory.sh
Created March 30, 2026 18:18
macOS System Inventory Generator — YAML snapshots of installed packages (Homebrew, npm, bun, uv, mas, Claude Code plugins)
#!/usr/bin/env bash
# =============================================================================
# System Inventory Generator (macOS)
# =============================================================================
#
# Generates YAML snapshots of installed packages, organized by hostname.
# Files are saved to data/$(hostname)/ for version control.
#
# Requirements: macOS, bash 4+, Homebrew (optional tools: mas, jq, uv, bun)
#
@diegomarino
diegomarino / config.json
Created March 18, 2026 11:07
GSD - .planning/config.json
{
"_comment": "GSD config — .planning/config.json — https://github.com/gsd-build/get-shit-done",
"_comment_mode": "yolo=no confirmations (requires --dangerously-skip-permissions) | interactive=pauses at each step",
"mode": "interactive",
"_comment_granularity": "coarse=fewer larger phases | standard=balanced | fine=many smaller phases",
"granularity": "standard",
"_comment_model_profile": "quality=Opus/Opus/Sonnet | balanced=Opus/Sonnet/Sonnet | budget=Sonnet/Sonnet/Haiku | inherit=follows active model",
@diegomarino
diegomarino / c43_to_csv.py
Created March 9, 2026 11:51
C43 to CSV converter
#!/usr/bin/env python3
"""
Converts a Spanish bank Norma 43 / C43 (Cuaderno 43) file to CSV.
Usage:
python3 c43_to_csv.py <input.txt> [-o output.csv] [--encoding latin-1] [--sample N]
Changelog:
v1 - initial: 10 columns, basic parsing
v2 - merged detalle2/3/4 via raw 76-char block concatenation; concepto_adicional split
@diegomarino
diegomarino / conductor_new_workspace.sh
Created August 24, 2025 12:29
.conductor - new workspace script (.claude/* and AGENTS.md)
#!/bin/bash
# Conductor Workspace Setup Script
# Copies configuration files from parent repo to workspace
set -e
# Use Conductor environment variables with fallbacks
PARENT_REPO="${CONDUCTOR_ROOT_PATH:-$(dirname "$(dirname "$(pwd)")")}"
WORKSPACE_DIR="${CONDUCTOR_WORKSPACE_PATH:-$(pwd)}"
@diegomarino
diegomarino / tamper-wetracked-table.js
Last active July 5, 2025 18:38
tampermonkey script - wetracked table with percentages
// ==UserScript==
// @name Wetracked Enhancer
// @namespace https://www.wetracked.io/
// @version 1.7
// @description Añade columnas de conversión (%), headers ordenables, ancho fijo y comportamiento dinámico a la tabla de reporting de Wetracked.io.
// @author @diegomarino
// @match https://app.wetracked.io/*
// @grant none
// @homepage https://gist.github.com/diegomarino/cff1c1b662b623c82819dcb9e8022c4d
// @supportURL https://gist.github.com/diegomarino/cff1c1b662b623c82819dcb9e8022c4d
@diegomarino
diegomarino / checkElements.js
Last active March 29, 2025 13:33
bugbug.io check element values
async function(element, selector, variables) {
/**
* 👇 USAGE EXAMPLES (can be commented out):
*
* await checkColor(element, "rgb(0, 128, 128)");
* await checkFontWeight(element, "600");
* await checkVisibility(element);
* await checkFontSize(element, "16px");
* await checkTextContent(element, "Trello Clone");
*/