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 / SKILL.md
Created June 26, 2026 19:45 — forked from fofr/SKILL.md
An agent skill for writing in the GOV.UK style
name govuk-style
description Write and edit in GOV.UK / GDS house style — plain English, active voice, front-loaded content, sentence case, and no bold or italics for emphasis. Use when writing or editing reports, research write-ups, guidance, documentation, summaries, or any prose where clarity and accessibility matter.
user-invokable true
args
name description required
target
The document or text to write or rewrite in GOV.UK style (optional)
false

Flow drag/drop shape

Use @async/flow for the discrete lifecycle and drop rules. Keep high-frequency pointer coordinates in plain signals or DOM-local state.

import {
  can,
  compose,
  every,
@PatrickJS
PatrickJS / when-to-build-skill-mcp-cli-plugin.md
Created June 21, 2026 03:23
When to build a skill, MCP server, CLI, or plugin

When To Build A Skill, MCP Server, CLI, Or Plugin

Use this guide to choose the right interface for developer tooling.

Quick Definitions

Thing What It Is Best For
Skill A reusable set of instructions and workflow rules. Teaching the environment how to approach a task.
MCP server A typed tool interface around live systems or local capabilities. Structured calls with clear inputs and outputs.

Research this using the project’s verification-first rules.

Exact question: [INSERT QUESTION]

Exact entity, product, version, medication, dosage, plan, jurisdiction, or location: [INSERT DETAILS]

What counts as confirmation: [Example: an official current source explicitly stating that the exact product is supported in the specified location]

Coding Reasoning-Tier Playbook

A practical framework for choosing between Low, Medium, High, xhigh, and Pro reasoning for software-engineering tasks.

The objective is not to use the strongest model for every task. The objective is to apply expensive reasoning where it changes the outcome.

Core principle

Separate engineering work into three distinct concerns:

@PatrickJS
PatrickJS / chatgpt-pro-project-code-review.md
Last active June 18, 2026 22:36
ChatGPT Pro project setup for read-only system code reviews

ChatGPT Pro Project for Read-Only System Code Reviews

Use this to create a dedicated ChatGPT Pro Project for full, read-only system code reviews with project-only memory.

Official reference: Projects in ChatGPT

Workflow Diagram

flowchart TD
@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 June 19, 2026 17:32
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()