From 09631e67c16283545a8b9f5137f6631e3c99ed2b Mon Sep 17 00:00:00 2001 From: Rich Lander Date: Thu, 11 Jun 2026 22:04:06 -0700 Subject: [PATCH 1/2] Remove dotnet-install skill Update the dotnet-inspect bootstrap guidance to match dotnet-inspect 0.10.5 while keeping the marketplace skill intentionally short and deferring to the embedded tool skill. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- skills/dotnet-inspect/SKILL.md | 28 ++++---- skills/dotnet-install/SKILL.md | 109 -------------------------------- 4 files changed, 17 insertions(+), 124 deletions(-) delete mode 100644 skills/dotnet-install/SKILL.md diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 765f1e7..2644937 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -8,7 +8,7 @@ "name": "dotnet-skills", "source": "./", "description": ".NET skills for coding assistants", - "version": "0.9.6" + "version": "0.10.5" } ] } diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index f9e8ed2..0d08e24 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "dotnet-skills", "description": ".NET skills for coding assistants", - "version": "0.9.6", + "version": "0.10.5", "author": { "name": "Richard Lander" }, diff --git a/skills/dotnet-inspect/SKILL.md b/skills/dotnet-inspect/SKILL.md index 1870cce..8b348a8 100644 --- a/skills/dotnet-inspect/SKILL.md +++ b/skills/dotnet-inspect/SKILL.md @@ -1,6 +1,6 @@ --- name: dotnet-inspect -version: 0.9.6 +version: 0.10.5 description: Find evidence instead of guessing for .NET packages, platform libraries, local assemblies, APIs, dependencies, SourceLink/symbol provenance, and version-to-version API changes. --- @@ -14,45 +14,46 @@ Invoke with `dnx`: dnx dotnet-inspect -y -- ``` -For the authoritative workflow guide for the installed tool version, run: +This marketplace skill is intentionally only a bootstrapper. For the authoritative workflow guide for the installed tool version, run: ```bash dnx dotnet-inspect -y -- skill ``` -Prefer that embedded skill output over this marketplace bootstrap file when commands or section names differ. It is versioned with the tool and prevents stale skill guidance after breaking CLI changes. - -Default output is Markdown. Use `--oneline` for compact tabular output like `docker images`, and `--json` for structured automation. For output, query, and limiter details such as `-D`, bare `-S`, `-S "Async*"`, `-n`, `--tail`, and `--rows`, run the embedded guide. +Prefer that embedded skill output over this file when commands, output modes, section names, or workflow guidance differ. It is versioned with the tool and prevents stale marketplace guidance after CLI changes. ## Fast starts | Goal | Command | | ---- | ------- | -| Find where a type lives | `find Pattern --oneline` | +| Find where a type lives | `find Pattern` | | Inspect APIs | `type Type --package Foo`, then `member Type --package Foo` | | Compare versions | `diff --package Foo@old..new --breaking` | | Inspect package/library signals | `library Foo -S Signals` or `package Foo -S Signals` | -| Resolve SourceLink URLs | `source Type --package Foo --oneline` | +| Locate source or implementation | `source Type --package Foo` or `member Type Member:1 -S "Decompiled Source"` | | Explore relationships | `depends Type`, `extensions Type`, `implements Interface` | ## Common workflow -Start broad, then carry resolved context forward: +Start with the embedded guide, then carry resolved context forward: ```bash -dnx dotnet-inspect -y -- find JsonSerializer --oneline +dnx dotnet-inspect -y -- skill +dnx dotnet-inspect -y -- find JsonSerializer dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json -dnx dotnet-inspect -y -- source JsonSerializer --package System.Text.Json --oneline +dnx dotnet-inspect -y -- source JsonSerializer --package System.Text.Json ``` -Bare names use the router: platform-looking names are tried as installed platform libraries first, then fall back to NuGet packages if platform resolution fails. Use explicit `--platform `, `--package Foo[@version]`, or `--library` when the source matters. +After `find`, reuse the package or library it reports in follow-up commands. Use explicit `--platform `, `--package Foo[@version]`, or `--library` when the source matters. ## Output control -Discover sections with `-D`, use bare `-S` for a curated high-density view, and select named sections with `-S Section`. Project table columns with `--columns`, fields with `--fields`, and count rows with `--count` when exactly one section is selected. +Default output is Markdown. Use `--table` for compact human scanning, `--tsv` for stable field splitting, `--jsonl` for one JSON object per table row, `--json` for structured object graphs, and `--mermaid` for graph-shaped output such as `depends`. + +Discover sections and columns with `-D`; select sections with `-S Section`, wildcards such as `-S "Async*"`, or categories such as `-S @All`. Project table columns with `--columns`, fields with `--fields`, and count rows with `--count` when one table section is selected. Use `-n`, `--tail`, and `--rows` instead of shell pipes when limiting output. ```bash -dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json -D +dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json -D --tsv dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json -S Methods --columns "Name;Signature;Obsolete" dnx dotnet-inspect -y -- library System.Text.Json -S "Async*" --count ``` @@ -64,4 +65,5 @@ dnx dotnet-inspect -y -- library System.Text.Json -S "Async*" --count - `type` uses `-t` for type filters; `member` uses `-m` for member filters. - Dotted member syntax works: `-m JsonSerializer.Deserialize`. - Diff ranges use `..`: `--package Foo@1.0.0..2.0.0`. +- Unpinned packages use the latest stable by default; add `--preview` when prerelease APIs matter. - Use `--all` for non-public, hidden, and extra members; obsolete members are already shown by default. diff --git a/skills/dotnet-install/SKILL.md b/skills/dotnet-install/SKILL.md deleted file mode 100644 index a165193..0000000 --- a/skills/dotnet-install/SKILL.md +++ /dev/null @@ -1,109 +0,0 @@ ---- -name: dotnet-install -description: > - Build, install, list, and remove .NET tools using dotnet-install. ---- - -# dotnet-install - -Install .NET executables to PATH — like `cargo install` -and `go install`. Build from source, install from NuGet, -or clone from GitHub. - -## Install sources - -Each source requires an explicit flag. With no arguments, -`dotnet-install` in a directory with a project builds and -installs it (like `dotnet publish`). With nothing to act on, -it prints help. - -```bash -# Local project (default — works like dotnet publish) -dotnet-install # current directory -dotnet-install src/my-tool # positional path -dotnet-install --project src/my-tool # explicit (like dotnet run --project) -dotnet-install app.cs # file-based app - -# NuGet package (no SDK required) -dotnet-install --package dotnetsay -dotnet-install --package dotnet-counters@9.0.0 # pinned version - -# GitHub repository -dotnet-install --github owner/repo # tracks default branch, updatable -dotnet-install --github owner/repo --branch main # tracks branch, updatable -dotnet-install --github owner/repo --tag v2.0 # pinned, no updates -dotnet-install --github owner/repo --rev abc123 # pinned, no updates -dotnet-install --github owner/repo@v2.0 # shorthand, pinned -dotnet-install --github owner/repo --ssh # clone via SSH - -# Any git URL -dotnet-install --git https://example.com/repo.git -dotnet-install --git https://example.com/repo.git --tag v1.0 -``` - -`--path` is an alias for `--project`. When combined with -`--github` or `--git`, `--project` specifies a sub-path -within the cloned repository. - -## Git ref options - -| Flag | Pinned | Example | -|--------------|--------|---------------------------------| -| (none) | no | default branch, tracks upstream | -| `--branch` | no | named branch, tracks upstream | -| `--tag` | yes | fixed tag, no updates | -| `--rev` | yes | fixed commit SHA, no updates | -| `@ref` | yes | shorthand in `--github` spec | - -Pinned installs are skipped by `dotnet-install update`. -To change versions, uninstall and reinstall. - -## Subcommands - -```bash -dotnet-install ls # list installed tools -dotnet-install rm # remove a tool -dotnet-install update [tool] # update one or all tools -dotnet-install search # search NuGet -dotnet-install info # show tool details -dotnet-install outdated # check for newer versions -dotnet-install run [args] # run without installing -dotnet-install doctor # diagnose PATH and config -dotnet-install env # print environment info -dotnet-install completion # shell completion setup -``` - -## Install directory - -Tools are installed to `~/.dotnet/bin/` by default. -Override with `DOTNET_TOOL_BIN` env var, `-o `, -or `--local-bin` (uses `~/.local/bin/`). - -## PATH configuration - -`dotnet-install` uses a dedicated env file (`~/.dotnet/bin/env`) -that is sourced from the shell's rc file. Run -`dotnet-install doctor --fix` to configure PATH automatically. -To activate in the current shell without restarting: - -```bash -. "$HOME/.dotnet/bin/env" # sh/bash/zsh -source "$HOME/.dotnet/bin/env.fish" # fish -``` - -## Reliable behavior - -- Git updates verify that the remote history is a - continuation of the local history. If a force push - is detected, the update is refused — the user must - uninstall and reinstall the tool. -- Pinned installs (`--tag`, `--rev`, `@ref`) are - immutable. `update` skips them and reports the - pinned ref. Changing versions requires an explicit - uninstall and reinstall. -- Building from source requires the .NET SDK; - `--package` works without the SDK. -- NuGet installs auto-enable roll-forward if the - tool targets an older runtime. -- `--require-sourcelink` enforces SourceLink metadata - in installed assemblies. From 26e74578f672c61d702a94cfd4cf17a5b3cfc262 Mon Sep 17 00:00:00 2001 From: Rich Lander Date: Thu, 11 Jun 2026 22:05:37 -0700 Subject: [PATCH 2/2] Shorten dotnet-inspect bootstrap skill Keep the marketplace skill under 50 lines and defer detailed workflow guidance to the version-matched embedded dotnet-inspect skill. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- skills/dotnet-inspect/SKILL.md | 51 ++++++---------------------------- 1 file changed, 9 insertions(+), 42 deletions(-) diff --git a/skills/dotnet-inspect/SKILL.md b/skills/dotnet-inspect/SKILL.md index 8b348a8..d4398b6 100644 --- a/skills/dotnet-inspect/SKILL.md +++ b/skills/dotnet-inspect/SKILL.md @@ -1,12 +1,12 @@ --- name: dotnet-inspect version: 0.10.5 -description: Find evidence instead of guessing for .NET packages, platform libraries, local assemblies, APIs, dependencies, SourceLink/symbol provenance, and version-to-version API changes. +description: Find evidence for .NET packages, platform libraries, assemblies, APIs, dependencies, SourceLink/source, and API version diffs. --- # dotnet-inspect -Use dotnet-inspect when you need evidence instead of guesses for .NET packages, platform libraries, local assemblies, APIs, dependencies, SourceLink/symbol provenance, or version-to-version API changes. +Use dotnet-inspect when you need evidence instead of guesses for .NET packages, platform libraries, local assemblies, APIs, dependencies, SourceLink/source, or version-to-version API changes. Invoke with `dnx`: @@ -14,56 +14,23 @@ Invoke with `dnx`: dnx dotnet-inspect -y -- ``` -This marketplace skill is intentionally only a bootstrapper. For the authoritative workflow guide for the installed tool version, run: +This marketplace skill is intentionally only a bootstrapper. For non-trivial work, first run the version-matched embedded guide: ```bash dnx dotnet-inspect -y -- skill ``` -Prefer that embedded skill output over this file when commands, output modes, section names, or workflow guidance differ. It is versioned with the tool and prevents stale marketplace guidance after CLI changes. +Prefer that embedded guide when commands, output modes, section names, or workflow guidance differ. -## Fast starts +## Seed commands | Goal | Command | | ---- | ------- | -| Find where a type lives | `find Pattern` | -| Inspect APIs | `type Type --package Foo`, then `member Type --package Foo` | +| Find where an API lives | `find Pattern` | +| Inspect types or members | `type Type --package Foo`, then `member Type --package Foo` | | Compare versions | `diff --package Foo@old..new --breaking` | -| Inspect package/library signals | `library Foo -S Signals` or `package Foo -S Signals` | +| Inspect package/library signals | `package Foo -S Signals` or `library Foo -S Signals` | | Locate source or implementation | `source Type --package Foo` or `member Type Member:1 -S "Decompiled Source"` | | Explore relationships | `depends Type`, `extensions Type`, `implements Interface` | -## Common workflow - -Start with the embedded guide, then carry resolved context forward: - -```bash -dnx dotnet-inspect -y -- skill -dnx dotnet-inspect -y -- find JsonSerializer -dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json -dnx dotnet-inspect -y -- source JsonSerializer --package System.Text.Json -``` - -After `find`, reuse the package or library it reports in follow-up commands. Use explicit `--platform `, `--package Foo[@version]`, or `--library` when the source matters. - -## Output control - -Default output is Markdown. Use `--table` for compact human scanning, `--tsv` for stable field splitting, `--jsonl` for one JSON object per table row, `--json` for structured object graphs, and `--mermaid` for graph-shaped output such as `depends`. - -Discover sections and columns with `-D`; select sections with `-S Section`, wildcards such as `-S "Async*"`, or categories such as `-S @All`. Project table columns with `--columns`, fields with `--fields`, and count rows with `--count` when one table section is selected. Use `-n`, `--tail`, and `--rows` instead of shell pipes when limiting output. - -```bash -dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json -D --tsv -dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json -S Methods --columns "Name;Signature;Obsolete" -dnx dotnet-inspect -y -- library System.Text.Json -S "Async*" --count -``` - -## Guardrails - -- First run `dnx dotnet-inspect -y -- skill` when doing non-trivial work; it contains the current, tool-embedded guidance. -- Quote generic type names and use ``, not `<>`: `'Option'`, `'INumber'`. -- `type` uses `-t` for type filters; `member` uses `-m` for member filters. -- Dotted member syntax works: `-m JsonSerializer.Deserialize`. -- Diff ranges use `..`: `--package Foo@1.0.0..2.0.0`. -- Unpinned packages use the latest stable by default; add `--preview` when prerelease APIs matter. -- Use `--all` for non-public, hidden, and extra members; obsolete members are already shown by default. +After `find`, reuse the package, library, or platform scope it reports. Quote generic type names such as `'List'`; use ``, not `<>`.