Skip to content

Instantly share code, notes, and snippets.

View trevorh's full-sized avatar

Trevor Hart trevorh

View GitHub Profile
@jkm-4314
jkm-4314 / README.md
Last active May 10, 2026 01:04
multi-model-review: Claude Code skill that orchestrates iterative spec/code review between Claude and Codex (GPT-5.5) until both models agree the work is production-ready

multi-model-review

📦 Also part of claude-code-skills — a small collection of opinionated Claude Code skills (project bootstrap, persistent session memory, and this multi-model review). Clone the repo for the full set.

A Claude Code skill that orchestrates iterative adversarial review of specs or code between Claude and OpenAI's Codex (GPT-5.5) until both models independently agree the work is production-ready.

Why

Claude and Codex catch different classes of issues. Running them as adversarial reviewers — each given the same artifact and the other's feedback — surfaces problems that either model would miss alone: missed edge cases, security gaps, ambiguous requirements, regressions introduced by remediation. The loop terminates when both models reach GO, or after 5 rounds (Claude's position prevails to avoid blocking work indefinitely).

@gregolsen
gregolsen / SKILL.md
Created March 18, 2026 22:42
Intercom's create-pr skill
name create-pr
description This skill should be used when the user asks to "create a PR", "open a pull request", "make a PR", "submit a PR", "push a PR", or any variation of creating/opening a pull request. The skill focuses on extracting the INTENT behind changes and creating meaningful PR descriptions.
allowed-tools Bash Read Write Grep Glob AskUserQuestion

Pull Request Creation

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@stanislaw
stanislaw / Open source requirements management tools.md
Last active May 16, 2026 23:50
Open source requirements management tools

Open source requirements management tools

A tool developed to support Software Specification analysis and Testable Requirements definition.

Requirements management using version control.

@fernandoaleman
fernandoaleman / mysql2-m1.md
Last active January 5, 2026 07:29
How to install mysql2 gem on m1 Mac

Problem

Installing mysql2 gem errors on Apple silicon M1, M2 or M3 Mac running macOS Sonoma.

Solution

Make sure mysql-client, openssl and zstd are installed on Mac via Homebrew.

Replace mysql-client with whichever mysql package you are using

@sahava
sahava / dataLayerHistory.js
Last active June 29, 2025 20:33
JavaScript for persisting dataLayer array and data model composition across pages
(function() {
// Set the timeout for when the dataLayer history should be purged. The default is 30 minutes.
// The timeout needs to be in milliseconds.
var timeout = 30*60*1000;
// Change dataLayerName only if you've defined another named for the dataLayer array in your
// GTM container snippet.
var dataLayerName = 'dataLayer';
// Don't change anything below.
@BretFisher
BretFisher / pcat-install.sh
Last active October 22, 2025 09:55
On macOS: Install pygmentize and alias pcat for shell code syntax highlighting
# first install pygmentize to the mac OS X or macOS system with the built-in python
sudo easy_install Pygments
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc.
alias pcat='pygmentize -f terminal256 -O style=native -g'
@adnan360
adnan360 / functions.php_snip
Created January 27, 2017 03:15
Woocommerce Subscriptions: get all subscribed products for a subscriber (find if a product is subscribed)
<?php
function has_an_active_subscriber( $product_id = null ){
// Empty array to store ALL existing Subscription PRODUCTS
$products_arr = array();
$products_subscr = get_posts( array(
'numberposts' => -1,
'post_status' => 'publish',
@dcode
dcode / GitHub Flavored Asciidoc (GFA).adoc
Last active April 23, 2026 23:17
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)