Skip to content

Instantly share code, notes, and snippets.

View pksorensen's full-sized avatar

Poul Kjeldager Sørensen pksorensen

View GitHub Profile
[McpServerPrompt(Name = "create-prd.md"), Description("Generate a comprehensive PRD from product description")]
public static IEnumerable<ChatMessage> CreatePrdFromDescription(
IHttpContextAccessor httpContextAccessor,
ILogger<CreatePrdPrompt> logger,
[Description("Product or feature name")] string productName,
[Description("Detailed product description")] string productDescription,
[Description("Target users or personas")] string? targetUsers = null,
[Description("Key features (comma-separated)")] string? keyFeatures = null,
[Description("Success metrics")] string? successMetrics = null)
{

Product Requirements Document: AI Bulk Image Editor

Document Purpose

This document outlines the requirements for developing an AI-powered bulk image editing tool that automatically optimizes large quantities of images without manual intervention.


1. Title and Overview

1.1 Document Title & Version

import { test, expect } from '@playwright/test';
import { SignupPage } from '../../page-helpers/signup-page';
import { generateSignupTestData } from './fixtures';
import { generateTestUser } from '../../utils/auth-helpers';
import {
initializeSpeechRecording,
addSpeech,
generateSubtitleFiles,
resetSpeechRecording,
} from '../../utils/speech-narration';
[2:54 PM] Poul Kjeldager Sørensen (Delegate)
 CompilerServer: server failed - server rejected the request due to analyzer / generator issues 'analyzer assembly 'C:\Users\pks\.nuget\packages\dotnetdevops
  .extensions.eavframework.sourcegenerator\1.0.155\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.dll' has MVID '9c2eb1fd-370b-4c31-a981-729c5e257f1b' but
  loaded assembly 'Microsoft.CodeAnalysis.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' has MVID 'f27d8e64-f3af-4d2a-9fe8-6f3b78e
  56aa6', analyzer assembly 'C:\Users\pks\.nuget\packages\dotnetdevops.extensions.eavframework.sourcegenerator\1.0.155\analyzers\dotnet\cs\System.Reflection.E
  mit.dll' has MVID '493164c0-d621-4ca2-aa8e-3557f64b4dd2' but loaded assembly 'System.Reflection.Emit, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5
  f7f11d50a3a' has MVID '783c8e8c-5a9e-49eb-b634-ed8502ccba9c'' - 5c665d42-3e69-4228-bff3-e884bf39bfae
#!/bin/bash
set -Eeuxo pipefail
prefix=$(echo "$prefix" | awk '{$1=$1};1')
#Set Prefixes used for resources
prefixShort=$(echo "$prefix" | cut -c -3)
kvprifix="KeyV"
sqlpoolprefix="sqlpool"
sqlprefix="sql"
steps:
- task: DownloadPipelineArtifact@2
- script: |
sudo apt-get update -y
sudo apt-get install -y dos2unix
dos2unix $(Pipeline.Workspace)/azure/*.sh
chmod +x $(Pipeline.Workspace)/azure/*.sh
displayName: 'Command Line Script'
using DotNetDevOps.Extensions.AzureFunction;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.DurableTask;
using Microsoft.Azure.WebJobs.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using System.Text;
[assembly: WebJobsStartup(typeof(Startup))]
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Identity.Client;
using Microsoft.PowerPlatform.Cds.Client;
using Microsoft.PowerPlatform.Cds.Client.Utils;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Messages;
using Microsoft.Xrm.Sdk.Query;
using Newtonsoft.Json.Linq;
public abstract class DurableStateMachineState<TStats>
where TStats : Enum
{
public TStats OrchestratorState { get; set; }
public TimeSpan? DelayExecution { get; set; }
public DateTime StartTime { get; set; }
public int Depth { get; set; } = 0;
public string InstanceId { get; set; }
public Guid InvocationId { get; set; }
using Microsoft.Azure.WebJobs.Description;
using Microsoft.Azure.WebJobs.Host.Bindings;
using Microsoft.Azure.WebJobs.Host.Config;
using Microsoft.Azure.WebJobs.Host.Protocols;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace DotNetDevOps.Extensions.AzureEventGrid.EventManagerApi.Authorization
{