Repository navigation
Manage package versions centrally and ship package metadata with agent skills - #37
Merged
Merged
Conversation
…th agent skills Every package version moves to Directory.Packages.props. Under CPM the F# SDK stops adding its implicit FSharp.Core reference, so each F# project references FSharp.Core explicitly; Proc.Fs keeps its 10.0.100 floor, and the tests and the build now use that version too instead of the SDK's. Shared package metadata moves to Directory.Build.props, adding authors, copyright, tags, SourceLink repository details and package validation. Each package now carries a short agent skill at skills/<name>/SKILL.md, per "Delivering skills in NuGet packages". Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mpdreamz
added a commit
to nullean/scoped-filesystem
that referenced
this pull request
Nov 11, 2026
…the package (#18) Package versions and metadata now each live in one file, and the Nullean.ScopedFileSystem package ships a short agent skill. An agent that installs it learns how to use it without reading the source. **Prompt summary:** Bring every nullean repository onto one standard. That includes Central Package Management, consistent package metadata with a README and icon in every package, and a small skill in each package, as described in [Delivering skills in NuGet packages](https://devblogs.microsoft.com/dotnet/delivering-skills-in-nuget-packages/). This is step 2 of the rollout, as on nullean/proc#37. ## Why The library and tests were already on Central Package Management, but the build project opted out and pinned its own versions. The package had no authors (NuGet fell back to the assembly name), no copyright, no tags, and no branch in its repository details. Its README covers the rules well but not the traps an agent falls into, such as `FileStream` bypassing every check. ## What #### Central Package Management everywhere `build/scripts` now uses `Directory.Packages.props` too, with the same versions as before. Under CPM the F# SDK no longer adds FSharp.Core implicitly, so the build references it explicitly (10.1.201, the version it already pinned). MinVer comes from `Directory.Build.props` for every project. #### One place for package metadata `Directory.Build.props` carries authors, copyright, license, icon, repository and release-notes URLs, SourceLink settings (`PublishRepositoryUrl`, `EmbedUntrackedSources`, `ContinuousIntegrationBuild` on CI) and `EnablePackageValidation`. The project file keeps its id, title, description and new tags. The repository README is still the package README, packed from the root. #### Package validation Turning it on found one difference between target frameworks. The netstandard builds declare a public `System.Collections.Generic.IReadOnlySet<T>` polyfill, because the public `FileSystemExtensions.TryValidateSymlinkAccess` overloads take one, and net9.0 uses the BCL's. That predates this PR, and removing it changes public API, so `CompatibilitySuppressions.xml` records it with a comment rather than fixing it in passing. #### Agent skill in the package `src/Nullean.ScopedFileSystem/skills/scoped-filesystem/SKILL.md` is packed at `skills/scoped-filesystem/SKILL.md`. I wrote it from the code. It covers the constructors and options, `ScopedFileSystemException`, and `Exists` never throwing. The gotchas: `FileStream`, `FileSystemWatcher`, `DriveInfo` and `Path` pass through unchecked; relative paths resolve against the current directory; roots must be disjoint; and allowed special folders skip the hidden checks. Every snippet compiles against this branch, and I checked each gotcha by running it. **Out of scope:** Removing the public `IReadOnlySet<T>` polyfill, which is an API change of its own. Also the release-drafter flow, which comes next. ## Verify ```bash mise run pack unzip -l build/output/Nullean.ScopedFileSystem.*.nupkg | grep -E 'skills|README|png' ``` Locally, `mise run ci` passes the same 114 of 114 tests as `main`. Comparing the packed package with one built from `main`: the dependency groups are identical, and the only new file is the skill. The `.nuspec` gains `authors`, `copyright`, `tags` and the repository branch. zizmor and actionlint are clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Package versions now live in one file, and the Proc and Proc.Fs packages ship richer metadata plus a short agent skill. An agent that installs them learns how to use them without reading the source.
Prompt summary: Bring every nullean repository onto one standard. That includes Central Package Management, consistent package metadata with a README and icon in every package, and a small skill in each package, as described in Delivering skills in NuGet packages. proc is the pilot.
Why
Versions were spread over six project files, with the build's own dependencies mixed in. The packages had no authors (NuGet fell back to the assembly name), no copyright, no tags and no SourceLink repository details. Agents using Proc had to infer the API from the README, which has drifted from the code: it still describes a default 4-minute timeout and a
Proc.Start(bin, TimeSpan, writer)overload, and neither exists any more.What
Central Package Management
Directory.Packages.propsholds every version. Under CPM the F# SDK no longer adds its implicit FSharp.Core reference, so each F# project references FSharp.Core explicitly. Proc.Fs keeps its 10.0.100 floor for consumers. The tests and the build now use 10.0.100 too, where they previously got the SDK's 11.0.101.One place for package metadata
Directory.Build.propsnow carries authors, copyright, license, icon, README, repository and release-notes URLs, SourceLink settings (PublishRepositoryUrl,EmbedUntrackedSources,ContinuousIntegrationBuildon CI) andEnablePackageValidation. The project files keep only what differs: id, title, description and tags.Agent skills in the packages
src/Proc/skills/proc/SKILL.mdandsrc/Proc.Fs/skills/proc-fs/SKILL.mdare packed atskills/<name>/SKILL.md, about 2 KB each. They cover which call to pick, the options that matter, and the gotchas agents hit: no default timeout,Startdoesn't throw on a failed exit, arguments are passed one by one, andshwon't do redirection. Every snippet in them compiles against this branch.Stack: 2 of 2, on top of #34.
Verify
Comparing the packed
.nuspecwith the one from main shows dependencies unchanged. Onlyauthors,copyright,tagsand the repository's branch are added.🤖 Generated with Claude Code