chore(gemini): add the initial style guide for suggestions (#260)

This commit is contained in:
Makito 2025-07-06 20:16:42 +09:00 committed by GitHub
parent 34b547047f
commit af86b2ef0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

42
.gemini/styleguide.md Normal file
View file

@ -0,0 +1,42 @@
# Gemini Code Assist Style Guide
## Suggestions
### Core Requirement
**Always wrap code suggestions in GitHub suggestion blocks** to enable one-click application by maintainers.
### Format
Use GitHub's suggestion syntax for all code recommendations:
```suggestion
// Your suggested code here
```
### Multiple Options
When offering multiple approaches, provide separate labeled suggestion blocks:
**Option A - Performance focused:**
```suggestion
function processItems(items) {
let result = 0;
for (const item of items) {
result += item.value;
}
return result;
}
```
**Option B - Functional approach:**
```suggestion
const processItems = (items) =>
items.reduce((sum, item) => sum + item.value, 0);
```
### That's It
Continue providing your normal comprehensive analysis, explanations, and recommendations. The only change is wrapping code suggestions in suggestion blocks so maintainers can easily apply them.