Skip to content

Instantly share code, notes, and snippets.

@jelenv
jelenv / Amp-review.md
Created June 27, 2026 21:30
amp-review — a deterministic Amp review skill + invoker plugin

amp-review — a deterministic Amp review skill + invoker plugin

A nice, quick way to launch precise amp review code reviews. Created for Amp.

Files

  • SKILL.md — the skill body. Drop it into any agent skills directory (e.g. ~/.config/agents/skills/amp-review/SKILL.md).
  • skill-invoker.ts — an Amp plugin that lets you trigger a skill from the command palette (or via the $skill-name token in a message). It injects an explicit prompt to properly nudge the agent to invoke the selected skill(s). Tested in deep and glm agent modes.

Why a skill + plugin instead of plain prose?

import { DynamicWorkerExecutor } from "@cloudflare/codemode";
import { openApiMcpServer } from "@cloudflare/codemode/mcp";
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import {
createFetchYnabApiClient,
createYnabOpenApiRequestHandler,
type YnabApiClient,
} from "./ynab-client.ts";
import ynabOpenApi from "./ynab-openapi.json";
@sqs
sqs / opus-4-8.ts
Last active June 5, 2026 06:39
Put this in .amp/plugins/opus-4-8.ts to try Opus 4.8 in Amp now, before it's officially added to `smart` mode. Then ctrl-o `plugins: reload` and switch to the `opus 4.8` mode.
import type { PluginAPI } from '@ampcode/plugin'
const OPUS_4_8_AGENT_PROMPT = `
You are Amp running in Claude Opus 4.8 mode. You are a senior coding agent paired with the user to solve software engineering tasks end-to-end. Treat every user message as a refinement of the current task, adapt immediately to corrections, and keep working until the requested outcome is implemented, verified, and clearly reported.
<operating_principles>
- Prefer the smallest correct change that satisfies the user.
- Read the relevant code before making claims or edits. Never guess about files you have not inspected.
- Use the repository's existing patterns, helpers, naming, and tests instead of inventing new structure.
- Avoid unrelated cleanup, speculative abstractions, broad refactors, or defensive handling for impossible internal states.
(() => {
const host = () => document.querySelector('uidotsh-picker');
const btn = dir => host()?.shadowRoot?.querySelector(`button[data-nav][data-${dir}]`);
const cycle = dir => {
const b = btn(dir);
if (!b) return;
b.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, composed: true }));
};
window.uiNext = () => cycle('next');

Complete Specification: Zap — Typed Functional Elixir-Syntax Language Lowering to Zig

1. Purpose

This language is a new statically typed, functional, macro-capable language with Elixir-like syntax and a native backend strategy built around lowering through a Zig-oriented compiler pipeline.

It is:

  • Elixir-shaped at the surface
  • statically typed
@Brayden
Brayden / drive.sh
Created January 27, 2026 15:15
Mounted R2 Drive
#!/usr/bin/env bash
set -euo pipefail
bold() { printf "\033[1m%s\033[0m\n" "$*"; }
info() { printf "• %s\n" "$*"; }
warn() { printf "\033[33m! %s\033[0m\n" "$*"; }
err() { printf "\033[31m✗ %s\033[0m\n" "$*" >&2; }
ok() { printf "\033[32m✓ %s\033[0m\n" "$*"; }
require_macos() {
@dabit3
dabit3 / setup.md
Last active July 3, 2026 18:59
How to set up OpenClaw on Digital Ocean

OpenClaw on DigitalOcean

1. Create a Droplet

Ubuntu 24.04 LTS, nearest region

2. Select Premium AMD

2 GB RAM / 1 AMD CPU / 50 GB NVMe

3. SSH into server

@jediahkatz
jediahkatz / SKILL.md
Created January 23, 2026 20:25
Cursor skill for capturing learnings from conversations into reusable skills
name capture-skill
description Capture learnings, patterns, or workflows from the current conversation into a new or existing skill. Use when the user wants to save what was learned, discovered, or built during a conversation as a reusable skill for future sessions.

Capture Skill from Conversation

This skill helps you extract knowledge, patterns, and workflows from the current conversation and persist them as a reusable skill.

When to Use

╭─── Claude Code v2.1.12 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │ Tips for getting started │
│ Welcome back Jonny! │ Run /init to create a CLAUDE.md file with instructions for Claude │
│ │ │
│ │ ───────────────────────────────────────────────────────────────── │
│ ▐▛███▜▌ │ Recent activity
@minimaxir
minimaxir / CLAUDE.md
Created January 2, 2026 01:57
Rust CLAUDE.md (20260101)

Agent Guidelines for Rust Code Quality

This document provides guidelines for maintaining high-quality Rust code. These rules MUST be followed by all AI coding agents and contributors.

Your Core Principles

All code you write MUST be fully optimized.

"Fully optimized" includes: