Skip to content

Instantly share code, notes, and snippets.

View PatrickJS's full-sized avatar
💻
codex coding

PatrickJS PatrickJS

💻
codex coding
View GitHub Profile
name chat-handoff
description Use when turning a current chat, side-chat, fork, research thread, review thread, messy planning discussion, or agent session into a focused handoff for another chat, fork, main thread, clean-start prompt, spec, action list, or agent/tool workflow. Triggers include "handoff", "hand off", "handoff block", "create a clean prompt", "summarize this side-chat for the main thread", "bring this fork back", "research to spec", "review to action list", and "pass this to another agent".

Chat Handoff

Create a focused transfer packet from one conversation context to another. Do not summarize the whole chat by default. Extract only the context the receiving chat needs to continue without inheriting noise, stale options, abandoned questions, accidental instructions, secrets, or raw transcript.

Core Model

You are a patient, plain-language ChatGPT guide for someone who is not tech-savvy.

Your job is to help me use and understand ChatGPT without assuming I know technical terms.

Follow these rules:

  • Use simple, everyday language.
  • Explain one thing at a time.
  • Avoid jargon. If a technical word is necessary, define it briefly.
  • Do not be condescending or overly formal.
@PatrickJS
PatrickJS / 0-sidechat-vs-mainchat-vs-forkchat-vs-newchat.md
Last active May 31, 2026 05:36
Guide for choosing main chats, side-chats, forks, new chats, and handoff prompts in Codex workflows.

Chat Boundaries: Main, Side-Chat, Fork, New Chat, Handoff

Use this guide when a Codex conversation starts to branch. The goal is to keep the main thread useful as an execution record while still giving tangents, experiments, and clean starts a place to live.

Quick Decision Table

Need Use Why
Keep doing the current task Main chat It stays the source of truth for execution.
Ask a tangent or run light research Side-chat It helps the main task without changing it yet.
@PatrickJS
PatrickJS / RFC.md
Last active May 23, 2026 09:29
RFC: Server Function Graphs and Coordinated Caching for Qwik v2

RFC: Server Function Graphs and Coordinated Caching for Qwik v2

Summary

This proposal adds a Qwik-native optimization path for server data, rendered component output, optimizer-produced component render symbols, and resumable execution state.

The simple authoring model is:

server$(fn)
@PatrickJS
PatrickJS / try-catch.ts
Created February 24, 2025 18:17 — forked from t3dotgg/try-catch.ts
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@PatrickJS
PatrickJS / deploy-ssh.sh
Created October 29, 2024 13:18 — forked from lambrospetrou/deploy-ssh.sh
Simple deployment on a VPS, Hetzner, EC2 with zero downtime. Uses Caddy and systemd.
#!/usr/bin/env bash
# Inspired from:
# - https://blog.wesleyac.com/posts/simple-deploy-script
# - https://gist.github.com/WesleyAC/b3aaa0292579158ad566c140415c875d
# - https://caddyserver.com/docs/running#using-the-service
set -e
# cd $(dirname $0)
@PatrickJS
PatrickJS / html-languages.txt
Created October 22, 2024 16:36 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
# save this file in ~/.gitignore_global
# set this file as the global .gitignore
# > git config --global core.excludesFile ~/.gitignore_global
# verify by running
# > git config --global core.excludesfile
.DS_Store
._.DS_Store
**/.DS_Store
**/._.DS_Store
@PatrickJS
PatrickJS / variousCountryListFormats.js
Created September 23, 2024 00:28 — forked from incredimike/variousCountryListFormats.js
List of Countries in various Javascript data structures: Alphabetical country lists & Country data objects.
// Lists of countries with ISO 3166 codes, presented in various formats.
// Last Updated: July 30, 2020
// If you're using PHP, I suggest checking out:
// https://github.com/thephpleague/iso3166
// or Laravel: https://github.com/squirephp/squire
//
// JS developers can check out:
// https://www.npmjs.com/package/iso3166-2-db
//
@PatrickJS
PatrickJS / qwik.tsx
Created September 20, 2024 04:16
Basic Folder/File Recursive UI
import { component$, useStore, useSignal, useTask$ } from '@builder.io/qwik';
// Define the Node type
type Node = {
id: string;
name: string;
type: string;
tags: string[];
children?: Node[];
attributes?: Record<string, unknown>;