Skip to content

[Docs] Add Copilot instructions and pr-finalize skill#1579

Merged
badrishc merged 11 commits into
devfrom
badrishc/add-copilot-instructions
Mar 2, 2026
Merged

[Docs] Add Copilot instructions and pr-finalize skill#1579
badrishc merged 11 commits into
devfrom
badrishc/add-copilot-instructions

Conversation

@badrishc

@badrishc badrishc commented Feb 26, 2026

Copy link
Copy Markdown
Collaborator

Adds Copilot instructions and a PR finalization skill to help AI assistants work effectively in this repository.

What's included

Copilot instructions (.github/copilot-instructions.md)

  • Build/test/lint commands - including single-test execution and Tsavorite-specific commands
  • Architecture - unified single-store design with three context types (string, object, unified), ValueIsObject record discrimination
  • Adding new RESP commands - 10-step guide with exact file paths for parsing, dispatch, storage, and testing
  • Custom extensions - four extensibility points with example paths and server.Register API
  • Test conventions - Allure/NUnit requirements, server lifecycle, common CreateGarnetServer parameters
  • Key conventions - file headers, coding style, performance patterns, configuration settings, PR protocol with component prefix convention

PR finalize skill (.github/skills/pr-finalize/)

  • Copilot skill for reviewing PR title, description, and code before merge
  • Adapted from dotnet/maui with Garnet-specific conventions (epoch management, RESP correctness, performance/allocation review, Allure test wiring)
  • Includes a complete example showing an agent-optimized PR description for a ZADD change

Notes

  • All file paths verified against the dev branch codebase
  • Includes a callout that website docs may reference the older two-store architecture
  • PR finalize skill is analysis-only — never approves, requests changes, or posts comments directly

Adds a comprehensive Copilot instructions file covering:
- Build, test, and lint commands (including single-test execution)
- Unified single-store architecture with three context types
- Step-by-step guide for adding new RESP commands
- Custom extensions registration patterns
- Test structure with Allure/NUnit requirements
- Configuration, coding style, and performance conventions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 26, 2026 23:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repository-specific Copilot instructions document intended to help AI assistants contribute effectively to Garnet by summarizing build/test commands, core architecture, command implementation workflow, extension points, and key coding/testing conventions.

Changes:

  • Introduces .github/copilot-instructions.md with verified build/test/format commands and repo navigation pointers.
  • Documents the unified single-store architecture (string/object/unified contexts; ValueIsObject record discrimination).
  • Provides a step-by-step guide for adding RESP commands and registering custom extensions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
- Change XML doc comments from 'required' to 'strongly recommended' with
  note about .editorconfig suggestion-level severity
- Fix duplicated 'Common optional parameters' sentence and double-period typo
  in server lifecycle bullet
- Fix SaveKeyEntryToLock signature: remove non-existent isObject parameter,
  document PinnedSpanByte key type

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/copilot-instructions.md
Comment thread .github/copilot-instructions.md
@badrishc badrishc changed the title Add .github/copilot-instructions.md [Docs] Add Copilot instructions and pr-finalize skill Feb 27, 2026
@badrishc badrishc requested a review from Copilot February 27, 2026 17:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/skills/pr-finalize/SKILL.md Outdated
badrishc and others added 2 commits February 27, 2026 10:20
@badrishc badrishc merged commit 2eb5b69 into dev Mar 2, 2026
22 of 23 checks passed
@badrishc badrishc deleted the badrishc/add-copilot-instructions branch March 2, 2026 23:36
@github-actions github-actions Bot locked and limited conversation to collaborators May 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants