Skip to content

Instantly share code, notes, and snippets.

View dungle-scrubs's full-sized avatar

Kevin dungle-scrubs

View GitHub Profile
@dungle-scrubs
dungle-scrubs / gist:23fe7a3ae9aad474cffaa82c89f8d1ec
Created January 15, 2026 10:36
Claude Code skill - TS standards
---
description: "MANDATORY for ALL TypeScript output - files AND conversational snippets. Covers: strict mode, Result types, discriminated unions, readonly, import type, as const. Trigger: any TS code, types, interfaces, generics, error handling. No exceptions for 'simple' requests."
---
# TypeScript Best Practices
## When to Use This Skill
This skill should be triggered when:
@dungle-scrubs
dungle-scrubs / gist:77c660ba2fcde28d389db60d6d8ef732
Created January 15, 2026 09:22
AI coding standards - OOP, testing
## OOP Best Practices
### Composition & DI
- Favor composition over inheritance (prefer constructor injection over deep inheritance trees)
- Inject dependencies via constructors or factories
- Avoid service locators or hidden globals
### SOLID Principles
@dungle-scrubs
dungle-scrubs / log.liquid
Created March 16, 2024 09:59
Snippet to determine if a Liquid value is `blank`, `""`, `empty`, or `null`
{% comment %}
Accepts 3 arguments:
log: <Liquid object>
label: <string>
floating: <boolean>
{% endcomment %}
<div
style="