pr-finalize
Skill12k starsChanged 58 days agoMITView on GitHub
Finalizes any PR for merge by verifying title/description match implementation AND performing code review for best practices. Use when asked to "finalize PR", "check PR description", "review commit message", before merging any PR, or when PR implementation changed during review. Do NOT use for extracting lessons or investigating build failures.
1 other project uses a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- gustfernandez/skillstheir own version, first seen Jun 14, 2026
Who's talking about microsoft/garnet
- A Hacker News story“Garnet – A new remote cache-store from Microsoft Research”Hacker News · Mar 19, 2024 · 370 points
- dotnet/aspnetcore“Redis distributed cache does not need to use Lua”GitHub · Mar 22, 2024 · 19 reactions
- @piss.beauty“C# doesn't get a ton of mindshare among devs lately, but it's wildly improved from its earlier versions, …”Bluesky · May 6, 2024 · 14 likes
- @brendan.fyi“"Garnet can work with existing Redis clients." MIT license Whoopsie doodle Redis github.com/microsoft/ga...”Bluesky · Mar 22, 2024 · 9 likes
- juicedata/juicefs“Add/test support for Microsoft Garnet”GitHub · Mar 22, 2024 · 5 reactions
The biggest 5 of 48 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 48
Talked about on GitHub, Bluesky and Hacker News (48 times).
On GitHub · 35
- Mar 22, 2024Redis distributed cache does not need to use Lua — dotnet/aspnetcore19 reactions · 5 comments
- Mar 22, 2024Add/test support for Microsoft Garnet — juicedata/juicefs5 reactions · 2 comments
- Nov 14, 2025Disk IO completions getting lost — dotnet/runtime4 reactions · 2 comments
- Apr 28, 2024Consider using Garnet — davidfowl/AspireWithRedis3 reactions · 1 comment
- Nov 21, 2024Propagate handshake failures to Handshake future — redis/lettuce2 reactions · 3 comments
30 more on GitHub
- May 10, 2024Potential corner-case error in optimized assembly — mmcloughlin/geohash2 reactions
- Mar 23, 2024Port the Unsafe.SizeOf Fixes from garnet — microsoft/FASTER2 reactions
- Mar 23, 2024use IsReferenceOrContainsReferences for .NET Standard 2.1+ and 6_0+ — microsoft/FASTER1 reaction · 1 comment
- Oct 5, 2026chore: bump garnet to 2.2.0 — glensouza/enterprise-homelab-template0 reactions
- Oct 2, 2026garnet 2.2.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Oct 2, 2026chore(deps): update dependency microsoft/garnet to v2.2.0 — minhnbnt/aur0 reactions
- Sep 24, 2026chore(deps): update dependency microsoft.garnet to 2.2.0 — dailydevops/healthchecks0 reactions · 2 comments
- Sep 22, 2026garnet: 2.1.7 -> 2.1.8 — NixOS/nixpkgs0 reactions · 3 comments
- Sep 19, 2026chore: bump garnet to 2.1.8 — glensouza/enterprise-homelab-template0 reactions · 1 comment
- Sep 17, 2026garnet 2.1.8 — Homebrew/homebrew-core0 reactions · 2 comments
- Sep 17, 2026chore(deps): update dependency microsoft/garnet to v2.1.8 — minhnbnt/aur0 reactions · 1 comment
- Sep 12, 2026garnet: 2.1.5 -> 2.1.7 — NixOS/nixpkgs0 reactions · 4 comments
- Sep 11, 2026chore(deps): update dependency microsoft.garnet to 2.1.7 — dailydevops/healthchecks0 reactions · 1 comment
- Sep 11, 2026Bump Microsoft.Garnet from 2.1.5 to 2.1.7 — OrchardCoreContrib/OrchardCoreContrib0 reactions
- Sep 10, 2026chore(deps): update dependency microsoft/garnet to v2.1.7 — minhnbnt/aur0 reactions
- Sep 9, 2026garnet 2.1.7 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 9, 2026chore(deps): update dependency microsoft/garnet to v2.1.6 — minhnbnt/aur0 reactions · 1 comment
- Sep 9, 2026garnet 2.1.6 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 1, 2026garnet: 2.1.4 -> 2.1.5 — NixOS/nixpkgs0 reactions · 3 comments
- Aug 25, 2026garnet 2.1.5 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 12, 2026garnet 2.1.4 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 10, 2026garnet 2.1.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 5, 2026garnet 2.1.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 30, 2026garnet 2.1.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 28, 2026diskann_garnet nuget for macOS — microsoft/DiskANN0 reactions
- May 7, 2025failed to push some refs error when a bunch of charts updating — benchmark-action/github-action-benchmark0 reactions
- Sep 17, 2024Comparison with FASTER and Garnet? — StereoDB/StereoDB0 reactions · 2 comments
- Aug 12, 2024Support JSON schema for Garnet — SchemaStore/schemastore0 reactions
- Jul 5, 2024https://github.com/microsoft/garnet/blob/main/libs/host/Garnet.host.csproj — ignatandrei/PackageAnalyzer0 reactions
- Mar 26, 2024Maybe migrate from Redis to Garnet — nblockchain/FX0 reactions
On Bluesky · 11
- May 6, 2024C# doesn't get a ton of mindshare among devs lately, but it's wildly improved from its earlier versions, and you can achieve some pretty… — @piss.beauty14 likes and reposts · 3 replies
- Mar 22, 2024"Garnet can work with existing Redis clients." MIT license Whoopsie doodle Redis github.com/microsoft/ga... — @brendan.fyi9 likes and reposts
- Mar 30, 2024Garnet : un cache-store Open Source qui fonctionne avec les clients Redis existants... pour tous ceux qui se demandent pourquoi Microsoft… — @bearstech.com4 likes and reposts · 1 reply
- Mar 22, 2024right as redis changed their license from open source a free drop-in replacement got released github.com/microsoft/ga... — @domi.zip4 likes and reposts · 1 reply
- Mar 22, 2024githubはこれか。ちょうどRedisがアレな件もあるので乗り換え先として良いかも。ドキュメントにはマルチスレッド実装が故にMSETはnot atomicという記述を確認した。なるほどですね。 — @matsuu.bsky.social3 likes and reposts
6 more on Bluesky
- Mar 20, 2024A new player has entered the game. 😅 github.com/microsoft/ga... I'll test it in a few days. 😁 — @ferociousbyte.dev3 likes and reposts
- Mar 24, 2024github.com/microsoft/ga... — @tommis.fi2 likes and reposts
- Mar 23, 2024Bonjour et bon samedi ! Avec le changement de licence récent de Redis, les alternatives font surface. Ici Garnet de M$, sous licence MIT et… — @ponceto91.bsky.social1 likes and repost · 1 reply
- Mar 19, 2024github.com/microsof... GitHub - microsoft/garnet: Garnet is a remote cache-store from Microsoft Research that offers strong performance… — @technews4869.bsky.social1 likes and repost
- Mar 21, 2024💎 Hidden Gem! 💎 (1000+ new stars) 📦 microsoft / garnet ⭐ 3,020 (+1,118) 🗒 C# Garnet is a remote cache-store from Microsoft Research… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Mar 19, 2024Garnet – A new remote cache-store from Microsoft Research Garnet - Microsoft Researchの新しいリモートキャッシュストア 🔺 279 💬 14 🔗 HN Post | Article — @hacker-news-jp.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Mar 19, 2024Garnet – A new remote cache-store from Microsoft Research370 points · 118 comments
- Sep 21, 2025Garnet – A remote cache-store from Microsoft Research4 points
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- gustfernandez/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- add-garnet-commandSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
This skill is ANALYSIS ONLY: Never post comments using gh commands.
- Distinctive: line 76
Before suggesting changes, evaluate the current description:
- Distinctive: line 88
Ask: "Is the existing description better than what my template would produce?"
- Distinctive: line 90
If YES: Keep existing, only add missing required elements
- Distinctive: line 98
Only full replacement if description is inadequate
- Distinctive: line 185
Use this only when the existing description is stale, inaccurate, or missing key information:
- Very specific: line 260
After verifying title/description, perform a code review to catch Garnet-specific issues and general best practice violations before merge.
- Very specific: line 264
When reviewing code changes in Garnet, focus on:
- Very specific: line 343
The pr-finalize skill is ANALYSIS ONLY: Never post comments using gh pr review or gh pr comment.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PR Finalize
Ensures PR title and description accurately reflect the implementation, and performs a code review for Garnet best practices before merge.
Standalone skill — Can be used on any PR.
Two-Phase Workflow
- Title & Description Review — Verify PR metadata matches implementation
- Code Review — Review code for Garnet-specific best practices and potential issues
🚨 CRITICAL RULES
1. NEVER Approve or Request Changes
AI agents must NEVER use --approve or --request-changes flags.
| Action | Allowed? | Why |
gh pr review --approve | ❌ NEVER | Approval is a human decision |
gh pr review --request-changes | ❌ NEVER | Blocking PRs is a human decision |
2. NEVER Post Comments Directly
This skill is ANALYSIS ONLY. Never post comments using gh commands.
| Action | Allowed? | Why |
gh pr review --comment | ❌ NEVER | Present findings to the user instead |
gh pr comment | ❌ NEVER | Present findings to the user instead |
| Analyze and report findings | ✅ YES | This is the skill's purpose |
Only humans control when comments are posted. Your job is to analyze and present findings.
Phase 1: Title & Description
Core Principle: Preserve Quality
Review existing description BEFORE suggesting changes. Many PR authors write excellent, detailed descriptions. Your job is to:
- Evaluate first — Is the existing description good? Better than a template?
- Preserve quality — Don't replace a thorough description with a generic template
- Enhance, don't replace — Add missing required elements (issue links, test info) without rewriting good content
- Only rewrite if needed — When description is stale, inaccurate, or missing key information
Usage
# Get current state (no local checkout required)
gh pr view XXXXX --json title,body
gh pr view XXXXX --json files --jq '.files[].path'
# Review commit messages (helpful for squash/merge commit quality)
gh pr view XXXXX --json commits --jq '.commits[].messageHeadline'
# Review actual code changes
gh pr diff XXXXX
# Optional: if the PR branch is checked out locally
git diff origin/main...HEADEvaluation Workflow
Step 1: Review Existing Description Quality
Before suggesting changes, evaluate the current description:
| Quality Indicator | Look For |
| Structure | Clear sections, headers, organized flow |
| Technical depth | File-by-file changes, specific code references |
| Scannability | Easy to find what changed and where |
| Accuracy | Matches actual diff — not stale or incorrect |
| Completeness | Breaking changes, performance impact, testing info |
Step 2: Compare to Template
Ask: "Is the existing description better than what my template would produce?"
- If YES: Keep existing, only add missing required elements
- If NO: Suggest improvements or replacement
Step 3: Produce Output
- Recommended PR title (if change needed)
- Assessment of existing description
- Specific additions needed (e.g., "Add issue link", "Mention breaking change")
- Only full replacement if description is inadequate
Title Requirements
The title becomes the commit message headline. Make it searchable and informative.
| Requirement | Good | Bad |
| Component prefix (if specific) | [Cluster] Fix gossip protocol timeout | Fix timeout |
| Describes behavior, not issue | [RESP] ZADD: Support GT/LT flags | Fix #123 |
| Captures the "what" | [Tsavorite] Reduce lock contention in RMW | Fix perf bug |
| Notes breaking change if applicable | (breaking) | (omitted) |
| No noise prefixes | [Storage] Fix... | [PR agent] Fix... |
Title Formula
[Component] What changed (breaking if applicable)Component prefixes (use when change is scoped):
[RESP]— RESP command parsing/dispatch (libs/server/Resp/)[Storage]— Storage session/functions (libs/server/Storage/)[Tsavorite]— Tsavorite engine (libs/storage/Tsavorite/)[Cluster]— Cluster/replication/sharding (libs/cluster/)[Objects]— Object types: Hash, List, Set, SortedSet (libs/server/Objects/)[API]— Garnet API surface (libs/server/API/)[Network]— Networking/TLS (libs/common/Networking/)[Config]— Configuration/options (libs/host/Configuration/)[Tests]— Test-only changes[Docs]— Documentation-only changes- Omit prefix for cross-cutting changes
Examples:
[RESP] ZADD: Support GT/LT flags for conditional updates[Tsavorite] Reduce epoch protection overhead in hot-path RMW[Cluster] Fix replication lag during key migrationAdd multi-database support for standalone mode
Description Requirements
PR description should:
- Link to the GitHub Issue
- Describe what changed and why
- Match the actual implementation
### Description of Change
[Must match actual implementation]
### Issues Fixed
Fixes #XXXXXContent for Future Agents
The title and description become the commit message. Future agents searching git history will use this to understand:
- What changed and why
- What patterns to follow or avoid
- How this change affects related code
Required Elements for Agent Success
| Element | Purpose | Example |
| Component in title | Scoped search | [Tsavorite] ... |
| Root cause (bug fixes) | Understand failure mode | "Epoch was not released on error path" |
| Description of change | What code does now | "Added GT/LT flag parsing in ZADD handler" |
| Key types/interfaces | API surface awareness | IGarnetApi, StorageSession, CustomRawStringFunctions |
| What NOT to do | Prevent repeat mistakes | "Don't allocate on RMW hot path" |
Recommended Elements
| Element | When to Include |
| Root cause | Bug fixes — explain why the bug occurred |
| Key technical details | Complex changes — list affected types and interfaces |
| What NOT to do | When failed approaches were attempted |
| Edge cases | When behavior differs across scenarios |
| Performance impact | When change affects hot paths or memory allocation |
| Breaking changes | When API or behavior changes affect consumers |
| Migration guide | When users/extensions need to update |
Description Template (for Inadequate Descriptions)
Use this only when the existing description is stale, inaccurate, or missing key information:
### Root Cause
[Why the bug occurred — be specific about the code path]
### Description of Change
[What the code now does]
**Key changes:**
- [Change 1]
- [Change 2]
### Key Technical Details
**Affected types/interfaces:**
- `TypeA` — [What it does]
- `TypeB` — [What it does]
### What NOT to Do (for future agents)
- ❌ **Don't [approach 1]** — [Why it fails]
- ❌ **Don't [approach 2]** — [Why it's wrong]
### Edge Cases
| Scenario | Risk | Mitigation |
|----------|------|------------|
| [Case 1] | Low/Medium/High | [How to handle] |
### Issues Fixed
Fixes #XXXXXQuality Comparison Examples
Good Existing Description (KEEP)
## Changes
### `libs/server/Resp/Objects/SortedSetCommands.cs`
- Added GT/LT flag parsing in ZADD command handler
- Flag validation against NX (mutually exclusive)
### `libs/server/Objects/SortedSet/SortedSetObjectImpl.cs`
- Implemented conditional update logic in SortedSetAdd
- GT: only update if new score > current; LT: only if new score < current
### `libs/server/Storage/Session/ObjectStore/SortedSetOps.cs`
- Passed flags through ObjectInput to the object implementation
## Tests Added
- `RespSortedSetTests.ZAddWithGTFlag` — verifies GT-only updates
- `RespSortedSetTests.ZAddWithLTFlag` — verifies LT-only updates
- `RespSortedSetTests.ZAddGTNXMutuallyExclusive` — verifies error on GT+NXVerdict: Excellent — file-by-file breakdown, specific changes, tests listed. Keep it.
Poor Existing Description (REWRITE)
Fixed the issue mentioned in #456Verdict: Inadequate — no detail on what changed. Use template.
Phase 2: Code Review
After verifying title/description, perform a code review to catch Garnet-specific issues and general best practice violations before merge.
Review Focus Areas
When reviewing code changes in Garnet, focus on:
- Performance and memory safety
- Unnecessary heap allocations on hot paths (prefer
Span<T>,SpanByte, stack allocation) - Missing
[MethodImpl(MethodImplOptions.AggressiveInlining)]on hot-path methods - Missing
[MethodImpl(MethodImplOptions.NoInlining)]on cold/exception-throwing methods - Blocking calls or unnecessary copies in RESP command handlers
- Unnecessary heap allocations on hot paths (prefer
- Epoch management
LightEpochacquired but not released on error paths- Epoch ownership — only dispose if owned
- Shared epochs in parallel test scenarios
- RESP protocol correctness
- Argument parsing via
parseState.GetArgSliceByRef(i)returningref PinnedSpanByte - Correct RESP response format (using
RespWriteUtilshelpers) - Proper
SendAndReset()calls to flush response buffer - Command dispatch wired in
ProcessBasicCommands/ProcessArrayCommands
- Argument parsing via
- Thread safety and concurrency
- Proper lock usage (
TryWriteLock()in spin loops, notCloseLock()) - Safe concurrent access to shared state
- Session-local vs shared state boundaries
- Proper lock usage (
- Test quality
TestBaseinheritance on test fixturesTestUtils.OnTearDown()called in[TearDown](checks for leaked epochs)TestUtils.DeleteDirectory(TestUtils.MethodTestDir, wait: true)in[SetUp]- Both
StackExchange.RedisandLightClientcoverage where applicable
- Code conventions
- File header:
// Copyright (c) Microsoft Corporation./// Licensed under the MIT license. TreatWarningsAsErrors— no new warnings introduced- XML doc comments on public methods
- Consistent naming (camelCase private fields, PascalCase constants/statics)
- File header:
- Breaking changes and API surface
- Changes to
IGarnetApi/IGarnetReadApi/IGarnetAdvancedApi - Changes to custom extension base classes (
CustomRawStringFunctions,CustomObjectBase, etc.) - Configuration option changes in
GarnetServerOptions
- Changes to
How to Review
# Get the PR diff
gh pr diff XXXXX
# Review specific files
gh pr diff XXXXX -- path/to/file.cs
# Check CI status
gh pr view XXXXX --json statusCheckRollupOutput Format
## Code Review Findings
### 🔴 Critical Issues
**[Issue Title]**
- **File:** [path/to/file.cs]
- **Problem:** [Description]
- **Recommendation:** [Code fix or approach]
### 🟡 Suggestions
- [Suggestion 1]
- [Suggestion 2]
### ✅ Looks Good
- [Positive observation 1]
- [Positive observation 2]🚨 CRITICAL: Do NOT Post Comments Directly
The pr-finalize skill is ANALYSIS ONLY. Never post comments using gh pr review or gh pr comment.
| Action | Allowed? | Why |
gh pr review --comment | ❌ NEVER | Present findings to the user instead |
gh pr comment | ❌ NEVER | Present findings to the user instead |
| Analyze and report findings | ✅ YES | This is the skill's purpose |
Workflow:
- This skill: Analyze PR, produce findings in your response
- User asks to post: User decides whether and how to share feedback
The user controls when comments are posted. Your job is to analyze and present findings.
Complete Example
See references/complete-example.md for a full agent-optimized PR description showing all elements above applied to a real Garnet change.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

