containerize-aspnet-framework
Containerize an ASP.NET .NET Framework project by creating Dockerfile and .dockerfile files customized for the project.
What this skill does
# ASP.NET .NET Framework Containerization Prompt
Containerize the ASP.NET (.NET Framework) project specified in the containerization settings below, focusing **exclusively** on changes required for the application to run in a Windows Docker container. Containerization should consider all settings specified here.
**REMEMBER:** This is a .NET Framework application, not .NET Core. The containerization process will be different from that of a .NET Core application.
## Containerization Settings
This section of the prompt contains the specific settings and configurations required for containerizing the ASP.NET (.NET Framework) application. Prior to running this prompt, ensure that the settings are filled out with the necessary information. Note that in many cases, only the first few settings are required. Later settings can be left as defaults if they do not apply to the project being containerized.
Any settings that are not specified will be set to default values. The default values are provided in `[square brackets]`.
### Basic Project Information
1. Project to containerize:
- `[ProjectName (provide path to .csproj file)]`
2. Windows Server SKU to use:
- `[Windows Server Core (Default) or Windows Server Full]`
3. Windows Server version to use:
- `[2022, 2019, or 2016 (Default 2022)]`
4. Custom base image for the build stage of the Docker image ("None" to use standard Microsoft base image):
- `[Specify base image to use for build stage (Default None)]`
5. Custom base image for the run stage of the Docker image ("None" to use standard Microsoft base image):
- `[Specify base image to use for run stage (Default None)]`
### Container Configuration
1. Ports that must be exposed in the container image:
- Primary HTTP port: `[e.g., 80]`
- Additional ports: `[List any additional ports, or "None"]`
2. User account the container should run as:
- `[User account, or default to "ContainerUser"]`
3. IIS settings that must be configured in the container image:
- `[List any specific IIS settings, or "None"]`
### Build configuration
1. Custom build steps that must be performed before building the container image:
- `[List any specific build steps, or "None"]`
2. Custom build steps that must be performed after building the container image:
- `[List any specific build steps, or "None"]`
### Dependencies
1. .NET assemblies that should be registered in the GAC in the container image:
- `[Assembly name and version, or "None"]`
2. MSIs that must be copied to the container image and installed:
- `[MSI names and versions, or "None"]`
3. COM components that must be registered in the container image:
- `[COM component names, or "None"]`
### System Configuration
1. Registry keys and values that must be added to the container image:
- `[Registry paths and values, or "None"]`
2. Environment variables that must be set in the container image:
- `[Variable names and values, or "Use defaults"]`
3. Windows Server roles and features that must be installed in the container image:
- `[Role/feature names, or "None"]`
### File System
1. Files/directories that need to be copied to the container image:
- `[Paths relative to project root, or "None"]`
- Target location in container: `[Container paths, or "Not applicable"]`
2. Files/directories to exclude from containerization:
- `[Paths to exclude, or "None"]`
### .dockerignore Configuration
1. Patterns to include in the `.dockerignore` file (.dockerignore will already have common defaults; these are additional patterns):
- Additional patterns: `[List any additional patterns, or "None"]`
### Health Check Configuration
1. Health check endpoint:
- `[Health check URL path, or "None"]`
2. Health check interval and timeout:
- `[Interval and timeout values, or "Use defaults"]`
### Additional Instructions
1. Other instructions that must be followed to containerize the project:
- `[Specific requirements, or "None"]`
2. Known issues to address:
- `[Describe any known issues, or "None"]`
## Scope
- ✅ App configuration modification to ensure config builders are used to read app settings and connection strings from the environment variables
- ✅ Dockerfile creation and configuration for an ASP.NET application
- ✅ Specifying multiple stages in the Dockerfile to build/publish the application and copy the output to the final image
- ✅ Configuration of Windows container platform compatibility (Windows Server Core or Full)
- ✅ Proper handling of dependencies (GAC assemblies, MSIs, COM components)
- ❌ No infrastructure setup (assumed to be handled separately)
- ❌ No code changes beyond those required for containerization
## Execution Process
1. Review the containerization settings above to understand the containerization requirements
2. Create a `progress.md` file to track changes with check marks
3. Determine the .NET Framework version from the project's .csproj file by checking the `TargetFrameworkVersion` element
4. Select the appropriate Windows Server container image based on:
- The .NET Framework version detected from the project
- The Windows Server SKU specified in containerization settings (Core or Full)
- The Windows Server version specified in containerization settings (2016, 2019, or 2022)
- Windows Server Core tags can be found at: https://github.com/microsoft/dotnet-framework-docker/blob/main/README.aspnet.md#full-tag-listing
5. Ensure that required NuGet packages are installed. **DO NOT** install these if they are missing. If they are not installed, the user must install them manually. If they are not installed, pause executing this prompt and ask the user to install them using the Visual Studio NuGet Package Manager or Visual Studio package manager console. The following packages are required:
- `Microsoft.Configuration.ConfigurationBuilders.Environment`
6. Modify the `web.config` file to add configuration builders section and settings to read app settings and connection strings from environment variables:
- Add ConfigBuilders section in configSections
- Add configBuilders section in the root
- Configure EnvironmentConfigBuilder for both appSettings and connectionStrings
- Example pattern:
```xml
<configSections>
<section name="configBuilders" type="System.Configuration.ConfigurationBuildersSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" restartOnExternalChanges="false" requirePermission="false" />
</configSections>
<configBuilders>
<builders>
<add name="Environment" type="Microsoft.Configuration.ConfigurationBuilders.EnvironmentConfigBuilder, Microsoft.Configuration.ConfigurationBuilders.Environment" />
</builders>
</configBuilders>
<appSettings configBuilders="Environment">
<!-- existing app settings -->
</appSettings>
<connectionStrings configBuilders="Environment">
<!-- existing connection strings -->
</connectionStrings>
```
7. Create a `LogMonitorConfig.json` file in the folder where the Dockerfile will be created by copying the reference `LogMonitorConfig.json` file at the end of this prompt. The file's contents **MUST NOT** not be modified and should match the reference content exactly unless instructions in containerization settings specify otherwise.
- In particular, make sure the level of issues to be logged is not changed as using `Information` level for EventLog sources will cause unnecessary noise.
8. Create a Dockerfile in the root of the project directory to containerize the application
- The Dockerfile should use multiple stages:
- Build stage: Use a Windows Server Core image to build the application
- The build stage MUST use a `mcr.microsoft.com/dotnet/framework/sdk` base image unless a custom base image is specified in the settings file
- Copy sln, csproj, and packages.config files first
- Copy NuGet.config if one existsRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.