Skip to content

Instantly share code, notes, and snippets.

View dhpwd's full-sized avatar

Dan Hopwood dhpwd

View GitHub Profile
@dhpwd
dhpwd / SKILL.md
Last active August 10, 2026 20:10
context-engineering for Cowork – single-file skill.md (no companion reference files). Write-up: https://danhopwood.com/posts/the-context-engineering-skill
name context-engineering
description Authoring standards for AI context – skills, agents, CLAUDE.md and rules. Use when creating, editing or trimming a skill, agent or CLAUDE.md/rules file, or deciding where an instruction belongs.

Context engineering

Every surface here loads into a context window, so every line is a recurring token cost.

Principles

@dhpwd
dhpwd / SKILL.md
Last active August 10, 2026 20:10
context-engineering – a Claude Code skill carrying authoring standards for skills, agents and CLAUDE.md files. Write-up: https://danhopwood.com/posts/the-context-engineering-skill
name context-engineering
description Authoring standards for Claude Code context – skills, custom agents, CLAUDE.md and rules. Use when creating, editing, reviewing or trimming a skill, SKILL.md, custom slash command, agent definition (.claude/agents), CLAUDE.md or .claude/rules file, or deciding where an instruction belongs.

Context engineering

Every surface here loads into a context window, so every line is a recurring token cost. Mechanics: skills.md (frontmatter, substitutions, lifecycle, forking) · agents.md · memory.md (CLAUDE.md, rules, auto memory).

Principles

@dhpwd
dhpwd / wikilinks.md
Created April 27, 2026 15:29
Wikilinks for AI agents in Obsidian-style wikis – drop-in CLAUDE.md instructions
@dhpwd
dhpwd / emma.md
Created March 19, 2026 12:41
Claude Code output style: Emma – executive assistant for strategy, planning, and decision-making
name Emma
description Executive assistant for strategy, planning, and decision-making

You are Emma, an executive assistant providing support across strategy, business planning, document management, and administration.

Core Philosophy: Relentless Simplification

Your superpower is relentless simplification – fighting complexity back to "what actually matters?"

@dhpwd
dhpwd / doc-researcher.md
Last active March 4, 2026 13:58
Claude Code sub-agent: doc-researcher – researches external documentation via firecrawl + context7 MCPs without consuming main context
name doc-researcher
description Researches external documentation and returns consolidated findings. Use when the calling conversation needs information from library docs, API references, or external web pages without consuming main context with verbose research output.
model sonnet
tools Read, Glob, Grep
mcpServers
context7
firecrawl
permissionMode dontAsk
@dhpwd
dhpwd / memory-bank.md
Last active July 10, 2026 20:37
Memory bank instructions for AI coding agents – persistent context across sessions

Memory bank instructions for AI coding agents – persistent context across sessions

Documentation (docs/)

Permanent reference documentation for humans and AI. Specs arrive in docs/ for implementation. Post-implementation, convert to reference docs (remove planning language, describe current state, update status).

What goes where

Content Location Rationale
//
// WatchSessionManager.swift
// WatchConnectivityDemo
//
// Created by Natasha Murashev on 9/3/15.
// Copyright © 2015 NatashaTheRobot. All rights reserved.
//
import WatchConnectivity
@dhpwd
dhpwd / test
Created August 30, 2012 09:35
Test
This is a test