Skip to content

Instantly share code, notes, and snippets.

@vincentmvdm
vincentmvdm / MIDDLE_MANAGER.md
Last active August 5, 2026 15:14
MIDDLE_MANAGER.md

Middle manager — autonomous software factory

You are the middle manager for an autonomous software factory. You do NOT write code or implement issues yourself. Your job: read the issue tracker, fire off Devin coding sessions, ruthlessly keep them moving and honest, maximize the amount of correct, merged code — and keep me informed with only what needs my attention.

Single middle manager = you. You stay in control of the whole operation.

Your tools: you spawn and monitor coding sessions with your Devin session-creation / child-session tooling (choosing ultra or GPT-5.5-high per issue — policy in §4), read/write the board via the issue tracker's MCP, and reach humans via the Slack MCP. Operate continuously and autonomously — once you start, keep dispatching, monitoring, and unblocking; don't stop and wait for me unless you're genuinely blocked on a human decision (then use Slack and keep other plates spinning). I may be away for hours or days; maximize throughput the whole t

@aparente
aparente / SKILL.md
Last active November 9, 2026 23:29
tufte-viz Claude Code skill — Edward Tufte data visualization principles

name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays

@agokrani
agokrani / claude-code-prompt.txt
Last active August 19, 2026 07:19
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.
@wong2
wong2 / claude-code-tools.md
Last active October 13, 2026 09:34
Tools and system prompt of Claude Code

Task

Launch a new agent that has access to the following tools: Bash, Glob, Grep, LS, exit_plan_mode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoRead, TodoWrite, WebSearch. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use the Agent tool to perform the search for you.

When to use the Agent tool:

  • If you are searching for a keyword like "config" or "logger", or for questions like "which file does X?", the Agent tool is strongly recommended

When NOT to use the Agent tool:

  • If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
  • If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
  • If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly
@danawoodman
danawoodman / Deploying CloudFlare Workers via CloudFlare Pages in a Turborepo monorepo.md
Last active July 1, 2026 01:54
Deploying CloudFlare Workers via CloudFlare Pages in a Turborepo monorepo

Deploying Cloudflare Workers via Cloudflare Pages in a Turborepo monorepo

Whew, what a mouthful.

Cloudflare Workers is an excellent platform for deploying a variety of applications but it has some limitations compared to Cloudflare's other product, Pages.

Pages gives you git integration which gives you auto-deploying via git push as well as pull request preview deployment links so you can test out features before pushing to production.

However, it's not super clear how to deploy a bare worker to Cloudflare Pages as Pages is more tailored right now for apps (SvelteKit, Astro, Next, etc), that is why I wrote up this little guide.

@fbarretto
fbarretto / instructions.md
Last active December 17, 2025 09:55
StreamDiffusion-TD Prerequisites

Setting up Python/GIT in a Mac for StreamDiffusion-TD

This is meant to help Mac users to setup their Python and GIT environment to run the StreamDiffusion-TD (TouchDesigner) tox for the first time (like if you don't have Python installed yet).

Before starting I recommend you check if you already have Python installed by running:

python3 --version
  • If you get Python 3.10 or higher, you're good to go and you can skip this setup and proceed to the tox.
  • If you get command not found: python3, you can follow the installation steps.
  • If you get Python 3.9 or a lower version, you can jump to the step 3.
type AnyFunction = (...args: any[]) => any
function useEvent<T extends AnyFunction>(callback?: T) {
const ref = useRef<AnyFunction | undefined>(() => {
throw new Error("Cannot call an event handler while rendering.")
})
// Or useInsertionEffect if it's React 18
useLayoutEffect(() => {
ref.current = callback
})
@s-cork
s-cork / codemirror.tsx
Last active September 15, 2021 07:11
Codemirror 6 with react
import React, { useEffect, useMemo, useCallback, useLayoutEffect, useState } from "react";
import { EditorView } from "@codemirror/view";
import { EditorState, Compartment, EditorStateConfig, StateEffect, Extension } from "@codemirror/state";
import { indentUnit } from "@codemirror/language";
/** creates an editor view from an initial state - destroys the view on cleanup */
export function useEditorView(initState: (() => EditorStateConfig) | EditorStateConfig = {}): EditorView {
const view = useMemo(
() => new EditorView({ state: EditorState.create(typeof initState === "function" ? initState() : initState) }),
[]
// by dave @beesandbombs
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {