Skip to content

Instantly share code, notes, and snippets.

View malcolmgreaves's full-sized avatar

Malcolm Greaves malcolmgreaves

View GitHub Profile
@malcolmgreaves
malcolmgreaves / gemini-delegate.md
Created February 6, 2026 21:26 — forked from SilenNaihin/gemini-delegate.md
Claude Code: Delegate tasks to Google Gemini agent
description
Delegate a coding task to Google Gemini agent for autonomous execution

You are delegating a coding task to Gemini CLI. Gemini will analyze and execute the task.

Your Task

  1. Identify the task from conversation context
  2. Read CLAUDE.md and inject context directly into the prompt
@malcolmgreaves
malcolmgreaves / codex-delegate.md
Created February 6, 2026 21:26 — forked from SilenNaihin/codex-delegate.md
Claude Code: Delegate tasks to OpenAI Codex agent
description
Delegate a coding task to OpenAI Codex agent for autonomous execution

You are delegating a coding task to a headless Codex agent. Codex will do the actual implementation work.

Your Task

  1. Identify the task from conversation context
  2. Read CLAUDE.md and inject context directly into the prompt
@malcolmgreaves
malcolmgreaves / refactor.md
Created February 6, 2026 21:26 — forked from SilenNaihin/refactor.md
Claude Code: Refactor command for code quality cleanup with jscpd, knip, and code-simplifier

Refactor

You are doing a focused refactoring session. This is a distinct phase, not continuous activity.

Step 1: Detect Project Type

ls package.json pyproject.toml setup.py 2>/dev/null
@malcolmgreaves
malcolmgreaves / update-claudemd.md
Created February 6, 2026 21:25 — forked from SilenNaihin/update-claudemd.md
Claude Code: Update CLAUDE.md with recent learnings

Update CLAUDE.md

You are updating this project's CLAUDE.md to reflect meta learnings (conventions, philosophy, gotchas) and significant recent changes to the codebase.

What TO Add

  • Philosophy/conventions - e.g., "No backwards compatibility unless explicitly requested"
  • Gotchas - Non-obvious things that cause bugs repeatedly
  • Commands or scripts - New ways to run/test things
  • Structure changes - When directories or files move
@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,
}