Skip to content

Instantly share code, notes, and snippets.

View malcolmgreaves's full-sized avatar

Malcolm Greaves malcolmgreaves

View GitHub Profile
@malcolmgreaves
malcolmgreaves / interview-me-planmd.md
Created February 6, 2026 21:25 — forked from SilenNaihin/interview-me-planmd.md
Claude Code: Interview Me for Plan - in-depth planning interviews

Interview Me for Plan

Read @plan.md and interview me in detail using the AskUserQuestionTool about literally anything: technical implementation, UI & UX, concerns, tradeoffs, etc.

Make sure the questions are not obvious.

Be very in-depth and continue interviewing me continually until it's complete, then write the plan to the file.

@malcolmgreaves
malcolmgreaves / setup-ralph.md
Created February 6, 2026 21:25 — forked from SilenNaihin/setup-ralph.md
Claude Code /setup-ralph command - Set up Ralph autonomous development

Ralph Setup

Set up Ralph autonomous development for a project.

Context

This command sets up Ralph for autonomous development. You should already have:

  • A project with basic structure (use /setup-repo first if needed)
  • A clear understanding of the project requirements
  • A plan for implementation (either in your context or written to a plan file)
@malcolmgreaves
malcolmgreaves / setup-repo.md
Created February 6, 2026 21:25 — forked from SilenNaihin/setup-repo.md
Claude Code: Repo Setup command with CLAUDE.md, tooling, and Ralph

Repo Setup

You are setting up this repository for agentic coding with Claude Code.

Step 0: Check Existing Setup & Context

First, check what's already configured in this repo:

ls -la CLAUDE.md .cursorrules 2>/dev/null
@malcolmgreaves
malcolmgreaves / setup-claude-code.md
Created February 6, 2026 21:25 — forked from SilenNaihin/setup-claude-code.md
Claude Code: Global setup command - installs plugins, commands, agents

Setup Claude Code

You are setting up Claude Code globally on this machine. This captures best practices from agentic coding workflows.

Step 0: Check Existing Setup

First, check what's already configured:

ls ~/.claude/commands/ 2>/dev/null
@malcolmgreaves
malcolmgreaves / commit-smart.md
Created February 6, 2026 21:24 — forked from SilenNaihin/commit-smart.md
Claude Code: Atomic Git Commit command for multi-agent workflows

Atomic Git Commit

Create an atomic git commit for the changes made in this session.

Instructions

  1. First, run git status to see all changes (staged, unstaged, and untracked files).

  2. Identify only the files you touched in this session. Do not commit files modified by other agents or processes.

@malcolmgreaves
malcolmgreaves / resolve_result.rs
Created February 3, 2026 22:51
[rust] Turn a `Result<T,T>` into a `T`.
pub trait Resolve<T> {
fn resolve(self) -> T;
}
impl <T> Into<T> for Result<T,T> {
fn resolve(self) -> T {
match self {
Ok(value) => value,
Err(err) => err,
}
@malcolmgreaves
malcolmgreaves / ensemble-opinion.md
Created January 19, 2026 23:47 — forked from SilenNaihin/ensemble-opinion.md
Claude Code: Multi-model ensemble opinions (Claude + Gemini + Codex)
description Get multi-model opinions on a problem (Claude + Gemini + Codex)

You are orchestrating an ensemble of AI models to analyze a problem from multiple angles.

Your Task

  1. Identify the problem from conversation context
  2. Run ALL THREE models in PARALLEL using the Task tool
@malcolmgreaves
malcolmgreaves / debug.md
Created January 19, 2026 23:46 — forked from SilenNaihin/debug.md
Claude Code: Debug command for systematic debugging

Debug

You are stuck on a thorny issue. Take your time. Be comprehensive—thoroughness beats speed here.

Your Approach

  1. Create hypotheses - List all possible causes for what's wrong. Don't jump to conclusions.
  2. Read all related code - Read ALL code that could be related. Take your time. Don't skim.
  3. Add strategic logging - Add console.log statements to verify your assumptions about what's actually happening.
  4. Ultrathink - Think step by step through the problem. Consider edge cases.
@malcolmgreaves
malcolmgreaves / transfer-context.md
Created January 19, 2026 23:42 — forked from SilenNaihin/transfer-context.md
Claude Code: Transfer Context command for new chat sessions

Transfer Context

Prepare context for a new chat session when this one is degraded or hitting limits.

Output Format

## Context Transfer

### Summary
@malcolmgreaves
malcolmgreaves / newtype_valid.rs
Created January 5, 2026 23:28
A macro for a newtype with custom construction validation logic.
#[derive(Debug)]
pub enum Error {
InvalidMarkdown,
InvalidLlmTxtFormat,
Unknown(String),
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "<error>")