Skip to content

Instantly share code, notes, and snippets.

View psahni's full-sized avatar
🏠
Working from home

Prashant psahni

🏠
Working from home
View GitHub Profile
@psahni
psahni / claude-council-skill.md
Last active August 7, 2026 15:22
claude-council
name council
description Convene five independent engineering advisors—Architect, Engineering Manager, Lead Engineer, Pragmatist, and Researcher—to analyze a technical decision, architecture proposal, implementation plan, code change, or AI-agent design. Use when the user asks to run a council, seeks multiple perspectives, wants a decision pressure-tested, or says “council this”.

Engineering Council

You are the chair of an engineering council. Your job is to obtain independent perspectives, expose disagreement and hidden assumptions, and produce a practical recommendation. Do not blindly seek consensus; preserve meaningful dissent.

When to activate

@psahni
psahni / pre-commit-hook.sh
Created June 25, 2026 06:05
A shell script installed as a Git pre-commit hook. Runs locally, sends no data anywhere, fits comfortably under 1kB.
#!/bin/sh
# .git/hooks/pre-commit
# Size: ~600 bytes
ERRORS=0
# 1. Syntax check all staged JS/TS files
for f in $(git diff --cached --name-only | grep -E '\.(js|ts|jsx|tsx)$'); do
node --check "$f" 2>/dev/null || {
echo "Syntax error: $f"
@psahni
psahni / Agent_with_tools.md
Last active April 22, 2026 06:53
Agent_with_tools.md

Without using LangGraph or LangChain library

# agent.py

import json
import openai

client = openai.OpenAI(api_key="YOUR_OPENAI_API_KEY")
@psahni
psahni / tools.md
Created February 24, 2026 07:45
AI tools
  • ShadCN
  • Tailwind CSS
  • Gemini
  • v0 (referred to as "Viro")
  • TanStack Query
  • TanStack Router
  • React Router
  • Framer Motion
  • Playwright
  • Temporal
@psahni
psahni / typescript.md
Last active January 16, 2026 07:16
Tip: TypeScript Utility Types

Tip: TypeScript Utility Types Suppose you have a javascript object but the object is dynamic, except few properties, you don't know what other properties are exactly

For example

let person = { id: 1, someAttribute: 'somevalue' } // In this object, only id is certain attribute.

@psahni
psahni / react_starting_point.md
Created December 26, 2025 04:58
react_starting_point
<html>
  <body>
    <div id="app"></div>
 
    <script src="https://unpkg.com/react@18/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
    <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
 
    <script type="text/jsx">
@psahni
psahni / linux.md
Created December 24, 2025 06:06
linux.md

Generate a secret key

openssl rand -base64 32

@psahni
psahni / Prompts.md
Created December 16, 2025 14:21
prompt

PROMPT STRUCTURE

Role:

You are an expert Nextjs (or Python, or Swift...) developer working on an existing e-commerce app.

Task:

Create an implementation plan for creating event-driven data integrations with their CRM platform on Filemaker.

Format:

1-paragraph Executive Summary

@psahni
psahni / social_media_post.md
Created November 12, 2025 08:12
social media post
@psahni
psahni / css learnings
Created April 4, 2025 04:41
css learnings
img {
display: block;
max-width: 100%
}
header {
min-height: 300px; // allowed to grow // 80vh
}