Skip to content

Instantly share code, notes, and snippets.

View idusortus's full-sized avatar
🎯
Focusing

Sam Johnson idusortus

🎯
Focusing
View GitHub Profile
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
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.

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.

@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
@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 / MinimalAPIs.md
Created January 23, 2024 16:05 — forked from davidfowl/MinimalAPIs.md
Minimal APIs at a glance
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
@idusortus
idusortus / csharp-expressions-statements.md
Last active April 9, 2021 14:25
C# - Expressions vs. Statements

Statements

From Microsoft:
The actions that a program takes are expressed in statements.

  • Do not return a value
  • Cannot be chained
  • May contain expressions
  • Generally cannot be used as expressions

Expressions

@idusortus
idusortus / csharp-reflection-compare-two-objects-replace-nulls.md
Last active April 9, 2021 12:52
C# .Net Core 3.1 - Compare Two Objects, Replace Nulls

Example:

var cem = new TemplateEmailModel
{
    To = "[email protected]",
    Subject = "SES Test"                              
};

var testCem = new TemplateEmailModel
{