Skip to content

Instantly share code, notes, and snippets.

@intellectronica
intellectronica / 0.README.md
Created September 7, 2025 14:51
Coding Agent Instructions for Working with SQLite

Coding Agent Instructions for Working with SQLite

  • Somewhat safe (instructed to ask for approvals before destructive ops)
  • Verbose — keeps you in the loop about what operations it's doing
  • Tested with GPT-5-high, GPT-5-medium, Claude 4 Sonnet
    • Be careful with inferior models that might not respect the instructions as strictly
  • Drop this in your .ruler/ / ~/.config/ruler/ or wherever you keep instructions for your agent

Happy SQLiting! 🫶

@intellectronica
intellectronica / 0.README.md
Last active May 2, 2026 00:43
Promtify: Prompt for reading messy dictation from the clipboard and turning it into a readable prompt

Promptify

Turn messy dictated instructions to AI into neat prompts that are easy to read and modify.

I do most of my prompting by dictation, usually in very confused and messy form. To be able to review these prompts and amend them before submitting them to the AI, I use this meta-prompt.

I use a Raycast AI Command which reads my clipboard and runs the prompt using Gemini 2.5 Pro. But this can work just as well with any recent LLM and driver.


@intellectronica
intellectronica / excalidraw-observe.md
Last active October 4, 2025 18:19
Instruct an agent on how to observe the Excalidraw drawing or presentation it's working on.
  • To make sure that the files you edit and create look good, you MUST ALWAYS use a command like the following one to export a rendered image, view it, understand how it looks and what needs improvement, and iterate - making updates to the excalidraw file, exporting, and reviewing again - until the results are pixel perfect.
npx excalidraw-brute-export-cli \
  --input slides.excalidraw \
  --output slides.png \
  --format png \
  --scale 2 \
  --embed-scene true
  • ALWAYS export and review. NEVER declare the work on an Excalidraw drawing or presentation done until you've reviewed its rendered visual representation to verify and adjust as needed.

Flashcard Generator Skill

Your new skill for generating Anki flashcard decks from text!

What It Does

This skill converts any text document into high-quality flashcards optimised for memorisation and spaced repetition learning. It's based on your Cardcraft application but simplified for direct use through Claude.

How to Use

@intellectronica
intellectronica / 0.README.md
Last active January 1, 2026 18:22
Promptify (skill) — Transforms casual requests into detailed, precise prompts optimised for AI models.

Promptify (skill)

Transforms casual requests into detailed, precise prompts optimised for AI models.

What It Does

Rewrites free-form requests as clear, structured prompts with proper organisation, headings, and bullet points. Especially useful for converting rambling dictated requests into organised prompts you can review and edit before using.

The output uses specification language — plain, straightforward, and actionable — with clear structure and no added complexity.

@intellectronica
intellectronica / codex.md
Created November 3, 2025 21:32
Claude Code /command to run Codex CLI - Great for complex planning and analysis
allowed-tools
Bash(/opt/homebrew/bin/codex *)
description Run codex with GPT-5-high
argument-hint your prompt text
model haiku

Run the following command exactly. Don't modify it in any way.

@intellectronica
intellectronica / statusline.png
Last active February 2, 2026 13:49
My Claude Code custom status line (directory ・ git ・ mcp servers ・ cost (if API key) ・ model (and thinking)・ context window ・ version)
statusline.png
@intellectronica
intellectronica / windmill-claude-agent-sdk.ts
Created November 17, 2025 10:25
Script for running the Claude Agent SDK from within Windmill
import * as wmill from "windmill-client"
import { query } from '@anthropic-ai/claude-agent-sdk';
Bun.spawnSync(['bun', 'add', '-g', '@anthropic-ai/claude-code'], {
cwd: '/tmp',
env: { ...process.env, BUN_INSTALL: '/tmp/.bun' }
});
process.env.PATH = `/tmp/.bun/bin:${process.env.PATH}`;
@intellectronica
intellectronica / 0.README.md
Last active December 10, 2025 15:11
Global Copilot CLI Just Recipes for Quick AI in the Terminal

Global Copilot CLI Just Recipes for Quick AI in the Terminal

Copilot CLI is a nice CLI agent supporting many of the best models (with a Copilot subscription). One thing I like to use it for, is giving me easy access to AI in a plain terminal.

The snippet above is from my global ~/.justfile. I also have alias j=just in my .zshrc

Each invocation streams the output to the terminal and also copies it to the clipboard.

For example: