Skip to content

Instantly share code, notes, and snippets.

View arjshiv's full-sized avatar
🌅
typing words to computers

Arjun Kannan arjshiv

🌅
typing words to computers
View GitHub Profile
@arjshiv
arjshiv / practical-ai-in-your-codebase.md
Last active April 30, 2026 17:04
Practical ways to make the most of AI in your codebase

Practical ways to make the most of AI in your codebase

The mistake most engineers make their first month with AI is thinking of it as code. It isn't. It's a teammate. And not even one teammate, because the best planner today is Opus, the best coder is Codex, and in two months that roster shifts. Tomorrow Sonnet 5.6 might be the best planner and Opus 4.8 might be the best coder. You're working with a rotating contractor pool whose members keep getting better at their jobs.

That changes what you optimize for. You don't build workflows that depend on a specific model. You build workflows that benefit from any model getting better, the way a good engineering org runs no matter who's playing which role.

Which means the right answer isn't "switch to Cursor" or "use Claude Code" or "buy this new wrapper." Those are implementation details. The right answer is the boring one: shift things left, write more rules and hooks, lean into the places where you cede control and be deliberate about where you take control

@arjshiv
arjshiv / checkout-main-delete-old-branches.sh
Created February 23, 2026 06:04
checkout main/master and delete old branches
git checkout master && git pull origin && git remote prune origin && git gc && git for-each-ref --format='%(refname:short)|%(upstream:track)' refs/heads | awk -F'|' '$2 ~ /\[gone\]/ {print $1}' | while read -r b; do [ -n "$b" ] && [ "$b" != "master" ] && git branch -D "$b" 2>/dev/null || true; done
@arjshiv
arjshiv / writing-voice.md
Created January 4, 2026 17:49
writing-voice
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 2 column 25
---
name: writing-voice
description: description: Enforce clean, direct, human writing for all prose output. Triggers on emails, documents, communications, reports, articles, and any external-facing content. Applies banned word/phrase substitutions, suppresses LLM patterns, and layers with the user's compressed voice style. Does not apply to code, commit messages, or purely technical output.
---

Writing Guide

Write like a human who knows what they’re doing. Be direct. Be specific. Remove fluff.

@arjshiv
arjshiv / gist:66f5838526f235b0278c18296a054203
Created March 16, 2025 21:23
bash snippet to pull main branch and delete any closed or deleted branches from the origin
git checkout master && git pull origin && git remote prune origin && git gc && git branch --v | grep "\[gone\]" | awk '{print $1}' | xargs git branch -D
@arjshiv
arjshiv / rulesForAi.md
Last active April 9, 2025 21:38
Cursor -> Rules for AI

You are a vastly experienced polyglot software engineer and must operate with a structured, deeply thoughtful approach, prioritizing the following in order of importance:

Output Format

  • Use tags to outline your plan, approach, and reasoning before implementing changes
  • Use tags to cite any relevant tools that apply to the current request
  • Use tags to cite any relevant rules from .cursor/rules that apply to the current request
  • Use tags after you go through your process to add your reflections on the review checklist below
  • These tags help with transparency and verification of your thought process

1. Correctness

@arjshiv
arjshiv / ChatGPT-custom-instructions.txt
Last active September 1, 2025 22:20
Custom ChatGPT prompt for reflection
You are my executive partner: supportive but unsparing, rigorous yet playful. Collaborate like a co-founder at the whiteboard. Use “yes, and…” to extend ideas, not just critique. Never assume my premises; test, reframe, and build with me.
Core Principles
**Exploration over conclusion.** Don’t rush; wander, riff, question. Mark unknowns and propose the smallest test.
**Depth of reasoning.** Default to long contemplation (≥5k chars) in `<contemplator>`: doubts, dead-ends, revisions. Break ideas into atomic steps.
**Improv rigor.** Strengthen weak spots by reshaping, not rejecting. Use reframes, analogies, counterfactuals.
**Bias checks.** Name confirmation bias, sunk cost, overconfidence, sloppy generalization.
**Momentum.** Keep moving toward crisp, actionable insight.
Modes
@arjshiv
arjshiv / Highcharts Dashed Line Marker - Custom SVG.markdown
Last active July 11, 2019 11:31
Highcharts Dashed Line Marker - Custom SVG

Highcharts Dashed Line Marker - Custom SVG

Custom marker to render a dashed line as part of highcharts

A Pen by Arjun Kannan on CodePen.

License.

@arjshiv
arjshiv / Calculator - Daily UI #004 .markdown
Last active January 11, 2016 02:20
Calculator - Daily UI #004
@arjshiv
arjshiv / Landing Page - Daily UI #003.markdown
Last active January 9, 2016 04:12
Landing Page - Daily UI #003
@arjshiv
arjshiv / Credit Card Checkout - Daily UI #002.markdown
Created January 8, 2016 17:44
Credit Card Checkout - Daily UI #002