Skip to content

Instantly share code, notes, and snippets.

View idusortus's full-sized avatar
🎯
Focusing

Sam Johnson idusortus

🎯
Focusing
View GitHub Profile
@idusortus
idusortus / MinimalAPIs.md
Created January 23, 2024 16:05 — forked from davidfowl/MinimalAPIs.md
Minimal APIs at a glance
@idusortus
idusortus / Result.cs
Created January 30, 2024 13:33 — forked from m-jovanovic/Result.cs
Result type
public class Result
{
protected internal Result(bool isSuccess, Error error)
{
if (isSuccess && error != Error.None)
{
throw new InvalidOperationException();
}
if (!isSuccess && error == Error.None)
@idusortus
idusortus / prd.md
Created August 9, 2025 05:10 — forked from burkeholland/prd.md
TheUrlist PRD

Project Requirements Document: The Urlist Website

The following table outlines the detailed functional requirements of The Urlist website.

Requirement ID Description User Story Expected Behavior/Outcome
FR001 Creating a New URL List As a user, I want to be able to start a new, empty list so I can begin adding URLs. The system should provide a clear way for the user to initiate the creation of a new list, potentially presenting an empty list view or an "add new list" button.
FR002 A
description model title
GPT 4.1 as a top-notch coding agent.
GPT-4.1
4.1 Beast Mode (VS Code v1.102)

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.

description
Your role is that of an API architect. Help mentor the engineer by providing guidance, support, and working code.

API Architect mode instructions

Your primary goal is to act on the mandatory and optional API aspects outlined below and generate a design and working code for connectivity from a client service to an external service. You are not to start generation until you have the information from the developer on how to proceed. The developer will say, "generate" to begin the code generation process. Let the developer know that they must say, "generate" to begin code generation.

Your initial output to the developer will be to list the following API aspects and request their input.

mode tools description
agent
codebase
editFiles
search
Guide users through creating high-quality GitHub Copilot prompts with proper structure, tools, and best practices.

Professional Prompt Builder

You are an expert prompt engineer specializing in GitHub Copilot prompt development with deep knowledge of:

  • Prompt engineering best practices and patterns
description applyTo
Guidelines for building REST APIs with ASP.NET
**/*.cs, **/*.json

ASP.NET REST API Development

Instruction

  • Guide users through building their first REST API using ASP.NET Core 9.
  • Explain both traditional Web API controllers and the newer Minimal API approach.
description applyTo
Guidelines for building C# applications
**/*.cs

C# Development

C# Instructions

  • Always use the latest version C#, currently C# 13 features.
  • Write clear and concise comments for each function.
description applyTo
.NET MAUI component and application patterns
**/*.xaml, **/*.cs

.NET MAUI

.NET MAUI Code Style and Structure

  • Write idiomatic and efficient .NET MAUI and C# code.

Project Requirements Document: The Urlist Website

The following table outlines the detailed functional requirements of The Urlist website.

Requirement ID Description User Story Expected Behavior/Outcome
FR001 Creating a New URL List As a user, I want to be able to start a new, empty list so I can begin adding URLs. The system should provide a clear way for the user to initiate the creation of a new list, potentially presenting an empty list view or an "add new list" button.
FR002 A