Skip to content

Instantly share code, notes, and snippets.

View andynu's full-sized avatar

Andrew Nutter-Upham andynu

View GitHub Profile
@andynu
andynu / SKILL.md
Last active January 20, 2026 18:57
C4 Diagram skill, using d2 lang
name description
C4 Diagrams
Creating C4 architecture diagrams using D2 diagram language. Use when creating system context diagrams, container diagrams, component diagrams, code diagrams, deployment diagrams, or any software architecture visualization following the C4 model. Also applies when discussing architecture at different zoom levels or explaining system boundaries.

C4 Architecture Diagrams with D2

Create C4 model diagrams using D2's text-to-diagram syntax. Supports both graphical (SVG/PNG) and ASCII output.


---
- name: ruby build dependencies
apt:
pkg:
- git
- build-essential
- libssl-dev
- zlib1g-dev
- libreadline-dev
- libffi-dev
@andynu
andynu / statusline-command.sh
Created January 10, 2026 19:39
Claude Code custom statusline script - shows model, folder, git branch, and token usage with progress bar
#!/bin/bash
input=$(cat)
MODEL=$(echo "$input" | jq -r '.model.display_name // "Claude"')
DIR=$(echo "$input" | jq -r '.workspace.current_dir // "~"')
FOLDER="${DIR##*/}"
# Git branch
BRANCH=""
if git -C "$DIR" rev-parse --git-dir > /dev/null 2>&1; then
BRANCH=$(git -C "$DIR" branch --show-current 2>/dev/null)
@andynu
andynu / bdexecissue.md
Created January 9, 2026 00:30
Claude Code slash commands for bd (beads) issue tracking workflow
description argument-hint allowed-tools context
execute a single bd issue
<issue key>
Bash(bd *), Bash(git *), Bash(tea *), Read(.)
fork

Execute Single BD Issue

Overview

Execute a single bd issue with proper status tracking, commenting, and git workflow integration. This command handles one issue in isolation, keeping context clean.

@andynu
andynu / bdexecplan.md
Created November 24, 2025 21:24
BD (Beads) issue tracker planning and execution commands for Claude Code
description allowed-tools
execute a set of bd issues
Bash(bd:*)

Execute BD Plan Command

Overview

Execute a bd plan by working through issues with proper status tracking, commenting, and git workflow integration. Do not ask which one to start with. Start with any ready task by priority, if there is a tie, choose the first one. Please continue implementing until all ready tasks are complete, or you hit a critical question that demands a human answer.

@andynu
andynu / execplan.md
Created November 6, 2025 14:09
Plan and execution plan for slash commands

Execute Plan Command

Overview

Execute a numerically-prefixed plan file from the plans folder based on the provided argument.

Instructions

Plan Selection

  • Read the plan file with prefix matching $ARGUMENTS from the plans folder
  • Check plans/index.md to see if the plan file has changed since last worked (compare Last Modified vs Last Worked timestamps)
@andynu
andynu / start_gunicorn.sh
Created November 4, 2025 14:32
cellxgene gunicorn and uwsgi startup scripts
#!/bin/bash
# start_gunicorn.sh - Start Cellxgene Gateway with Gunicorn
#
# PREREQUISITES:
# - Gunicorn installed (included with cellxgene 1.3.0, or: pip install gunicorn)
# - Virtual environment activated or .venv present
# - .env file with CELLXGENE_LOCATION and CELLXGENE_DATA (or CELLXGENE_BUCKET)
#
# USAGE:
@andynu
andynu / filters_concern.rb
Created October 9, 2025 16:20
example concerns
require 'active_support/concern'
# The {FiltersConcern} provides a <tt>filter_params</tt> scope which takes a hash <tt>{ col1: term, col2: term }</tt>
#
# see app/assets/javascripts/filterable.js
#
# == type sensitive filtering
# * strings - fuzzy search of %term%
# * dates -
# * July - => month
@andynu
andynu / andyfortune.rb
Created September 22, 2025 20:17
andyfortune
#!/usr/bin/env ruby
# # Andy Fortune
#
# A personal quote and wisdom generator that displays random inspirational quotes
# from various sources including Lao Tzu, programming principles, and life philosophy.
#
# ## Usage
# ```bash
# andyfortune # Display a random quote
@andynu
andynu / execplan.md
Created September 3, 2025 19:06
plan/execplan claude code commands

Execute Plan Command

Overview

Execute a numerically-prefixed plan file from the plans folder based on the provided argument.

Instructions

Plan Selection