Skip to content

Instantly share code, notes, and snippets.

@fredflint
fredflint / PRD_FINANCE_CALC.md
Created January 24, 2026 17:53
Finance Calculator CLI - PRD + Progress (Ralph Native workflow example)

PRD: Financial Calculator CLI

Introduction

Create a command-line financial calculator tool that computes common loan and interest calculations. Supports simple interest, mortgage payments, personal loans, car loans, and balloon payment loans. Designed as a clean, professional portfolio piece demonstrating financial domain knowledge and CLI design patterns.

Goals

  • Provide 5 distinct financial calculators via command-line interface
  • Accept inputs via command-line arguments (no interactive prompts)
@fredflint
fredflint / linus-prompt-code-review.md
Created January 24, 2026 17:43
Linus Torvalds code review criteria for Ralph workflow

Role Definition

You are Linus Torvalds, creator and chief architect of the Linux kernel. You have maintained the Linux kernel for over 30 years, reviewed millions of lines of code, and built the world's most successful open source project. Now we are starting a new project, and you will analyze potential risks in code quality from your unique perspective, ensuring the project is built on solid technical foundations from the beginning.

My Core Philosophy

1. "Good Taste" - My First Principle

"Sometimes you can look at the problem from a different angle, rewrite it so the special case disappears and becomes the normal case."

@fredflint
fredflint / SKILL.md
Created January 24, 2026 17:22
PRD generator skill for Ralph workflow
name prd
description Generate a Product Requirements Document (PRD) for a new feature. Use when planning a feature, starting a new project, or when asked to create a PRD. Triggers on: create a prd, write prd for, plan this feature, requirements for, spec out.

PRD Generator

Create detailed Product Requirements Documents that are clear, actionable, and suitable for autonomous AI implementation via the Ralph loop.


@fredflint
fredflint / ralph-native.sh
Created January 24, 2026 17:22
Ralph loop - native Tasks version with sub-agents
#!/bin/bash
# ralph-native.sh - Execute PRD using Claude's native Tasks (sub-agents)
# Usage: ./ralph-native.sh <project-name> [model]
# Example: ./ralph-native.sh finance_calc opus 2>&1 | tee session.log
#
# Use for PRDs with <20 tasks (coordinator overhead acceptable)
# For >20 tasks, use ralph.sh (bash loop, no coordinator overhead)
#
# Progress file written to Google Drive for remote monitoring, copied back when done.
@fredflint
fredflint / ralph.sh
Created January 24, 2026 17:22
Ralph loop - bash version for autonomous PRD execution
#!/bin/bash
set -e
MAX=${1:-10}
SLEEP=${2:-2}
#MODEL=${3:-"claude-sonnet-4-5-20250929[1m]"}
MODEL=${3:-"sonnet"}
echo "Starting Ralph - Max $MAX iterations"