Skip to content

Manage package versions centrally and ship package metadata with agent skills - #37

Merged
Mpdreamz merged 2 commits into
mainfrom
feature/nullean-packaging
Nov 11, 2026
Merged

Mpdreamz merged 2 commits into
mainfrom
feature/nullean-packaging

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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.props holds 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.props now carries authors, copyright, license, icon, README, repository and release-notes URLs, SourceLink settings (PublishRepositoryUrl, EmbedUntrackedSources, ContinuousIntegrationBuild on CI) and EnablePackageValidation. The project files keep only what differs: id, title, description and tags.

Agent skills in the packages

src/Proc/skills/proc/SKILL.md and src/Proc.Fs/skills/proc-fs/SKILL.md are packed at skills/<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, Start doesn't throw on a failed exit, arguments are passed one by one, and sh won't do redirection. Every snippet in them compiles against this branch.

Stack: 2 of 2, on top of #34.

Verify

mise run pack
unzip -l build/output/Proc.*.nupkg | grep -E 'skills|README|png'

Comparing the packed .nuspec with the one from main shows dependencies unchanged. Only authors, copyright, tags and the repository's branch are added.

🤖 Generated with Claude Code

Mpdreamz and others added 2 commits November 11, 2026 13:33
…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]>
@Mpdreamz Mpdreamz added the enhancement An existing capability improved (minor bump) label Nov 11, 2026
@Mpdreamz
Mpdreamz changed the base branch from feature/nullean-standard to main November 11, 2026 13:01
@Mpdreamz
Mpdreamz merged commit 90ec6fd into main Nov 11, 2026
5 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An existing capability improved (minor bump)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant