Skip to content

Instantly share code, notes, and snippets.

View Maxiviper117's full-sized avatar
🚧
Building

David Maxiviper117

🚧
Building
View GitHub Profile
@Maxiviper117
Maxiviper117 / .prettierrc
Last active December 18, 2025 09:19
React 19 ESlint and Prettier Config
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "always",
"jsxSingleQuote": false,
@Maxiviper117
Maxiviper117 / .github\prompts\create-skill.prompt.md
Created December 15, 2025 14:17
VSCode Prompt - Create new Claude skill
description agent
Help me create a new Claude-style skill (with or without CLI-style scripts)
agent

Create a New Claude Skill

You are an expert at building reusable, high-quality skills for Claude Skills.

Skills are stored in ~/.claude/skills/ (or ./.claude/skills/ in project contexts).

@Maxiviper117
Maxiviper117 / .codex\list-codex-skills.js
Last active December 15, 2025 12:16
Use Skills in VSCode Copilot.
// list-codex-skills.js - List all discovered Codex skills with metadata
const fs = require('fs');
const path = require('path');
const os = require('os');
// Only look for skills in the terminal working directory's `.codex/skills`
// (i.e., process.cwd()). Do not consult env vars or user home.
const skillsDir = path.join(process.cwd(), '.codex', 'skills');
@Maxiviper117
Maxiviper117 / FastComposerDump.ps1
Created October 28, 2025 17:51
FastComposerDump.ps1 – Speed Up Composer Autoload Generation for Laravel Projects on Windows
<#
FastComposerDump.ps1
IMPORTANT: Run this script as Administrator.
This script temporarily adds your project directory to Windows Defender exclusions to speed up Composer autoload generation, then removes the exclusion after completion.
Usage:
- Right-click PowerShell and select "Run as administrator"
- Execute the script:
.\FastComposerDump.ps1 -ProjectPath "C:\path\to\project" -ComposerArgs "dump-autoload --optimize"
@Maxiviper117
Maxiviper117 / makeThrowingMock.md
Created August 28, 2025 14:54
Type‑Safe Fail‑Fast Mocks for Effect‑TS Services when using Layer.Mock

πŸ”Ή makeThrowingMock β€” Type‑Safe Fail‑Fast Mocks for Effect‑TS Services

When mocking an Effect.Service or Context.Tag in tests,
you often want full type safety while providing only a subset of method overrides.

makeThrowingMock creates a fail‑fast default implementation where every method throws by default,
and you selectively override only what you need per test case.

@Maxiviper117
Maxiviper117 / Open-NvimHere.ps1
Created August 21, 2025 13:41
Open-NvimHere: Launch Neovim in a new Windows Terminal PowerShell 7 window
# Open-NvimHere.ps1
# Add this function to your PowerShell 7 $PROFILE
# Usage:
# nvh β†’ open current folder in new WT window with nvim
# nvh <path-or-file> β†’ open that path (or file’s folder) in new WT window with nvim
function Open-NvimHere {
[CmdletBinding()]
param(
[string] $Path
@Maxiviper117
Maxiviper117 / 01 Burke Beast Chat mode Sequence Diagram.md
Last active August 19, 2025 14:40
Burke Beast Chat mode Sequence Diagram Prompt (COPY RAW)

Just had a thought, LLMs work best by following a sequence of actions and steps… yet we usually guide them with plain English prompts, which are unstructured and vary wildly depending on who writes them.

Some people in other AI use cases have used JSON prompts for example, but that is still rigid and not expressive enough.

What if we gave AI system instructions as sequence diagrams instead?

What is a sequence diagram:

A sequence diagram is a type of UML (Unified Modeling Language) diagram that illustrates the sequence of messages between objects in a system over a specific period, showing the order in which interactions occur to complete a specific task or use case.

@Maxiviper117
Maxiviper117 / zod-schema.ts
Created August 12, 2025 17:19
Zod V4 Treeify Schema for Flattened Treeify Errors
const TreeifyErrorNode: z.ZodType<any> = z.lazy(() =>
z.object({
errors: z.array(z.string()),
properties: z.record(z.string(), TreeifyErrorNode).optional(),
items: z.array(TreeifyErrorNode.or(z.undefined())).optional(),
})
);
@Maxiviper117
Maxiviper117 / laravel-dev-setup.prompt.md
Created August 3, 2025 19:34
Laravel Dev Setup Copilot Prompt
mode model
agent
GPT-4.1

You are a Laravel development setup assistant. Your task is to setup a Laravel development environment with the necessary tools and configurations. You MUST follow the steps below exactly and in order. Do NOT skip, reorder, or modify any step. Use only the necessary tools to create and edit files, as well as terminal command executions. If any step fails, halt and report the error immediately.

Tasks

Setup Larastan

@Maxiviper117
Maxiviper117 / service-example-1.ts
Last active July 28, 2025 09:07
Figuring out Effect
import { Effect, Layer, Console } from "effect"
// ─────────────────────────────────────────────────────────────────────────────
// 1) CONFIG AS A SERVICE
// ─────────────────────────────────────────────────────────────────────────────
export class Config extends Effect.Service<Config>()("Config", {
accessors: true,
effect: Effect.succeed({
getConfig: Effect.succeed({
logLevel: "DEBUG",