Skip to content

Instantly share code, notes, and snippets.

@TeamDijon
TeamDijon / remote-typology.md
Created August 3, 2026 10:11
Claude Code dispatcher
date 2026-08-03
subject Starting and resuming Claude Code sessions from a phone — the wake-up widget and the dispatcher
status draft

From the phone: starting a session, and getting back to one

Scope. Two operations, told from the phone: start something new, and get back to something. How the work itself gets done, and everything about backups and permissions, is out of scope.

@TeamDijon
TeamDijon / SKILL.md
Created July 6, 2026 12:33
Fanout skill
name fanout
description Orchestrate a routed, cost-estimated multi-agent fan-out. Use when the user wants to run a batch of subagents over many items (per-file / per-component / per-issue audits, extractions, comparisons), or any deliberate parallel delegation. Converges on the shape with the user, routes each stage to the right agent+model from the available roster, checks cost and permission-safety, confirms, fans out, and synthesizes. Not for a single one-off subagent — call the Agent tool directly for that.
argument-hint
the task / need to fan out
allowed-tools Read, Grep, Glob, Bash, Agent

Fanout — routed multi-agent orchestration

Turn a fan-out need into an explicitly-routed, cost-estimated, permission-safe batch of subagents, then synthesize the results.

@TeamDijon
TeamDijon / composition-strategy.md
Created May 27, 2026 10:26
Shopify Theme Composition Strategy

Composition strategy

Every new UI need maps to one layer in the stack below — from the design-system substrate up to specialized sections. Walk the decision flow before writing code for a new pattern.

The foundation: substrate + HTML elements

Two layers sit below the five, applied ambiently.

Supporting systems (the substrate). Metaobjects (theme_color, text_style, typeface/font, content_width, spacing…), color schemes, and Shopify platform APIs. They apply with zero per-element config: a bare <h2>Your cart</h2> renders per theme configuration without metadata on the element. The bare-tag text_style binding (in utility--css-variables) styles h1h6; --color-* variables and color-scheme values cascade in.

@TeamDijon
TeamDijon / commit-msg.sh
Created April 19, 2026 11:05
Remove Anthropic fluff from commit messages → .git/hooks/commit-msg
#!/bin/sh
# Strip Anthropic Co-Authored-By trailers and the "Generated with Claude Code" line.
sed -i -e '/<noreply@anthropic\.com>/d' \
-e '/🤖 Generated with \[Claude Code\]/d' "$1"
# Trim trailing blank lines left behind.
sed -i -e :a -e '/^\s*$/{$d;N;ba' -e '}' "$1"
@TeamDijon
TeamDijon / context-worktree-pattern.md
Last active April 17, 2026 16:44
.context/ Worktree Pattern

.context/ Worktree Pattern

A git pattern for keeping markdown context files (docs, specs, decisions, notes) in the same repo as code but on a completely separate history.

What it is

An orphan git branch mounted as .context/ via git worktree. Context and code share the same repo but have fully separate histories. Markdown files on the context branch are accessible to both humans and AI agents alongside the codebase, without cluttering the main branch or polluting the code commit log.

Setup

@TeamDijon
TeamDijon / claude-code-context-guide.md
Created February 5, 2026 14:59
Claude Code Context Guide

Claude Code Context Management Guide

Context Loading Overview

SESSION START (always in context)
├── CLAUDE.md                    → Full content loaded
├── .claude/rules/*.md           → Full content loaded
├── Skill metadata               → Names + descriptions only
└── Subagent metadata → Names + descriptions only
@TeamDijon
TeamDijon / examples.liquid
Last active December 8, 2025 14:26
Liquid asset loader
{% liquid
# CSS only block/section
render 'utility--asset-loader', name: 'hero', js: false
# Regular block/section
render 'utility--asset-loader', name: 'featured-product'
%}
{% # Dynamic style %}
{% capture dynamic_style %}
@TeamDijon
TeamDijon / details-animation-support.css
Created June 28, 2025 15:56
<details> animation support
@media (prefers-reduced-motion: no-preference) {
details {
transition: 0.3s ease-in-out;
@supports (interpolate-size: allow-keywords) {
interpolate-size: allow-keywords;
&::details-content {
block-size: 0;
opacity: 0;
@TeamDijon
TeamDijon / gorgias-integration.js
Created June 24, 2025 08:12
Gorgias utility functions
/**
* Manages interface with the Gorgias third-party chat widget.
*/
window.mx.utils.gorgias = {
/**
* Gets the Gorgias chat container element.
* @returns {HTMLElement|null} The Gorgias chat container or null if not found.
*/
getContainer: () => {
try {
@TeamDijon
TeamDijon / dry-pagination.liquid
Last active February 25, 2025 14:04
Snippet showing a DRY paginated product grid using both collection and product_list source
{% liquid
# Using the collections object is necessary as we can't paginate collection settings, only collectionDrop objects
assign featured_collection = collections[section.settings.featured_collection]
assign product_list = section.settings.product_list
if featured_collection == null and product_list == blank
# Default behavior handling can go there
endif
assign pagination_size = section.settings.pagination_size