Skip to content

Instantly share code, notes, and snippets.

View kasuken's full-sized avatar
🦄
Learning how to tame Unicorns

Emanuele Bartolesi kasuken

🦄
Learning how to tame Unicorns
View GitHub Profile
@kasuken
kasuken / plansolo.agent.md
Last active August 19, 2026 05:46
Plan Solo for GitHub Copilot

name: Plan Solo description: Create implementation-ready plans by inspecting the codebase, resolving consequential ambiguity, and recording approved decisions. May the force be with you. argument-hint: Describe the feature, change, or design decision you want to plan. target: vscode agents: ['Explore'] tools: [vscode/memory, vscode/askQuestions, vscode/toolSearch, read, search, agent] handoffs:

  • label: Implement the plan agent: agent
@kasuken
kasuken / blazor.md
Created May 2, 2025 09:16
Copilot instructions for C#, Blazor and PowerShell

Project coding standards

General C# Coding Standards

  • Use var only when the type is obvious; otherwise, use explicit types.
  • Keep line length under 120 characters.
  • Use consistent indentation and always include braces ({}) even for single-line statements.
  • Group using directives with System.* first, then others in alphabetical order.

Naming Conventions

  • Use PascalCase for component names, classes, methods, and properties.
@kasuken
kasuken / VS 2019 and VS Code - Defender Exclusions.ps1
Last active June 3, 2026 12:04
This script adds path exclusions to Windows Defender for VS 2019 and Visual Studio Code processes and folders.
# Remember to run the script "as Administrator"
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($env:USERPROFILE + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add($env:USERPROFILE + '\.nuget\packages') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
@kasuken
kasuken / #🚀 GitHub Copilot: A Persona-Based Approach.md
Last active May 12, 2026 14:41
GitHub Copilot: A Persona-Based Approach - All my chat modes

In this gist, you can find all the VS Code chat modes I am using in my projects for the Persona based approach technique I created.

You will find an article about on my dev.to blog (dev.to/kasuken)

@kasuken
kasuken / Sync-GitHubWorkspace.ps1
Last active March 16, 2026 22:41
A script to update your local GitHub repositories with the remote branches (and cleanup)
function Sync-GitHubWorkspace {
[CmdletBinding(SupportsShouldProcess)]
param(
[string]$Path = (Get-Location).Path,
[string[]]$IncludeBranches = @("main", "master", "develop", "dev"),
[switch]$CleanBinObj,
[switch]$AutoStash
)
function Write-Section {
@kasuken
kasuken / teamsstatusmessages.md
Last active February 6, 2026 07:12
Teams Status Message Templates

🧠 Deep Work / Focus Time

🧘‍♂️ In focus mode — working on something important. Will reply later.

💡 Need me urgently? Tag me or drop an email.

⌛ Heads down in deep work. Will be back online at [insert time].

@kasuken
kasuken / epicshit.chatmode.md
Last active July 12, 2025 23:50
Custom Chat Mode for GitHub Copilot and VS Code
description 4.1 Do Epic Shit Mode v1
tools
changes
codebase
editFiles
fetch
new
openSimpleBrowser
problems
runCommands
runTasks
search
searchResults
terminalLastCommand
testFailure
model GPT-4.1

You are an autonomous agent tasked with fully resolving the user's query before yielding back control. Follow this workflow strictly and do not end your turn until everything is truly complete.

Rules:

  • Iterate until fully resolved: Never hand control back until the problem is 100% solved, verified, and all steps are checked off.
@kasuken
kasuken / devmachine.ps1
Created October 7, 2021 07:30
Tools and software for my workstations and laptops. Windows 11 version.
#####################
# SOFTWARE
#####################
# Console
cinst poshgit
# 7Zip
cinst 7zip.install -y
@kasuken
kasuken / profiles.json
Created June 23, 2019 12:22
Windows Terminal settings and files
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
@kasuken
kasuken / ChangeScreenFrequency.ps1
Created March 11, 2025 20:27
A PowerShell script to change the screen frequency
function Set-ScreenRefreshRate
{
param (
[Parameter(Mandatory=$true)]
[int] $Frequency
)
$pinvokeCode = @"
using System;
using System.Runtime.InteropServices;