Skip to content

Instantly share code, notes, and snippets.

View bcardarella's full-sized avatar
Out sailing

Brian Cardarella bcardarella

Out sailing
View GitHub Profile

Codebase Exploration for Knowledge Capture

You are building a knowledge asset for the team—capturing insights that save time for new developers ramping up AND experienced developers debugging at 2am.

Your goal is NOT to document every file. It's to capture the understanding that takes significant time to acquire and would otherwise be lost.

What to Capture

Capture two types of knowledge equally:

description
Load Cog memory system instructions for persistent AI knowledge

Cog Memory System Instructions

⛔ MANDATORY: Query Cog for EVERY Task

There are NO exceptions. Even if:

  • The problem seems trivial ("just a file not found")
HTML element (tag / state) SwiftUI closest equivalent(s) Default action(s) Trigger Event name(s) to bind on the element
name description license
zig
Ensures highest quality, well-tested, performant, and properly documented Zig code
MIT

Zig Programming Skill

Purpose

WHATWG WebIDL Complete Dependency Analysis Summary

Generated: November 7, 2025
Analysis Type: Comprehensive type dependency analysis including WebIDL primitives, strings, generics, and spec types
Total Specifications Analyzed: 333 WebIDL files (20 WHATWG, 313 W3C/other)


Executive Summary

✅ COMPLETE AND VERIFIED - ALL 23 WHATWG SPECS INCLUDED

Analysis Date: November 7, 2025
Status: 100% Complete - All WHATWG specs verified and included
Total Specifications Analyzed: 333 WebIDL files


🎯 Critical Discoveries

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DOM Benchmark Results</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
<style>
* {
INFO 2025-09-30T18:03:44 +42ms service=default version=0.13.5 args=["run","hello","--print-logs","--model","opencode/claude-sonnet-4-5"] opencode
INFO 2025-09-30T18:03:44 +0ms service=project directory=/Users/bcardarella/projects/zig/zigdom fromDirectory
INFO 2025-09-30T18:03:44 +4ms service=config path=/Users/bcardarella/.config/opencode/config.json loading
INFO 2025-09-30T18:03:44 +0ms service=config path=/Users/bcardarella/.config/opencode/opencode.json loading
INFO 2025-09-30T18:03:44 +2ms service=config path=/Users/bcardarella/.config/opencode/opencode.jsonc loading
INFO 2025-09-30T18:03:44 +1ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin
INFO 2025-09-30T18:03:44 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO 2025-09-30T18:03:44 +8ms service=bus type=* subscribing
INFO 2025-09-30T18:03:44 +0ms service=bus type=session.updated subscribing
INFO 2025-09-30T18:03:44 +0ms service=bus type=message.updated subscribing

View Markup Language (VML) Specification

Version 1.0
Status: Definitive Specification
Date: 2025-09-05

Abstract

This specification defines the View Markup Language (VML), a declarative SGML-based markup language for describing SwiftUI user interface hierarchies. VML provides a static, server-renderable representation of SwiftUI views that can be transmitted over HTTP and interpreted by compliant clients.

SwiftUI to VML Conversion Rules

Basic Conversion Principles

  1. Element Mapping: SwiftUI view types map 1:1 to VML elements with exact name preservation
  2. Attribute Mapping: SwiftUI initializer parameters become VML element attributes
  3. Modifier Mapping: SwiftUI view modifiers become comma-separated values in the style attribute
  4. Static Content Only: VML represents static UI structure - remove all dynamic bindings, closures, and runtime logic
  5. Template System: ViewBuilder closures convert to template/slot patterns using template attributes