build-private-package
Skill6 starsChanged 6 months agoMITView on GitHub
Build a private NuGet package for the Application Insights Profiler ASP.NET Core SDK. Use this skill when asked to build, pack, or create a private or test NuGet package for the profiler. Handles restore, build, uploader packing, and NuGet packaging.
In this repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- bump-submodule-refSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Ask the user which package to build: if not specified:
- Very specific: line 27
Ask the user which configuration to use if not specified.
- Distinctive: line 28
Run the appropriate build script (see below).
- Very specific: line 29
Check output for Package succeeded :-) to confirm success.
- Distinctive: line 34
Run the build script:
- Distinctive: line 44
Run the build script (requires PowerShell 7+):
- Very specific: line 68
If PackUploader.cmd fails (Classic), check that the uploader projects build successfully.
- Very specific: line 69
If NuGet pack fails with missing properties, verify NuspecProperties in the csproj include all variables referenced in the .nuspec files.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build Private Application Insights Profiler NuGet Package
Overview
This skill builds private NuGet packages for the Application Insights Profiler SDK. Two package flavors are available:
| Flavor | Package(s) | Script |
| Classic (ASP.NET Core / App Insights SDK) | Microsoft.ApplicationInsights.Profiler.Core, Microsoft.ApplicationInsights.Profiler.AspNetCore | src/ServiceProfiler.EventPipe/tools/PackNugetPackage.cmd |
| OTel (OpenTelemetry / Azure Monitor distro) | Azure.Monitor.OpenTelemetry.Profiler | src/ServiceProfiler.EventPipe.Otel/tools/PackSolution.ps1 |
Steps
- Ask the user which package to build if not specified:
- Classic (Application Insights Profiler ASP.NET Core)
- OTel (Azure Monitor OpenTelemetry Profiler)
- Ask the user which configuration to use if not specified. Default to
Debug. - Run the appropriate build script (see below).
- Check output for
Package succeeded :-)to confirm success. - List the generated
.nupkgfiles by runningGet-ChildItemon the output directories. Report the actual full paths from the listing. Do NOT infer filenames from build log timestamps — OTel and Classic builds may have different timestamps even when built together.
Classic Package
Run the build script:
cmd /c "C:\AIR\fork-otel-profiler\src\ServiceProfiler.EventPipe\tools\PackNugetPackage.cmd <Config>"- First arg (required):
DebugorRelease - Second arg (optional): package type suffix, defaults to
private - Third arg (optional): rebuild,
TRUE(default) orFALSE
OTel Package
Run the build script (requires PowerShell 7+):
& "C:\AIR\fork-otel-profiler\src\ServiceProfiler.EventPipe.Otel\tools\PackSolution.ps1" -Configuration <Config>-Configuration:DebugorRelease(default:Release)-PackageType: package type suffix (default:private)-Rebuild: switch to force a rebuild-VersionSuffix: optional custom version suffix
Output Locations
Classic
- With symbols:
src/ServiceProfiler.EventPipe/Out/Nuget/ - Without symbols:
src/ServiceProfiler.EventPipe/Out/NugetNoSymbols/
OTel
- NuGet packages:
Out/NuGets/
Version Format
99.YYYY.MMDD.HHmm-<packageType>YYMMDDHHMM
Troubleshooting
- If
PackUploader.cmdfails (Classic), check that the uploader projects build successfully. - If NuGet pack fails with missing properties, verify
NuspecPropertiesin the csproj include all variables referenced in the.nuspecfiles. - OTel pack requires PowerShell 7+. Run
pwsh --versionto verify.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

