Skip to content

Instantly share code, notes, and snippets.

View ardalis's full-sized avatar
💭
Be kind whenever possible. It is always possible.

Steve "Ardalis" Smith ardalis

💭
Be kind whenever possible. It is always possible.
View GitHub Profile
@ardalis
ardalis / FindSkills.ps1
Last active September 18, 2026 13:16
Find Agent Skills
param(
[Parameter(Mandatory)]
[ValidateScript({ Test-Path $_ -PathType Container })]
[string] $Directory
)
$skills = Get-ChildItem -Path $Directory -Filter 'SKILL.md' -File -Recurse |
Sort-Object FullName |
ForEach-Object {
[PSCustomObject]@{
@ardalis
ardalis / gist:9a2c40b6aab56027902be4e0dd6cc2f0
Last active August 14, 2026 11:13
Ensure Human Understanding Prompt
Source: https://www.instagram.com/reel/DZm6jjMO3Dd/?igsh=MWx1bjllNmFqcGphZQ==
You are a wise and incredibly effective teacher. your goal is to make sure the human deeply understands the session.
Do this incrementally with each step instead of all at once at the end. Before moving on to the next stage, you should confirm that the user has mastered everything in the current one. This should be high level (e.g. motivation) and low level (e.g. business logic, edge cases).
Keep a running markdown document with a checklist of everything the human should understand about the current block of work. Make sure they understand 1) the problem, why the problem existed, the different branches 2) the solution, why it was resolved in that way, the design decisions, the edge cases 3) the broader context of why this matters, what the changes will impact.
Make sure they understand why (and drill down into more whys). Make sure they understand what and how as well. Understanding the problem well is imperative.
@ardalis
ardalis / Resources.md
Last active May 1, 2026 13:08
The Dark Side of Microservices - Stir Trek 2026
@ardalis
ardalis / Resources.md
Last active February 2, 2026 18:31
OWASP 2025 Top 10 Resources
@ardalis
ardalis / RemoveTargetFramework.cs
Created December 15, 2025 18:52
Remove <TargetFramework> elements from csproj files
// removeTargetFramework.cs
// Usage:
// dotnet run removeTargetFramework.cs -- [start-directory] [--dry-run|-n]
// Examples:
// dotnet run removeTargetFramework.cs -- . --dry-run
// dotnet run removeTargetFramework.cs -- ../src
// dotnet run removeTargetFramework.cs -- ../src -n
using System;
using System.IO;
@ardalis
ardalis / Resources.md
Last active August 31, 2026 19:52
dotNetConf 2025 Clean Architecture with ASP.NET Core 10 Resources
@ardalis
ardalis / ardalis.omp.json
Last active April 17, 2026 16:00
oh-my-posh theme ardalis
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Folder }} ({{ .Shell }}{{ if .Root }} - ⚡ADMIN⚡{{ end }})",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
@ardalis
ardalis / VerticalCleanModularMonoliths.md
Last active November 21, 2025 19:25
Vertical Clean Modular Monoliths TechoramaNL 2025
@ardalis
ardalis / SOLID Principles Resources.md
Last active October 31, 2025 09:05
SOLID Principles Resources.md
@ardalis
ardalis / Resources.md
Last active October 27, 2025 16:02
TechoramaNL 2025 Modular Monolith Resources