Agent skill

Build Dotnet Agent

by newrelic in newrelic/newrelic-dotnet-agent

Build the New Relic .NET agent locally and validate that code changes compile.

Apache-2.0Auto-check passedDevelopment

Install Build Dotnet Agent

skills CLI
$ npx skills add newrelic/newrelic-dotnet-agent --skill build-dotnet-agent -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install newrelic/newrelic-dotnet-agent build-dotnet-agent --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/newrelic/newrelic-dotnet-agent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/build-dotnet-agent .claude/skills/build-dotnet-agent && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
build-dotnet-agent
GitHub stars
117
Token cost
~871 tokens
SKILL.md length
293 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
Apache-2.0

At a glance

Build the New Relic .NET agent locally and validate that code changes compile.

  • Tasks that involve Performance optimization
  • SKILL.md covers Rules and Agent home directories
  • Calls dotnet

What it does

Build Dotnet Agent is an agent skill from newrelic/newrelic-dotnet-agent. Build the New Relic .NET agent locally and validate that code changes compile. Use this whenever you are about to build the agent, need to confirm your edits compile, need to refresh the agent home directories (newrelichome) before running tests, or find yourself reaching for dotnet build / msbuild on any project in this repo. Always build the full solution from the CLI in Debug -- never a single project. Covers that command and the traps that waste time (building individual projects, Release config, building the…

Its SKILL.md is about 870 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Performance optimization. It works with .NET and New Relic. The repository describes itself as: The New Relic .NET language agent. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Performance optimization

Example prompts

  • “/build-dotnet-agent”

Requirements

  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit aca7658. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Build Dotnet Agent loads about 871 tokens when it runs. Until then it costs about 151 tokens; SKILL.md has 293 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~151
When it runs · the whole SKILL.md, loaded when a task matches
~871

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from newrelic/newrelic-dotnet-agent at commit aca7658, republished under its Apache-2.0 licence (© newrelic). 293 words, ~871 tokens.

Download SKILL.mdSave it as .claude/skills/build-dotnet-agent/SKILL.md (or your agent's skills folder).
name
build-dotnet-agent
description
Build the New Relic .NET agent locally and validate that code changes compile. Use this whenever you are about to build the agent, need to confirm your edits compile, need to refresh the agent home directories (newrelichome_*) before running tests, or find yourself reaching for `dotnet build` / `msbuild` on any project in this repo. Always build the full solution from the CLI in Debug -- never a single project. Covers that command and the traps that waste time (building individual projects, Release config, building the profiler by hand, dragging preview SDKs into build tools).

Building the .NET agent

To validate edits or refresh agent home dirs, build the full solution yourself from the repo root:

bash
dotnet build FullAgent.sln

Debug is default -- never pass -c Release. It's slow; run in background or tee to a file and read the tail. The user builds in VS; that's their path, not yours -- you use the CLI.

Rules

  • Never build a single .csproj. Core.csproj and its dependents have a post-build step (ILRepack + AssemblyModifier.exe) whose ordering only the solution provides. Building one project alone yields AssemblyModifier.exe not found, exit code 3, or $(SolutionDir)/*Undefined* errors.
  • Debug, never Release (Release is for CI/releases).
  • IntegrationTests.sln / UnboundedIntegrationTests.sln build with VS MSBuild, not the dotnet build above; the dotnet SDK cannot build their legacy ASP.NET FW web apps. Invocation and required flags: tests/CLAUDE.md.
  • Core.UnitTest from the CLI needs SolutionDir (VS sets it, dotnet doesn't), trailing backslash required. Both forms below pass the same value (<repo-root>\):
    bash
    # bash (Git Bash)
    SLN="$(cygpath -w "$PWD")\\"
    dotnet build tests/Agent/UnitTests/Core.UnitTest/Core.UnitTest.csproj -f net10.0 -p:SolutionDir="$SLN"
    powershell
    # PowerShell
    $sln = "$((Resolve-Path .).Path)\"
    dotnet build tests/Agent/UnitTests/Core.UnitTest/Core.UnitTest.csproj -f net10.0 -p:SolutionDir="$sln"
  • NewRelic.Agent.Extensions.Tests: dotnet test on the csproj silently no-ops via VSTestTask -- test the built DLL instead (path in root CLAUDE.md).
  • Profiler (Profiler.sln, src/Agent/NewRelic/Profiler/, only when changing the profiler): build with build.ps1, never raw MSBuild; Debug; Linux build needs Docker Desktop.
  • Build tools stay on latest LTS (net10.0): build/* tools (ArtifactBuilder, Dotty, etc.) and AssemblyModifier. When evaluating a preview .NET, retarget agent core + tests, not the build tools.

Agent home directories

FullAgent.sln writes these under src/Agent/; all integration/unbounded/container tests read from them, so a stale home dir = "my change isn't taking effect." Rebuild after changing agent/wrapper code. If new instrumentation isn't applied, confirm files exist under <agent-home>/extensions/ (and extensions/netcore/ for .NET Core wrappers).

FrameworkOSArchDirectory
.NET FWWinx64newrelichome_x64
.NET FWWinx86newrelichome_x86
.NET CoreWinx64newrelichome_x64_coreclr
.NET CoreWinx86newrelichome_x86_coreclr
.NET CoreLinuxx64newrelichome_x64_coreclr_linux
.NET CoreLinuxarm64newrelichome_arm64_coreclr_linux

© newrelic, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/build-dotnet-agent of newrelic/newrelic-dotnet-agent.

Open the folder on GitHubat commit aca7658

Compare with similar skills

Build Dotnet Agent next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Build Dotnet Agent compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Build Dotnet Agent this skillnewrelic/newrelic-dotnet-agent117—~871Automated safety check: PassApache-2.0
Analyzing .NET Performancedotnet/skills5.6k3 repos~3.1kAutomated safety check: PassMIT
MAUI PR Performance Analysisdotnet/maui23k—~2.4kAutomated safety check: PassMIT
.NET Trimming and Native AOTAaronontheweb/dotnet-skills1.2k—~2.9kAutomated safety check: PassMIT
Dotnet Debuggingnovotnyllc/dotnet-artisan233—~2.1kAutomated safety check: PassMIT
Asynkron Profilermanagedcode/dotnet-skills486—~1.7kAutomated safety check: PassMIT

Similar skills

  • Official

    Scans C# and .NET code for about 50 performance anti-patterns and reports prioritized findings with concrete fixes, at a scan depth you choose.

    5.6k GitHub starsUsed in 3 repos~3.1k tokens
    DevelopmentAuto-check passed
  • Official

    Interprets pinned managed benchmark evidence for a dotnet/maui pull request and writes a narrative for the performance review workflow, without running or publishing anything.

    23k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • .NET Trimming and Native AOT

    Aaronontheweb/dotnet-skills

    Guides making .NET libraries trimming-safe and Native-AOT compatible: the MSBuild properties, trimming attributes, warning codes and a playbook of safe patterns.

    1.2k GitHub stars~2.9k tokensUpdated 22 days ago
    DevelopmentAuto-check passed
  • Dotnet Debugging

    novotnyllc/dotnet-artisan

    Debugs Windows and Linux/macOS applications (native, .NET/CLR, mixed-mode) with WinDbg MCP (crash dumps, !analyze, !syncblk, !dlk, !runaway, !dumpheap, !gcroot, BSOD), dotnet-dump, lldb with SOS…

    233 GitHub stars~2.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Asynkron Profiler

    managedcode/dotnet-skills

    Use the open-source free Asynkron.Profiler dotnet tool for CLI-first CPU, allocation, exception, contention, and heap profiling of .NET commands or existing trace artifacts.

    486 GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Pyroscope

    grafana/skills

    Official

    Continuously profile applications with Grafana Pyroscope and read the result as flame graphs.

    281 GitHub stars~1.2k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

More from newrelic/newrelic-dotnet-agent

  • Analyze Dotnet Agent Logs

    newrelic/newrelic-dotnet-agent

    Parse and diagnose New Relic .NET agent logs (newrelicagent.log) and profiler logs (NewRelic.Profiler.<pid.log) from a support ticket.

    117 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Angler Dotnet Release

    newrelic/newrelic-dotnet-agent

    Open an Angler PR that adds the latest .NET agent release to metricnames.txt.

    117 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Run Integration Tests

    newrelic/newrelic-dotnet-agent

    Run the New Relic .NET agent integration tests locally. An agent skill from newrelic/newrelic-dotnet-agent.

    117 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Update Dotty Docs

    newrelic/newrelic-dotnet-agent

    A skill your agent uses when the user mentions a Dotty PR, dotty (package/dependency) updates, or asks to update the .NET agent compatibility docs / net-agent-compatibility-requirements after tested…

    117 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Dotnet Unit Test Coverage

    newrelic/newrelic-dotnet-agent

    Mandatory unit-test and code-coverage rules for the .NET agent.

    117 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Triage Integration Test Failures

    newrelic/newrelic-dotnet-agent

    A skill your agent uses when a CI integration, unbounded, or container test job fails intermittently, passes on a rerun, fails identically across every matrix variant, or shows an infra-shaped error…

    117 GitHub stars~2.5k tokensUpdated today
    Auto-check passed

Works with

Questions about Build Dotnet Agent

What does Build Dotnet Agent do?

Build the New Relic .NET agent locally and validate that code changes compile. Build Dotnet Agent is an agent skill from newrelic/newrelic-dotnet-agent.NET agent locally and validate that code changes compile.

When should I use Build Dotnet Agent?

Build Dotnet Agent fits situations like: tasks that involve Performance optimization.

How do I install Build Dotnet Agent in Claude Code?

Run `npx skills add newrelic/newrelic-dotnet-agent --skill build-dotnet-agent -a claude-code`. Or copy the skill folder (.claude/skills/build-dotnet-agent in newrelic/newrelic-dotnet-agent) into .claude/skills/build-dotnet-agent in your project. Claude Code loads it when a task matches its description.

How do I install Build Dotnet Agent in Codex?

Run `npx skills add newrelic/newrelic-dotnet-agent --skill build-dotnet-agent -a codex`. Or copy the skill folder (.claude/skills/build-dotnet-agent in newrelic/newrelic-dotnet-agent) into .agents/skills/build-dotnet-agent in your project. Codex loads it when a task matches its description.

Can I use Build Dotnet Agent in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add newrelic/newrelic-dotnet-agent --skill build-dotnet-agent -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/build-dotnet-agent, .gemini/skills/build-dotnet-agent, .github/skills/build-dotnet-agent and .opencode/skills/build-dotnet-agent in your project.

What does Build Dotnet Agent need to run?

Going by SKILL.md and its folder, Build Dotnet Agent needs the command-line tools its instructions call (dotnet). Our summary lists: Docker.

Does Build Dotnet Agent access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Build Dotnet Agent safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Build Dotnet Agent use?

Build Dotnet Agent is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Build Dotnet Agent use?

About 871 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Build Dotnet Agent?

Skills that share tags, products or a category with Build Dotnet Agent: Analyzing .NET Performance (dotnet/skills, 5.6k stars), MAUI PR Performance Analysis (dotnet/maui, 23k stars), .NET Trimming and Native AOT (Aaronontheweb/dotnet-skills, 1.2k stars) and Dotnet Debugging (novotnyllc/dotnet-artisan, 233 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Build Dotnet Agent?

newrelic (a GitHub organization) maintains it in newrelic/newrelic-dotnet-agent, which has 117 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.

Source: newrelic/newrelic-dotnet-agent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.