Add Mockly Copilot skill and auto-copy to .agents/skills#108
Merged
Conversation
- Add SKILL.md with comprehensive documentation derived from unit tests - Add Mockly.targets with CopyMocklySkill MSBuild target - Update Mockly.csproj to bundle both files in the NuGet package The skill is copied to .agents/skills/mockly/SKILL.md in the consuming repo root on build (via buildTransitive/Mockly.targets), following the same pattern as StructId. Opt-out with <MocklySkill>false</MocklySkill>. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Coverage Report for CI Build 26331555331Coverage remained the same at 83.649%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Remove redundant sections and examples; keep one concise example per feature. Reduces token cost when the skill is injected into AI context. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced May 25, 2026
This was referenced Jun 1, 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.
Summary
Adds a Copilot skill (
SKILL.md) to the Mockly NuGet package, following the same pattern as StructId.What's included
SKILL.md— A comprehensive AI skill guide for Mockly, derived from all unit tests underMockly.SpecsandFluentAssertions.Mockly. Covers:HttpMockconfigurationHttpContent, custom lambdaIResponseBuilder<T>integration for test-data buildersmock.Requestsand scopedRequestCollectionOnce(),Twice(),Times(n)Reset()/Clear()IHttpClientFactorysupportHaveAllRequestsCalled,NotContainUnexpectedCalls,BeExpected, etc.)Mockly/Mockly.targets— MSBuildCopyMocklySkilltarget that runsBeforeTargets="PrepareForBuild". It resolves the consuming project's repo root (via git SourceRoot →$(SolutionDir)→ nearestAGENTS.md) and copiesSKILL.mdto.agents/skills/mockly/SKILL.md. UsesSkipUnchangedFiles="true"andContinueOnError="true"so it never breaks builds.Mockly/Mockly.csproj— Two new<None>pack items:SKILL.md→skills/mockly/SKILL.md(inside the package)Mockly.targets→buildTransitive/Mockly.targets(auto-imported by consumers)Opt-out
Consumers can disable the skill copy by adding to their project or
Directory.Build.props: