Skip to content

BumpyClock/agent-templates / skills/programming

programming

Unverified

Implement, debug, refactor, or review code with scoped changes and evidence.

FileKindSize
SKILL.mdskill md9.3 KB
agents/openai.yamlconfig225 B
attribution.txtmarkdown3.4 KB
references/apple/guide.mdmarkdown4.6 KB
references/apple/upstream/adopt-c-bounds-safety/guide.mdmarkdown1.2 KB
references/apple/upstream/adopt-c-bounds-safety/references/adoption-strategies.mdmarkdown12.0 KB
references/apple/upstream/adopt-c-bounds-safety/references/build-settings.mdmarkdown2.9 KB
references/apple/upstream/adopt-c-bounds-safety/references/common-patterns-and-pitfalls.mdmarkdown35.3 KB
references/apple/upstream/adopt-c-bounds-safety/references/language-overview.mdmarkdown39.3 KB
references/apple/upstream/adopt-c-bounds-safety/references/runtime-debugging.mdmarkdown8.7 KB
references/apple/upstream/app-intents-specialist/guide.mdmarkdown2.1 KB
references/apple/upstream/app-intents-specialist/references/app-enum.mdmarkdown4.9 KB
references/apple/upstream/app-intents-specialist/references/app-shortcut-phrases.mdmarkdown9.2 KB
references/apple/upstream/app-intents-specialist/references/configuration-intents.mdmarkdown5.2 KB
references/apple/upstream/app-intents-specialist/references/dependencies.mdmarkdown8.2 KB
references/apple/upstream/app-intents-specialist/references/donation.mdmarkdown3.5 KB
references/apple/upstream/app-intents-specialist/references/entities-and-queries.mdmarkdown10.5 KB
references/apple/upstream/app-intents-specialist/references/entity-property-queries.mdmarkdown9.4 KB
references/apple/upstream/app-intents-specialist/references/execution-model.mdmarkdown8.6 KB
references/apple/upstream/app-intents-specialist/references/factoring.mdmarkdown6.9 KB
references/apple/upstream/app-intents-specialist/references/localization.mdmarkdown6.4 KB
references/apple/upstream/app-intents-specialist/references/parameter-summaries.mdmarkdown8.1 KB
references/apple/upstream/app-intents-specialist/references/parameters.mdmarkdown8.5 KB
references/apple/upstream/app-intents-specialist/references/results-and-errors.mdmarkdown5.1 KB
references/apple/upstream/app-intents-specialist/references/url-representation.mdmarkdown9.5 KB
references/apple/upstream/app-intents-whats-new-27/guide.mdmarkdown1.9 KB
references/apple/upstream/app-intents-whats-new-27/references/convenience-properties.mdmarkdown6.6 KB
references/apple/upstream/app-intents-whats-new-27/references/cross-device-and-ownership.mdmarkdown7.8 KB
references/apple/upstream/app-intents-whats-new-27/references/entity-collection.mdmarkdown8.7 KB
references/apple/upstream/app-intents-whats-new-27/references/execution-modes.mdmarkdown10.6 KB
references/apple/upstream/app-intents-whats-new-27/references/interactive-snippets.mdmarkdown13.9 KB
references/apple/upstream/app-intents-whats-new-27/references/onscreen-entities.mdmarkdown6.5 KB
references/apple/upstream/app-intents-whats-new-27/references/relevance-and-context.mdmarkdown6.8 KB
references/apple/upstream/app-intents-whats-new-27/references/requestchoice.mdmarkdown5.4 KB
references/apple/upstream/app-intents-whats-new-27/references/schema-adoption.mdmarkdown14.9 KB
references/apple/upstream/app-intents-whats-new-27/references/spotlight-indexing.mdmarkdown7.1 KB
references/apple/upstream/app-intents-whats-new-27/references/system-shortcuts.mdmarkdown3.1 KB
references/apple/upstream/app-intents-whats-new-27/references/testing.mdmarkdown14.9 KB
references/apple/upstream/app-intents-whats-new-27/references/union-values.mdmarkdown10.0 KB
references/apple/upstream/app-intents-whats-new-27/references/visual-intelligence.mdmarkdown6.2 KB
references/apple/upstream/audit-xcode-security-settings/guide.mdmarkdown6.9 KB
references/apple/upstream/audit-xcode-security-settings/references/additional-settings.mdmarkdown1016 B
references/apple/upstream/audit-xcode-security-settings/references/adoption-strategy.mdmarkdown4.3 KB
references/apple/upstream/audit-xcode-security-settings/references/cpp-hardening.mdmarkdown3.5 KB
references/apple/upstream/audit-xcode-security-settings/references/decision-document.mdmarkdown3.0 KB
references/apple/upstream/audit-xcode-security-settings/references/enhanced-security.mdmarkdown8.2 KB
references/apple/upstream/audit-xcode-security-settings/references/hardware-memory-tagging.mdmarkdown3.8 KB
references/apple/upstream/audit-xcode-security-settings/references/pointer-authentication.mdmarkdown6.6 KB
references/apple/upstream/audit-xcode-security-settings/references/reading-build-settings.mdmarkdown5.7 KB
references/apple/upstream/audit-xcode-security-settings/references/readonly-platform-memory.mdmarkdown2.5 KB
references/apple/upstream/audit-xcode-security-settings/references/runtime-restrictions.mdmarkdown2.8 KB
references/apple/upstream/audit-xcode-security-settings/references/security-compiler-warnings.mdmarkdown3.2 KB
references/apple/upstream/audit-xcode-security-settings/references/security-settings-reference.mdmarkdown10.0 KB
references/apple/upstream/audit-xcode-security-settings/references/stack-zero-init.mdmarkdown1.9 KB
references/apple/upstream/audit-xcode-security-settings/references/typed-allocators.mdmarkdown3.2 KB
references/apple/upstream/audit-xcode-security-settings/references/universal-binaries-for-libraries.mdmarkdown5.2 KB
references/apple/upstream/audit-xcode-security-settings/scripts/filter_build_settings.pyexecutablescript2.4 KB
references/apple/upstream/building-document-based-swiftui-applications/guide.mdmarkdown1.1 KB
references/apple/upstream/building-document-based-swiftui-applications/references/creating-document-apps.mdmarkdown34.0 KB
references/apple/upstream/building-document-based-swiftui-applications/references/migrating-document-apps.mdmarkdown12.1 KB
references/apple/upstream/building-document-based-swiftui-applications/references/uniform-type-identifiers.mdmarkdown5.2 KB
references/apple/upstream/device-interaction/guide.mdmarkdown11.4 KB
references/apple/upstream/modernize-tests/guide.mdmarkdown9.5 KB
references/apple/upstream/swiftui-specialist/guide.mdmarkdown1.2 KB
references/apple/upstream/swiftui-specialist/references/animations.mdmarkdown2.7 KB
references/apple/upstream/swiftui-specialist/references/dataflow.mdmarkdown32.1 KB
references/apple/upstream/swiftui-specialist/references/environment.mdmarkdown39.1 KB
references/apple/upstream/swiftui-specialist/references/foreach.mdmarkdown21.8 KB
references/apple/upstream/swiftui-specialist/references/localization.mdmarkdown11.3 KB
references/apple/upstream/swiftui-specialist/references/modifiers.mdmarkdown4.4 KB
references/apple/upstream/swiftui-specialist/references/soft-deprecated-apis.mdmarkdown32.6 KB
references/apple/upstream/swiftui-specialist/references/soft-deprecation.mdmarkdown1.5 KB
references/apple/upstream/swiftui-specialist/references/structure.mdmarkdown11.4 KB
references/apple/upstream/swiftui-whats-new-27/guide.mdmarkdown1.2 KB
references/apple/upstream/swiftui-whats-new-27/references/async-image.mdmarkdown4.0 KB
references/apple/upstream/swiftui-whats-new-27/references/content-builder.mdmarkdown15.9 KB
references/apple/upstream/swiftui-whats-new-27/references/item-binding.mdmarkdown5.2 KB
references/apple/upstream/swiftui-whats-new-27/references/reorderable.mdmarkdown9.3 KB
references/apple/upstream/swiftui-whats-new-27/references/state-macro.mdmarkdown3.1 KB
references/apple/upstream/swiftui-whats-new-27/references/swipe-actions.mdmarkdown3.3 KB
references/apple/upstream/swiftui-whats-new-27/references/toolbar.mdmarkdown6.8 KB
references/apple/upstream/uikit-app-modernization/guide.mdmarkdown2.6 KB
references/apple/upstream/uikit-app-modernization/references/orientation-task.mdmarkdown4.1 KB
references/apple/upstream/uikit-app-modernization/references/safe-area-task.mdmarkdown6.4 KB
references/apple/upstream/uikit-app-modernization/references/scene-lifecycle-task.mdmarkdown10.2 KB
references/apple/upstream/uikit-app-modernization/references/uiscreen-task.mdmarkdown29.5 KB
references/architecture/architecture-planning.mdmarkdown1.8 KB
references/design/type-design.mdmarkdown1.3 KB
references/error-handling/silent-failures.mdmarkdown1.5 KB
references/gpui/guide.mdmarkdown2.1 KB
references/gpui/references/actions.mdmarkdown2.1 KB
references/gpui/references/async.mdmarkdown3.1 KB
references/gpui/references/component-test-rules.mdmarkdown582 B
references/gpui/references/context.mdmarkdown1.0 KB
references/gpui/references/element.mdmarkdown2.1 KB
references/gpui/references/entity.mdmarkdown2.4 KB
references/gpui/references/event.mdmarkdown2.3 KB
references/gpui/references/focus-handle.mdmarkdown2.3 KB
references/gpui/references/generate-component-documentation.mdmarkdown659 B
references/gpui/references/generate-component-story.mdmarkdown679 B
references/gpui/references/global.mdmarkdown1.7 KB
references/gpui/references/layout-and-style.mdmarkdown2.0 KB
references/gpui/references/new-component.mdmarkdown766 B
references/gpui/references/style-guide.mdmarkdown2.8 KB
references/gpui/references/test-examples.mdmarkdown936 B
references/gpui/references/test-reference.mdmarkdown3.9 KB
references/gpui/references/test.mdmarkdown920 B
references/languages/typescript-patterns.mdmarkdown3.6 KB
references/performance/perf-issue.mdmarkdown4.8 KB
references/performance/runtime-forensics.mdmarkdown4.0 KB
references/performance/trace-forensics.mdmarkdown4.5 KB
references/refactoring/clean-refactoring.mdmarkdown3.7 KB
references/web-development.mdmarkdown2.5 KB
references/winui/guide.mdmarkdown2.0 KB
references/winui/references/winui-code-review/guide.mdmarkdown2.5 KB
references/winui/references/winui-code-review/references/quality-rules.mdmarkdown10.6 KB
references/winui/references/winui-design/guide.mdmarkdown10.2 KB
references/winui/references/winui-design/references/brushes-and-icons.mdmarkdown12.1 KB
references/winui/references/winui-design/references/layout-review.mdmarkdown2.1 KB
references/winui/references/winui-design/references/theme-accessibility.mdmarkdown3.8 KB
references/winui/references/winui-dev-workflow/BuildAndRun.ps1script6.4 KB
references/winui/references/winui-dev-workflow/analyzer/Microsoft.WindowsAppSDK.Analyzers.dllbinary48.5 KB
references/winui/references/winui-dev-workflow/analyzer/Microsoft.WindowsAppSDK.Analyzers.targetsother547 B
references/winui/references/winui-dev-workflow/guide.mdmarkdown6.3 KB
references/winui/references/winui-packaging/guide.mdmarkdown2.9 KB
references/winui/references/winui-packaging/references/package-examples.mdmarkdown3.8 KB
references/winui/references/winui-packaging/references/sourcegen-patterns.mdmarkdown3.7 KB
references/winui/references/winui-setup/guide.mdmarkdown1.7 KB
references/winui/references/winui-setup/references/setup-examples.mdmarkdown2.1 KB
references/winui/references/winui-ui-testing/guide.mdmarkdown20.9 KB
references/winui/references/winui-wpf-migration/guide.mdmarkdown2.3 KB
references/winui/references/winui-wpf-migration/references/migration-examples.mdmarkdown3.5 KB
references/workflows/feature.mdmarkdown2.4 KB

references/winui/references/winui-dev-workflow/BuildAndRun.ps1

View on GitHub
<#
.SYNOPSIS
Runs a WinUI 3 project with WinApp CLI 0.6+ and the bundled analyzer.

.DESCRIPTION
WinApp CLI owns input resolution, restore, build, architecture selection,
output discovery, runtime setup, package registration, and launch. This thin
wrapper forwards its arguments unchanged, injects
Microsoft.WindowsAppSDK.Analyzers through MSBuild, and enables
--debug-output by default for attached runs.

Use WinApp's `--args "<arguments>"` form for application arguments; PowerShell
consumes an unquoted `--` delimiter when it invokes another PowerShell script.

.EXAMPLE
.\BuildAndRun.ps1
.\BuildAndRun.ps1 MyApp.csproj -c Release --arch arm64
.\BuildAndRun.ps1 . --detach --json
.\BuildAndRun.ps1 . --symbols
#>

$ErrorActionPreference = 'Stop'
$minimumWinAppVersion = [version]'0.6.0'
$arguments = @($args)

$winapp = Get-Command winapp -ErrorAction SilentlyContinue
if (-not $winapp) {
    Write-Error "WinApp CLI 0.6 or later is required. Follow references/winui-setup/guide.md, then retry."
    exit 1
}

$installedWinAppVersion = $null
foreach ($line in @(& winapp --version 2>$null)) {
    $match = [regex]::Match(
        [string]$line,
        '^\s*v?(?<version>\d+\.\d+\.\d+)(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?\s*$'
    )
    if ($match.Success) {
        $installedWinAppVersion = [version]$match.Groups['version'].Value
    }
}
if (-not $installedWinAppVersion) {
    Write-Error "Could not determine the WinApp CLI version. Follow references/winui-setup/guide.md, then retry."
    exit 1
}
if ($installedWinAppVersion -lt $minimumWinAppVersion) {
    Write-Error "WinApp CLI $minimumWinAppVersion or later is required; found $installedWinAppVersion. Follow references/winui-setup/guide.md to upgrade."
    exit 1
}

$analyzerDir = Join-Path $PSScriptRoot 'analyzer'
$analyzerDll = Join-Path $analyzerDir 'Microsoft.WindowsAppSDK.Analyzers.dll'
$analyzerTargets = Join-Path $analyzerDir 'Microsoft.WindowsAppSDK.Analyzers.targets'
if (-not (Test-Path -LiteralPath $analyzerDll -PathType Leaf) -or
    -not (Test-Path -LiteralPath $analyzerTargets -PathType Leaf)) {
    Write-Error "The bundled WinUI analyzer payload is incomplete. Restore the analyzer/ folder next to this script."
    exit 1
}

$valueOptions = @(
    '--manifest', '--output-appx-directory', '--args', '--exe', '--executable',
    '-c', '--configuration', '--arch', '-r', '--runtime', '-f', '--framework',
    '-p', '--property', '--project'
)
$debugSpecified = $false
$jsonOutput = $false
$noLaunch = $false
$detach = $false

function Resolve-BooleanOption {
    param(
        [System.Text.RegularExpressions.Match]$Match,
        [ref]$Index,
        [object[]]$Tokens
    )

    if ($Match.Groups['value'].Success) {
        return $Match.Groups['value'].Value -ieq 'true'
    }
    if ($Index.Value + 1 -lt $Tokens.Count -and
        [string]$Tokens[$Index.Value + 1] -match '^(?i:true|false)$') {
        $Index.Value++
        return [string]$Tokens[$Index.Value] -ieq 'true'
    }
    return $true
}

for ($i = 0; $i -lt $arguments.Count; $i++) {
    $token = [string]$arguments[$i]

    if ($token -eq '--') {
        Write-Error 'PowerShell consumes an unquoted -- delimiter for script calls. Pass application arguments with --args "<arguments>".'
        exit 1
    }

    if ($valueOptions -icontains $token) {
        if ($i + 1 -lt $arguments.Count) {
            $value = [string]$arguments[++$i]
            if ($token -in '-p', '--property' -and
                $value -match '(?i)^CustomAfterDirectoryBuildProps\s*=') {
                Write-Error "CustomAfterDirectoryBuildProps is reserved for loading the bundled WinUI analyzer."
                exit 1
            }
        }
        continue
    }

    if ($token -match '(?i)^(?:-p|--property)[:=](?<value>.*)$') {
        if ($Matches['value'] -match '(?i)^CustomAfterDirectoryBuildProps\s*=') {
            Write-Error "CustomAfterDirectoryBuildProps is reserved for loading the bundled WinUI analyzer."
            exit 1
        }
        continue
    }

    $booleanMatch = [regex]::Match($token, '(?i)^--debug-output(?:=(?<value>true|false))?$')
    if ($booleanMatch.Success) {
        $debugSpecified = $true
        [void](Resolve-BooleanOption -Match $booleanMatch -Index ([ref]$i) -Tokens $arguments)
        continue
    }
    $booleanMatch = [regex]::Match($token, '(?i)^--json(?:=(?<value>true|false))?$')
    if ($booleanMatch.Success) {
        $jsonOutput = Resolve-BooleanOption -Match $booleanMatch -Index ([ref]$i) -Tokens $arguments
        continue
    }
    $booleanMatch = [regex]::Match($token, '(?i)^--no-launch(?:=(?<value>true|false))?$')
    if ($booleanMatch.Success) {
        $noLaunch = Resolve-BooleanOption -Match $booleanMatch -Index ([ref]$i) -Tokens $arguments
        continue
    }
    $booleanMatch = [regex]::Match($token, '(?i)^--detach(?:=(?<value>true|false))?$')
    if ($booleanMatch.Success) {
        $detach = Resolve-BooleanOption -Match $booleanMatch -Index ([ref]$i) -Tokens $arguments
    }
}

$tempBuildProps = Join-Path ([System.IO.Path]::GetTempPath()) "winui-build-$([guid]::NewGuid().ToString('N')).props"
$escapedAnalyzerDll = [System.Security.SecurityElement]::Escape((Resolve-Path -LiteralPath $analyzerDll).Path)
$escapedAnalyzerTargets = [System.Security.SecurityElement]::Escape((Resolve-Path -LiteralPath $analyzerTargets).Path)
$propsContent = @"
<Project>
  <ItemGroup>
    <Analyzer Include="$escapedAnalyzerDll" />
  </ItemGroup>
  <Import Project="$escapedAnalyzerTargets" />
</Project>
"@

$runArgs = $arguments
if (-not $debugSpecified -and -not $jsonOutput -and -not $noLaunch -and -not $detach) {
    $runArgs += '--debug-output'
}

$runExitCode = 1
$previousCustomAfterProps = $env:CustomAfterDirectoryBuildProps
try {
    Set-Content -LiteralPath $tempBuildProps -Value $propsContent -Encoding utf8
    # Microsoft.Common.props accepts a semicolon-delimited import list; the .NET SDK
    # composes its own UseArtifactsOutputPath.props hook the same way.
    $env:CustomAfterDirectoryBuildProps = if ($previousCustomAfterProps) {
        "$previousCustomAfterProps;$tempBuildProps"
    } else {
        $tempBuildProps
    }
    & winapp run @runArgs
    $runExitCode = $LASTEXITCODE
}
finally {
    if ($null -eq $previousCustomAfterProps) {
        Remove-Item Env:\CustomAfterDirectoryBuildProps -ErrorAction SilentlyContinue
    } else {
        $env:CustomAfterDirectoryBuildProps = $previousCustomAfterProps
    }
    Remove-Item -LiteralPath $tempBuildProps -Force -ErrorAction SilentlyContinue
}

exit $runExitCode
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 318kUpdated Claude CodeCodexUnverifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 318kUpdated Claude CodeCodexUnverifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 318kUpdated Claude CodeCodexUnverifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 196kUpdated Claude CodeCodexVerifiedInstall