Skip to content

Instantly share code, notes, and snippets.

View Vikaskumargd's full-sized avatar
🎯
Focusing

Vikas Kumar Vikaskumargd

🎯
Focusing
  • India
  • 06:50 (UTC +05:30)
View GitHub Profile
@Vikaskumargd
Vikaskumargd / 2026-07-07-MP-0a-repo-skeleton-tooling-design.md
Created July 7, 2026 23:38
Turn the fresh Astro 7 starter into a production-ready skeleton with strict TS, Tailwind v4, shadcn React components (server-rendered, zero JS), SEO head, native fonts, ESLint isolation rules, Prettier, and Vitest.

MP-0a — Repo skeleton & tooling (Design Spec)

Status: Approved in brainstorming session 2026-07-07 Parent spec: docs/superpowers/specs/2026-07-07-pink-pulsar-plan-of-plans-design.md (§7 MP-0a, §3 architecture, §5 UI/UX stack) Scope: One PR-sized increment — turn the fresh Astro 7 starter into a production-ready skeleton with strict TS, Tailwind v4, real shadcn React components (server-rendered = zero JS), SEO head, native fonts, ESLint isolation rules, Prettier, and Vitest. No business logic, no pages beyond a smoke-test home page.


1. Goal & scope

@Vikaskumargd
Vikaskumargd / 2026-07-07-pink-pulsar-plan-of-plans-design.md
Created July 7, 2026 09:02
A plan-of-plans for a production-grade end-to-end e-commerce website.

Pink Pulsar — Plan of Plans (Design Spec)

Status: Approved in brainstorming session 2026-07-07 Owner: vikas (human) — executes by dispatching AI per mini-plan using superpowers Repo: pink-pulsar — Astro 7 + @astrojs/cloudflare adapter on Cloudflare Workers Purpose: A plan-of-plans for a production-grade end-to-end e-commerce website. Each mini-plan is one PR-sized, AI-implementable, fully-tested increment. The plan-of-plans itself is for human use only — the AI does not execute it; it executes one mini-plan at a time on demand.


1. Product & business context

@Vikaskumargd
Vikaskumargd / tailwind-css-v4.mdc
Created August 8, 2025 13:29 — forked from danhollick/tailwind-css-v4.mdc
Cursor rules file for Tailwind CSS v4.0
// Update globs depending on your framework
---
name: tailwind_v4
description: Guide for using Tailwind CSS v4 instead of v3.x
globs: ["**/*.{js,ts,jsx,tsx,mdx,css}"]
tags:
- tailwind
- css
---
@Vikaskumargd
Vikaskumargd / .py
Created March 16, 2025 21:33 — forked from Madhav-MKNC/coding-agent.py
All the code you need to create a powerful agent that can create and edit any file on your computer using the new text_editor tool in the Anthropic API.
import anthropic
import os
import sys
from termcolor import colored
from dotenv import load_dotenv
class ClaudeAgent:
def __init__(self, api_key=None, model="claude-3-7-sonnet-20250219", max_tokens=4000):
"""Initialize the Claude agent with API key and model."""
@Vikaskumargd
Vikaskumargd / findStyles.js
Created April 29, 2020 04:05 — forked from macbookandrew/findStyles.js
List unique CSS properties for all DOM elements
/**
* List unique CSS properties for all DOM elements
* Initially created to list unique font stacks on a page
* @see {@link http://stackoverflow.com/a/35022690/ Inspired by this StackOverflow answer}
*
* @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a/ URL for this file}
*
* @author AndrewRMinion Design (https://andrewrminion.com)
* @version 1.1
*
@Vikaskumargd
Vikaskumargd / useFetch.js
Created April 9, 2020 21:53 — forked from Dromediansk/useFetch.js
fetching data custom hook final version
import { useState, useEffect } from "react";
export const useFetch = (url, ref, initialValue) => {
const [data, setData] = useState(initialValue);
const [error, setError] = useState(null);
const [loading, setLoading] = useState(true);
useEffect(() => {
if (ref.current) {
(async () => {
@Vikaskumargd
Vikaskumargd / launch.json
Created September 20, 2017 06:59
Config for Debugging Typescipt Jest tests in VS Code
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts-ts",
"runtimeArgs": [
"--inspect-brk",
@Vikaskumargd
Vikaskumargd / AsyncMediatorPipeline.cs
Created August 20, 2017 11:17
AsyncMediatorPipeline and Autofac Registration
public class AsyncMediatorPipeline<TRequest, TResponse> : IAsyncRequestHandler<TRequest, TResponse> where TRequest : IAsyncRequest<TResponse>
{
private readonly IAsyncRequestHandler<TRequest, TResponse> inner;
private readonly IAsyncPreRequestHandler<TRequest>[] preRequestHandlers;
private readonly IAsyncPostRequestHandler<TRequest, TResponse>[] postRequestHandlers;
public AsyncMediatorPipeline(IAsyncRequestHandler<TRequest, TResponse> inner, IAsyncPreRequestHandler<TRequest>[] preRequestHandlers, IAsyncPostRequestHandler<TRequest, TResponse>[] postRequestHandlers)
{
this.inner = inner;
public static Func<A, R> Memoize<A, R>(this Func<A, R> f)
{
var map = new Dictionary<A, R>();
return a =>
{
R value;
if (map.TryGetValue(a, out value))
return value;
value = f(a);
map.Add(a, value);
@Vikaskumargd
Vikaskumargd / GenericRepo.cs
Created February 5, 2017 20:52
Repository Pattern Plus Unit of Work
using MyUniversity.Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
namespace MyUniversity.DAL