Skip to content

Instantly share code, notes, and snippets.

View BrianVia's full-sized avatar

Brian Via BrianVia

View GitHub Profile
@BrianVia
BrianVia / SKILL.md
Created November 6, 2026 17:25
simplify-codebase-primitives: agent skill for reducing codebase complexity into a few deep modules without changing behavior
name simplify-codebase-primitives
description Reduce codebase complexity into a small set of deep, behavior-preserving Modules with clear ownership and complete Interfaces. Use for every non-trivial coding, design, refactor, architecture, or code-review task; for CLI/daemon/runtime work; when code feels tangled, branch-heavy, over-modeled, or difficult to understand; and when identifying safe deletion or challenging incidental requirements.

Simplify Codebase Primitives

Prime directive

Preserve supported behavior unless the user explicitly approves a product

@BrianVia
BrianVia / SKILL.md
Created November 6, 2026 17:25
step-out-a-layer: agent skill for stopping a fix that keeps growing and re-asking the problem one layer out
name step-out-a-layer
description When a fix keeps growing or iterating (round 3+, compat shims, encoding gymnastics), stop and re-ask the problem one layer out — the elaborate solution usually means you're solving the wrong problem. Use when stuck in revision loops, when complexity is snowballing, or when the user says "step back / forest for the trees".

Step Out a Layer

You are elaborately solving a problem that should not exist. The tell is never the problem itself — it's the shape of your solution.

@BrianVia
BrianVia / codex-image-gen skill.md
Last active October 28, 2026 19:49
codex-image-gen: Claude Code skill for generating images with Codex CLI's built-in image tool (GPT Image via ChatGPT login)
name codex-image-gen
description Generate images with the Codex CLI's built-in image tool (GPT Image, using Brian's ChatGPT login, no OpenAI API key). Use when the user asks to generate, make, draw, or create an image, photo, illustration, icon, or mockup, or invokes /codex-image-gen. Handles single images and batches.

Codex image gen

Generate images through codex exec's image tool. It bills to Brian's ChatGPT plan, not an API key, and needs codex on PATH and signed in (codex login status says "Logged in using ChatGPT").

One image

@BrianVia
BrianVia / rbox-doctor.sh
Created July 20, 2026 14:12
Rbox Doctor - Help max determine what doesn't work on macos
#!/bin/sh
# rbox lock-doctor — figures out why `rbox setup` refuses with
# "this filesystem does not support the required lock identity".
# Read-only except one temp file it makes and deletes. No network, nothing hidden.
#
# sh rbox-lockdoctor.sh [workspace-dir] (defaults to ~/src)
dir="${1:-$HOME/src}"
echo "rbox lock-doctor — dir=$dir"
echo
@BrianVia
BrianVia / rbox-blog-post.md
Last active July 8, 2026 02:59
rbox launch drafts — Show HN post + technical blog post

Syncing the git state you can't commit yet

Technical blog post — anchors the launch. Reusable on your blog, dev.to, Hashnode, r/programming.


Every developer who works on more than one machine has done this dance: you're deep in a refactor on your laptop, you need to leave, and none of it is in a state you'd commit. So you either git stash && git commit -m "wip do not push" and pray, or you just... lose your place and rebuild the context an hour later on the desktop.

Git is brilliant at moving committed history. It has nothing to say about the working state before a commit — and that's exactly the state you're in most of the day.

@BrianVia
BrianVia / engagement-funnel-plan.md
Created June 19, 2026 19:21
Engagement Funnel Plan

Goal

For every push notification, the engagement funnel must nest strictly:

opened ≥ viewed ≥ engaged ≥ converted, where each stage is a subset of the prior — every viewer is an opener, every engager is a viewer, every converter is an engager.

Today the funnel is broken in two independent ways, both visible in live data:

viewed > opened — content is counted from organic visitors who never opened the push. The content query is scoped only by guideId/offerId/giftcardId + time window, not by who opened (queryEngagementForReport.ts:210-237). The doc’s audience-rewards guide: 5,685 viewed vs 1,076 opened. engaged > viewed — viewedContent and engagedContent are independent booleans set by different event types (queryEngagementForReport.ts:249-294); an offer.tappedShopOnline flips engaged without ever flipping viewed. Live cruise push (taskId e3c0526a) right now: engagedContent: 495 vs viewedContent: 292.

@BrianVia
BrianVia / printify rest api
Created May 27, 2026 12:44
printify rest API
# Products – Printify API Reference
Source: https://developers.printify.com/#image-properties
---
![Logo](images/logo-8fbbf816.svg)
# Automate your Print on Demand business
@BrianVia
BrianVia / super-scrutinize-skill.md
Created May 22, 2026 03:35
super-scrutinize — harsh structural code review skill (draft)
name super-scrutinize
description Harsh structural audit of a code change. Fight entropy. Find the load-bearing problems — file bloat, branching sprawl, layer violations, leaky abstractions, silent failures, type escape-hatches, DynamoDB access-pattern drift — before nitpicking style. Invoked as a Task subagent after a parent agent has collected the diff and changed-file contents.

Super-Scrutinize

You are a Task subagent doing a high-conviction structural review.

Your parent already ran git diff ...HEAD and read the full contents of every changed file. Both are pasted into your user message under labeled sections (### Git / diff output and ### Changed file contents). Do not spawn nested subagents. Do not re-read the repo unless the parent's bundle is genuinely insufficient — say so and stop if it is.

@BrianVia
BrianVia / brian-library.csv
Created April 30, 2026 18:54
Brian Via's Book Library (2,521 books)
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
"Title","Author","Format","HasText"
"\03\06\00\0-\03\09\07\0\0","https://imagemagick.org ","pdf","false"
"!Influence_enhance","Unknown ","pdf","false"
"""Looks Good to Me""","Adrienne Braganza","epub","false"
"""Surely You're Joking, Mr. Feynman!"": Adventures of a Curious Character","Richard P. Feynman","epub","false"
"$100M Leads: How to Get Strangers To Want To Buy Your Stuff","Alex Hormozi","epub","false"
"$100M Offers: How To Make Offers So Good People Feel Stupid Saying No","Alex Hormozi","epub","false"
"(Palgrave Studies in Digital Business & Enabling Technologies) Theo Lynn, John G. Mooney, Jörg Domaschka, Keith A. Ellis - Managing Distributed Cloud Applications and Infrastructure_ A Self-Optimising","Unknown ","pdf","false"
"(Pragmatic programmers) chromatic - Modern Perl-Pragmatic Bookshelf_Pragmatic Programmers","Unknown ","pdf","false"
"+ Parallel and High Performance Programming with Python: Unlock Parallel and Concurrent Programming in Python using Multithreading, CUDA, Pytorch, and Dask","Fabio
@BrianVia
BrianVia / Cloudflare-services-overview.md
Created April 30, 2026 15:03
Cloudflare-services-overview

Cloudflare product glossary — snapshot as of April 29, 2026

I treated “product offering” broadly: named commercial products, platform primitives, managed features, and docs-indexed services. Cloudflare’s own wording frames this as a “connectivity cloud” with 60+ cloud services, and its product/docs directories split the estate across Compute, Storage, AI, Media, Network, SASE / Zero Trust, security, privacy, analytics, developer, and operations categories. 

One caveat: Cloudflare’s taxonomy is not clean. Some entries are SKUs, some are features, some are renamed products, and some are control-plane capabilities. I excluded the April 30, 2026 “agents can create accounts / buy domains / deploy” update because it postdates the requested April 29 snapshot. 

⸻

  1. The “big buckets” at a glance