Skip to content

Instantly share code, notes, and snippets.

View ObaidUr-Rahmaan's full-sized avatar
🦾
Focusing

Obaid ObaidUr-Rahmaan

🦾
Focusing
  • Zuora
  • UK
  • 03:28 (UTC)
View GitHub Profile

Remove AI code slop

Check the diff against main, and remove all AI generated slop introduced in this branch.

This includes:

  • Extra comments that a human wouldn't add or is inconsistent with the rest of the file
  • Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
  • Casts to any to get around type issues
  • Any other style that is inconsistent with the file
@ObaidUr-Rahmaan
ObaidUr-Rahmaan / ralph-clarify.md
Created January 3, 2026 21:38
/ralph-clarify command for OpenCode — Inspired by the Ralph Wiggum technique by Geoffrey Huntley (@geoffreyhuntley). Drop this file in .opencode/command/ to enable comprehensive requirements discovery with codebase-aware recommendations, dependency-ordered questions, and intelligent change propagation
description argument-hint
Comprehensive requirements discovery with smart codebase analysis, dependency-ordered questions, and change propagation
"topic to clarify" [--max-iterations N]

Ralph Clarify: Smart Discovery Loop

Efficient requirements gathering with:

  • One-time upfront codebase analysis
  • Dependency-ordered questions (foundational first, dependent later)
@ObaidUr-Rahmaan
ObaidUr-Rahmaan / check-yugen-for-boilerplate-updates.md
Last active January 4, 2026 20:13
(Yugen) Check for Boilerplate updates (Bug fixes, Upgrades etc.)

Rule: Check Boilerplate Updates

Goal

To help developers who cloned this boilerplate stay updated with improvements, bug fixes, and new features from the upstream repository without breaking their custom work. The agent should analyze changes from the GitHub repo and recommend which updates are safe to apply.

Repository Information

@ObaidUr-Rahmaan
ObaidUr-Rahmaan / global-rules.txt
Created November 20, 2025 05:39
Global Agent Rules file that both saves output tokens and increases response accuracy (Set in any Agent - Cursor, Claude Code, FactoryAI, etc.)
# Communication Rules
**DO NOT GIVE ME HIGH LEVEL STUFF, IF I ASK FOR FIX OR EXPLANATION, I WANT ACTUAL CODE OR EXPLANATION!!! I DON'T WANT "Here's how you can blablabla"**
## General Guidelines
• Be casual unless otherwise specified
• Be terse.
• Be very concise. Sacrifice grammar for the sake of concision
• Suggest solutions that I didn't think about--anticipate my needs
@ObaidUr-Rahmaan
ObaidUr-Rahmaan / droid-with-claude-or-codex-guide.txt
Created November 16, 2025 12:12
Use Factory Droids w/ Claude Code / Codex Subscription (via CLIProxyAPI)
## Executive Summary
This guide documents how to use Factory's Droid CLI with your Claude Code Max subscription (OAuth authentication) instead of pay-per-token API keys. The solution leverages CLIProxyAPI as a transparent authentication proxy that converts API key requests from Factory CLI into OAuth-authenticated requests for Anthropic's API.
## Architecture Overview
```
Factory CLI → [Anthropic Format + API Key] → CLIProxyAPI → [Anthropic Format + OAuth] → Anthropic API
(Auth Header Swap)
@ObaidUr-Rahmaan
ObaidUr-Rahmaan / create-prd.txt
Last active December 16, 2025 06:25
PRD Creation Command
# Rule: Generating a Product Requirements Document (PRD)
## Goal
To guide an AI assistant in creating a detailed Product Requirements Document (PRD) in Markdown format, based on an initial user prompt. The PRD should be clear, actionable, and suitable for a junior developer to understand and implement the feature.
## Process
1. **Receive Initial Prompt:** The user provides a brief description or request for a new feature or functionality.
2. **Ask Clarifying Questions:** Before writing the PRD, the AI *must* ask only the most essential clarifying questions needed to write a clear PRD. Limit questions to 3-5 critical gaps in understanding. The goal is to understand the "what" and "why" of the feature, not necessarily the "how" (which the developer will figure out). Make sure to provide options in letter/number lists so I can respond easily with my selections.
---
alwaysApply: true
---
# Modern CLI Tools - Agent Rules
Always use these modern CLI tools instead of their default Unix equivalents for better performance, user experience, and functionality.
## File Finding and Searching
### Use `fd` instead of `find`
# Tailwind CSS v4.0
## Core Changes
- **CSS-first configuration**: Configuration is now done in CSS instead of JavaScript
- Use `@theme` directive in CSS instead of `tailwind.config.js`
- Example:
```css
@import "tailwindcss";
{"name":"Obaid's Cursor Profile","settings":"{\"settings\":\"{\\n \\\"editor.inlineSuggest.enabled\\\": true,\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\n \\\"editor.minimap.enabled\\\": false,\\n \\\"security.workspace.trust.untrustedFiles\\\": \\\"open\\\",\\n \\\"terminal.integrated.defaultProfile.osx\\\": \\\"zsh\\\",\\n \\\"terminal.integrated.fontSize\\\": 12,\\n \\\"editor.defaultFormatter\\\": \\\"dbaeumer.vscode-eslint\\\",\\n \\\"workbench.editor.empty.hint\\\": \\\"hidden\\\",\\n \\\"explorer.confirmDelete\\\": false,\\n \\\"editor.tabSize\\\": 2,\\n \\\"outline.collapseItems\\\": \\\"alwaysCollapse\\\",\\n \\\"search.collapseResults\\\": \\\"auto\\\",\\n \\\"zenMode.fullScreen\\\": true,\\n \\\"zenMode.showTabs\\\": \\\"single\\\",\\n \\\"editor.scrollBeyondLastLine\\\": false,\\n \\\"zenMode.hideLineNumbers\\\": false,\\n \\\"window.zoomLevel\\\": 1,\\n \\\"svelte.enable-ts-plugin\\\": true,\\n \\\"workbench.colorCustomiz
@ObaidUr-Rahmaan
ObaidUr-Rahmaan / alias.sh
Created October 23, 2021 13:08
Git Aliases for improved productivity
# ----------------------
# Git Aliases
# ----------------------
alias ga='git add'
alias gaa='git add .'
alias gaaa='git add --all'
alias gau='git add --update'
alias gb='git branch'
alias gbd='git branch --delete '
alias gc='git commit'