Repository navigation
Add agent skills and AGENTS.md for AI-assisted contributions - #4209
Merged
Merged
Conversation
…and PRs Agent Skills (SKILL.md with name/description frontmatter) under .agents/skills, the cross-client location read by GitHub Copilot (cloud agent, CLI, code review), VS Code, Visual Studio, Codex and Cursor. Each skill is a procedure grounded in how the C# 10-15 audits, the Oct 2026 issue triage and the follow-up bug fixes were done in this repo. csharp-language-version-audit also carries the probe harness used for those audits (scripts/probe), which runs every analyzer and code fix on snippet files.
Claude Code reads CLAUDE.md rather than AGENTS.md and doesn't discover .agents/skills, so CLAUDE.md imports AGENTS.md, which links each skill.
AArnott
marked this pull request as ready for review
October 10, 2026 03:07
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4209 +/- ##
=======================================
Coverage 97.57% 97.58%
=======================================
Files 1276 1276
Lines 135074 135074
Branches 4333 4333
=======================================
+ Hits 131805 131807 +2
+ Misses 2120 2119 -1
+ Partials 1149 1148 -1 🚀 New features to boost your workflow:
|
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.
Adds Agent Skills that describe how work in this repo gets done, so contributors' AI agents follow the same procedures. They're grounded in the C# 10–15 audits (#4042–#4046, #4180–#4186), the Oct 2026 backlog triage, and the PRs that came out of them (#4148/#4149, #4173, #4187–#4193, #4195–#4208).
Skills
csharp-language-version-auditc# Nlabel, tracking issue and sub-issues, theTest.CSharpNproject checklist, the preview default (#4192), probing every rule category, closing sub-issues with evidence, and handling compiler bugs (#4191).fixing-a-bugFixes #N, and Roslyn 1.x/4.0/5.x quirks.testing-and-coverageDefaultVerifier, exactly-once tests, and never weakening tests.analyzer-performancelightup-and-roslyn-versionsSyntaxKindEx, base-type casts, generated wrappers, light-up helpers,LanguageFeatureHelpers, refreshingSyntax.xml, and regenerating and checkingLightup/.generated.issue-triagepull-request-workflowgh api -X PATCHfor body edits, review replies, and test-class merge conflicts.csharp-language-version-audit/scripts/probeis the probe harness used for the audits and the triage. It's a small console app, not inStyleCopAnalyzers.sln, that runs every built analyzer, plus the first code fix of each diagnostic with--fix, on snippet files. It prints diagnostics, compiler errors, AD0001 crashes and fix diffs.-p:RoslynVersion=swaps the compiler. As a check, I ran the C# 15 union snippet with 5.9.0, which reports SA1600 three times on one union member (dotnet/roslyn#84570), and with 5.10.0-1.26477.9, which reports it once.AGENTS.mdis a short index of the skills plus a few ground rules.CLAUDE.mdis one line,@AGENTS.md.Why
.agents/skillsAll three common project locations work with GitHub Copilot (cloud agent, CLI, code review), VS Code and Visual Studio. They differ for other agents:
.github/skills.agents/skills.claude/skills.agents/skillsis the cross-client location from the Agent Skills spec, and it reaches the most agents. Claude Code is the gap: it only discovers.claude/skills. Instead of duplicating the files or committing symlinks, which are fragile on Windows,CLAUDE.mdimportsAGENTS.md, and that links every skill. Claude Code then reads them on demand, though it won't list them as native skills.Sources: GitHub Copilot docs, VS Code docs, Codex docs, Cursor docs, Claude Code docs.
Checks
agentskills validatefrom the referenceskills-refpackage. Each name matches its folder, descriptions run 348–496 characters, and everySKILL.mdis under 210 lines.statusCheckRollupquery, and the probe harness.Worth a look ⚑
testing-and-coverageare a snapshot. The audit skill says to update them when a test project is added.