Skip to content

Instantly share code, notes, and snippets.

View RemoteCTO's full-sized avatar
🇬🇧
London

Edward Woodcock RemoteCTO

🇬🇧
London
View GitHub Profile
@RemoteCTO
RemoteCTO / bug-ticket-workflow.md
Created June 9, 2025 13:25
# 🐞 Rail-Grade **Bug-Report → Fix → PR** Workflow

June 2025 "Best-Possible" Edition — v1.0

This single document converts a vague production bug into a merged, QA-verified pull request with the help of Claude 4, Cursor, Aider, Copilot, and a strict journal.md log that every AI tool both reads and updates.


📦 Tool-chain at a Glance

Purpose Primary Tool & Model Backup Why Typical Runtime Cost*

prepare-claude-md.md – Generating & Updating CLAUDE.md (June 2025 Edition)

This guide shows you (or an LLM) how to produce a tight, ≤150‑line CLAUDE.md tailored to any Rails repo using the latest Claude 4 tooling.


1. Bootstrap with Claude Code /init

  1. Open the repo in Cursor or Claude Code CLI.

CLAUDE.md – Project Rulebook v1.1

Purpose – Give Claude 4 concise, authoritative context so its code is 100 % on‑brand, on‑style and production‑ready. ≤150 lines; heavy docs via @file.


1. Project Snapshot  (auto‑refresh nightly)

| Key | Value |

@RemoteCTO
RemoteCTO / gist:5a2121f45ab9f3cdca14616fb162e6c9
Created June 8, 2025 16:41
# 🚂 Rail‑Grade Ticket → PR Workflow ### June 2025 **“Best‑Possible” Edition — v1.6**

🚂 Rail‑Grade Ticket → PR Workflow

June 2025 “Best‑Possible” Edition — v1.6

A pragmatically optimised, cost‑aware flow that takes a fuzzy Jira ticket all the way to a merged PR with minimal human typing and maximum LLM accountability.


🔄 What’s new in v1.6

  • Corrected command references (claude-code plan, qa, cursor ai-lint → replaced with real workflows).
  • Added Finalised Ticket step for Jira back‑sync.
@RemoteCTO
RemoteCTO / prompt-workflow-a.md
Created June 6, 2025 09:28
Prompt Workflow A

🏆 Rail‑Grade Ticket → PR Workflow (June 2025 “Best Possible” Edition)

Tools orchestrated for maximum speed & quality

Role Chosen Tool Rationale
Primary editor Cursor IDE Fast inline Copilot completions, built‑in AI chat/agent, one‑window flow.
Deep refactor / > 64 k tokens / multi‑hour agent Claude Code (VS Code extension & CLI) with Claude 4 Opus Offers /scan, explicit context‑overflow errors, long‑running Opus /agent, GitHub auto‑patch bot.
Inline boilerplate GitHub Copilot (inside Cursor) Millisecond ghost‑text; now mixes GPT‑4 + Sonnet 3.5.
Large‑context reviews Gemini Code Assist Free 128 k context; excellent PR commentary.
@RemoteCTO
RemoteCTO / gist:5171575
Created March 15, 2013 17:26
fontconfig failed to build on 10.8.3
$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install fontconfig
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading http://fontconfig.org/release/fontconfig-2.10.91.tar.gz
Already downloaded: /Library/Caches/Homebrew/fontconfig-2.10.91.tar.gz
tar xf /Library/Caches/Homebrew/fontconfig-2.10.91.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file src/fcarch.h
==> ./configure --disable-dependency-tracking --with-add-fonts=/Library/Fonts,~/Library/Fonts --prefix=/usr/local/Cellar/fontconfig/2.10.91
./configure --disable-dependency-tracking --with-add-fonts=/Library/Fonts,~/Library/Fonts --prefix=/usr/local/Cellar/fontconfig/2.10.91