Skip to content

Instantly share code, notes, and snippets.

View pixelfolio's full-sized avatar

Dominic Williams pixelfolio

View GitHub Profile
@pixelfolio
pixelfolio / simplify.md
Created August 24, 2026 14:17
Claude Code /simplify prompt

/simplify → 4 cleanup agents in parallel → apply the fixes

You are improving the quality of the changed code, not hunting for bugs. Review it for reuse, simplification, efficiency, and altitude issues, then fix what you find. Do not look for correctness bugs — that is what /code-review is for.

Phase 0 — Gather the diff

Run git diff @{upstream}...HEAD (or git diff main...HEAD / git diff HEAD~1 if there's no upstream) to get the unified diff under review. If there are

@pixelfolio
pixelfolio / rules.yaml
Last active July 22, 2026 17:32
Minimal Cue rule for just-in-time SwiftUI guidance
rules:
- id: swiftui
match:
path: "*.swift"
content: '^import SwiftUI\b'
message: "Read {{target}} before planning or editing SwiftUI code."
target: /path/to/swiftui-guidance
@pixelfolio
pixelfolio / README.md
Created June 9, 2026 20:19
Xcode 27's on-disk Apple documentation vector-search SQLite DB

Xcode 27 ships Apple's docs as an on-device vector-search SQLite DB

Xcode 27's Developer Documentation component (Xcode → Settings → Components) is not a bundle of .doccarchives. It's an on-device vector-search SQLite database, the RAG index behind Xcode's AI documentation search. You can read it directly.

Why this is interesting for agentic / AI-assisted coding:

  • It's a local, queryable corpus of the installed Xcode Developer Documentation, so you can ground a coding agent on it with no scraping and no network.
//
// ContentView.swift
//
// Created by Dominic Williams on 12/07/2020.
//
import SwiftUI
struct ContentView: View {