Skip to content

Instantly share code, notes, and snippets.

View james2doyle's full-sized avatar

James Doyle james2doyle

View GitHub Profile
@james2doyle
james2doyle / config.jsonc
Last active November 17, 2026 19:55
Example Azure APIM configuration for OpenCode v2
{
"azure-apim": {
"name": "Azure (APIM, CG)",
"compatibility": {
"supportsPromptCacheKey": true
},
"env": [
"CG_AZURE_APIM_API_KEY"
],
"package": "@opencode/ai/providers/openai-compatible/responses",
@james2doyle
james2doyle / new-build.md
Created November 17, 2026 16:54
Another OpenCode v2 agent. Focus is coding with good habits.

description: Tool-first, parallel coding agent good habits mode: primary color: "#cf1fde" permissions:

  • action: read resource: ".env" effect: deny
  • action: read resource: "*.env.example"
@james2doyle
james2doyle / kero.fish
Created November 11, 2026 18:13
Hooks for fish shell that trigger the status in Kero
# Triggered right before any command executes
function __kero_preexec --on-event fish_preexec
type -q kero; or return
set -q KERO_PANE; or return
# Extract base command executable (e.g. "opencode" from "opencode --debug")
set -l argv_split (string split -m 1 " " -- $argv[1])
set -l base_cmd (basename -- $argv_split[1])
# Interactive TUI programs to bypass
@james2doyle
james2doyle / SKILL.md
Created October 31, 2026 21:07
Guidance and command patterns for searching GitHub using the CLI (gh search)
name search-github
description Guidance and command patterns for searching GitHub using the CLI (gh search). Use when doing research, looking for forks or relevant projects, or finding packages. You can also look for code, issues, commits, and pull requests.

Search GitHub (gh search) Reference Guide

Use this guide for searching GitHub with the CLI tool.

You can append --json to any of these commands to specify which fields you want in the output (e.g., --json title,url,updatedAt) or --limit <number> to control how many results are returned.

@james2doyle
james2doyle / SKILL.md
Created October 31, 2026 21:06
Guidance and command patterns for working with the GitHub CLI (gh)
name gh-cli
description Guidance and command patterns for working with the GitHub CLI (gh). Use when creating PRs, issues, managing repositories, or checking PR/issue status via terminal.

GitHub CLI (gh) Reference Guide

Use this guide for common command patterns when using the GitHub CLI tool.

Pull Requests

@james2doyle
james2doyle / SKILL.md
Last active September 23, 2026 14:15
SKILL.md to write and edit GNOME Blueprint UI files (.blp) for GTK 4 and libadwaita apps.
name gtk-guidelines
description Write and edit GNOME Blueprint UI files (.blp) for GTK 4 and libadwaita apps. Use when creating, reviewing, or debugging Blueprint markup.

GNOME Blueprint

Blueprint is a declarative markup language that compiles to GtkBuilder XML (blueprint-compiler). Everything here is grounded in GTK 4 / libadwaita 1.6+. A canonical set of runnable examples lives in the Workbench demos repo

@james2doyle
james2doyle / SKILL.md
Created September 16, 2026 18:45
Update an AGENTS.md to maximize correctness, completeness, and adherence to codebase standards. I dont recall where this came from.
name agents-md-upgrade
description Update an AGENTS.md to maximize correctness, completeness, and adherence to codebase standards

This skill defines the best practices for authoring AGENTS.md files to maximize an AI coding agent's correctness, completeness, and adherence to codebase standards. It is based on the principle that structured, passive context reliably outperforms active retrieval.

1. Core Philosophy & Directives

  • Passive Context Wins: Agents automatically discover AGENTS.md in 100% of sessions. Rely on this file as the primary entry point rather than expecting agents to actively trigger separate "skills."
@james2doyle
james2doyle / yesterdays-ai-news-test.md
Created September 1, 2026 16:32
A simple prompt to test the tool calling, research capabilities, summary quality, and instruction following for LLMs

Research yesterday's AI news. For each story:

[Emoji] Headline

What happened: 2-4 sentence summary. Validation: ✅ confirmed facts / ⚠️ caveats and unverified claims (formatted as a list) Sources: Outlet

Close with a Key Takeaways table (Theme | Signal) and a confidence rating.

Rules:

@james2doyle
james2doyle / subl
Created August 12, 2026 21:51
Fix large fonts on GNOME desktop in Sublime Text 4
#!/bin/sh
# replaces what was originally in /usr/bin/subl
# change GDK_DPI_SCALE=0.9 based on how you want to scale. 1 is 100%
# you can then use a Linux preferences to change the "ui_scale" up to say 1.1 to even it out
exec env GDK_SCALE=1 GDK_DPI_SCALE=0.9 /opt/sublime_text/sublime_text "$@"
@james2doyle
james2doyle / maclike.json
Created August 8, 2026 23:42
Input-remapper-2 config for mac-like keyboard navigation. Ctrl is remapped to LeftMeta. Put in $XDG_CONFIG_HOME/input-remapper-2/presets/{YOUR_DEVICE}/Maclike.json
[
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 105, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_HOME",
"name": "Ctrl+Left (start of line)",
"mapping_type": "key_macro"