Add GitHub Copilot instructions for SSH.NET#1767
Open
Conversation
Co-authored-by: WojciechNagorski <17333903+WojciechNagorski@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add repository-specific GitHub Copilot instructions
Add GitHub Copilot instructions for SSH.NET
Feb 28, 2026
drieseng
approved these changes
Feb 28, 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.
Adds
.github/copilot-instructions.mdto give GitHub Copilot accurate, repository-specific context so AI-generated contributions align with existing architecture, style, and safety expectations.Coverage
SshClient,SftpClient,ScpClient,NetConfClientall extendingBaseClientLangVersion=latest, multi-TFM (.NET 4.6.2 / netstandard2.0 / .NET 8+), BouncyCastle for crypto, MEL abstractions for logging, MSTest + Moq + Testcontainers for testing, StyleCop + Meziantou + Sonar analyzersPrivateKeyFile.PKCS1.cs,PrivateKeyFile.OpenSSH.cs)_camelCaseprivate fields,I-prefix interfaces; StyleCop rules:#nullable enableat file top,usingdirectives outside namespace withSystem.*first, XML doc on all public/internal membersSshExceptionhierarchy;#if NETFRAMEWORKserialization constructor pattern;ErrorOccurredevents for cross-thread errors; no silent swallowing…Async(CancellationToken)counterpart;ReadOnlyMemory<byte>preferred overbyte[]in protocol code; no exposed mutable collectionsConfigureAwait(false)throughout;TaskCompletionSource<T>for event bridging; no.Result/.Wait()inside async codeSecurity/), private key parsing (PrivateKeyFile*.cs), host key verification; guidance to clear key material and never log secrets;WiresharkKeyLogFilePathmust not be enabled in productionArrayPool/MemoryPoolover ad-hocbyte[], lock-contention avoidance, BenchmarkDotNet for significant changesOriginal prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.