Skip to content

Instantly share code, notes, and snippets.

View PatrickJS's full-sized avatar
💻
codex coding

PatrickJS PatrickJS

💻
codex coding
View GitHub Profile
@PatrickJS
PatrickJS / simple scored filter.md
Last active June 18, 2026 20:03
Generic intent-aware dashboard sidebar grouping and filtering

Intent-aware dashboard sidebar grouping and filtering

Use this pattern when a dashboard sidebar has many actions, commands, reports, or workflows, and users are more likely to search by goal than by exact feature name.

The core idea is simple:

  1. Group sidebar items by user intent, not implementation area.
  2. Add lightweight intent metadata to each group and item.
  3. Normalize the user's search phrase.
  4. Score item matches using exact phrases, meaningful terms, and optional domain/catalog matches.

Full System Code Review Instructions

You are the principal engineer responsible for performing a rigorous, evidence-based review of the supplied codebase. The user may provide only a repository URL, repository name, package name, local path, branch, pull request, commit, tag, or archive. Resolve the exact review target, inspect the implementation as a complete system, execute its real workflows, identify concrete problems, and provide a prioritized repair plan. Assume that substantial portions of the codebase may have been produced by coding agents. Individual files may appear polished while cross-module behavior, state ownership, lifecycle handling, error paths, generated artifacts, and tests remain inconsistent or incomplete. Your job is not merely to comment on code quality. Determine:

  1. Whether the system actually installs, builds, starts, and performs its intended work.
  2. Whether its major components interact correctly.
  3. Which behaviors are broken or likely to break.
  4. Whether state, async work, c
@PatrickJS
PatrickJS / README.md
Last active July 11, 2026 23:31
Pretty-print Codex rate-limit reset credits from Codex Desktop auth

Codex usage helpers

Small shell snippets for checking local Codex usage from the terminal. Each script is self-contained so you can review exactly what it reads, which endpoint it calls, and what it prints before running it.

Requires Node.js v24+.

Scripts

bash codex-usage-reset.sh # reset credits only

They overlap in vocabulary, but they are different machines.

Qwik Components Qwik components are resumable component units.

A Qwik component can have:

component$()
useSignal()
@PatrickJS
PatrickJS / README.md
Last active June 13, 2026 21:16
repo-work-router Codex skill

Repo Work Router

repo-work-router is a Codex skill for routing repo-scoped work to the right Codex project thread before file writes begin.

The problem this solves

This came from a real failure mode: a Codex chat was rooted in one repo, but the user asked it to create a new package in another repo. Because the target repo was outside the chat's writable sandbox, the agent started staging a large /private/tmp/write-*.mjs helper that would later request permission to write hundreds of lines into the other checkout.

That was the wrong shape of solution. The target repo should have had its own Codex project chat, with the original chat acting as coordinator and reviewer. The source-of-truth checkout stays the source of truth, and the agent does not need to smuggle a scaffold through a temporary writer script.

@PatrickJS
PatrickJS / README.md
Last active July 8, 2026 20:10
Git History Rewrite Codex skill
@PatrickJS
PatrickJS / README.md
Last active July 8, 2026 20:10
Git Intent Audit Codex skill
@PatrickJS
PatrickJS / README.md
Last active July 15, 2026 01:27
Auto Git Codex skill

Auto Git Skill

Auto Git is a Codex skill for turning repo changes into understandable Git history. It auto-detects the current Git topology, detects existing worktrees, claims cooperative run leases, groups dirty changes by change intent, and routes work through local-review checkpoints or coordinated branch/PR/fanout flows.

Optional companion skills:

  • git-intent-audit: read-only audit for large dirty worktrees, unclear intent, oversized commits, mixed commits, and message/diff mismatch findings.
  • git-history-rewrite: local branch history replay by change intent, using git-intent-audit evidence and backup branches. It never force-pushes by default.

Files

@PatrickJS
PatrickJS / README.md
Last active June 10, 2026 20:54
ad-hoc-notes.md

ad-hoc-notes.md

This gist's primary/root file is ad-hoc-notes.md. It stores portable Codex-style ad hoc memory note candidates and instructions for using them.

For Codex, the fast path is:

  1. Read notes.md.
  2. Append one new note section.
  3. Preserve existing notes.
@PatrickJS
PatrickJS / README.md
Last active June 9, 2026 09:32
Codex coding coordination skills

Codex Coding Coordination Skills

This gist bundles five Codex skills:

  • implement-code-task: lightweight direct coding workflow for simple-to-moderate tasks.
  • coordinate-goal-chats: root chat coordination for worker chats, worktrees, and multi-slice coding goals.
  • root-chat-multitask: durable root chat management across background chats and worktrees.
  • subagent-worktrees: explicit parallel subagent/worktree coordination.
  • run-parallel-scouts: low-reasoning, read-only scout campaigns for broad reviews or audits when you want cheap parallel evidence before the root chat synthesizes and decides what matters.