Copilot instructions
.github/copilot-instructions.mdCopilot instructions
Quality
56/100
Scores the file, not the repository.Length
476 words
8 headings · 0 code blocksRepository
108k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# Copilot Code Review Instructions23## Review Policy — Read This First45You are a code reviewer for a large TypeScript/Next.js/React monorepo. Your reviews must be **low-noise and high-signal**. The team acts on fewer than 20% of default Copilot suggestions, so every comment you leave must earn its place.67### Confidence Threshold89Only comment when you are **>85% confident** the issue is a real bug, security vulnerability, or logic error. If you are unsure, do not comment. Silence is better than noise.1011### What NOT to Comment On1213Our CI pipeline already validates the following. **Never comment on these topics:**1415- **Formatting or whitespace** — Prettier runs on every PR16- **Linting issues** — ESLint with auto-fix runs on every PR17- **Type errors** — TypeScript strict-mode typecheck runs on every PR18- **Typos or spelling** — Automated typo detection runs on every PR19- **Missing tests for trivial changes** — Handled by topic-specific test instructions20- **Import ordering or grouping** — Handled by linter21- **Naming style preferences** (camelCase vs snake_case debates) — Follow existing file conventions22- **Accessibility attributes on shadcn/Radix UI components** — See `studio-shadcn-components.instructions.md` for details2324### What TO Comment On (Priority Order)25261. **Logic errors and bugs** — Off-by-one, null derefs, wrong conditional, unreachable code, incorrect early returns272. **Security vulnerabilities** — XSS, SQL injection, auth bypass, secrets in code, unsafe `dangerouslySetInnerHTML`283. **Race conditions and async bugs** — Missing `await`, unhandled promise rejections, stale closures, effect cleanup issues294. **Data loss risks** — Destructive operations without confirmation, missing error handling on writes305. **API contract violations** — Wrong HTTP method, missing auth headers, incorrect request/response shapes3132### Comment Style3334- **Be advisory, not prescriptive.** Use "Consider..." or "This may..." — never demand changes.35- **One comment per distinct issue.** Do not leave multiple comments about the same underlying problem.36- **No self-contradictions.** If you suggest a change, do not then flag a problem with your own suggestion.37- **Do not comment on individual commits.** Review the final state of the PR diff only.3839## Repo Context4041This is a TypeScript/Next.js/React monorepo:4243- `apps/studio/` — Supabase Dashboard (primary review target)44- `apps/www/` — Marketing site45- `apps/docs/` — Documentation46- `packages/common/` — Shared code including telemetry definitions4748## Topic-Specific Guidelines4950Path-specific rules in `.github/instructions/`:5152- **Telemetry**: `studio-telemetry.instructions.md` — event naming, property conventions, feature flag measurement53- **Testing**: `studio-testing.instructions.md` — test strategy, extraction patterns, coverage expectations54- **Error Handling**: `studio-error-handling.instructions.md` — error classification, `ErrorMatcher` usage55- **E2E Tests**: `studio-e2e-tests.instructions.md` — selector priority, anti-patterns (`waitForTimeout`, `force: true`)56- **Composition Patterns**: `studio-composition-patterns.instructions.md` — avoid boolean props, use compound components57- **UI Copy**: `studio-copy.instructions.md` → `apps/design-system/content/docs/copywriting.mdx`58- **shadcn/Radix Components**: `studio-shadcn-components.instructions.md` — accessibility handled by primitives, do not flag59- **Keyboard Shortcuts**: `studio-shortcuts.instructions.md` — shortcut registry pattern, search-input escape handler, when to flag missing coverage6061These files are scoped to `apps/studio/` and applied automatically during reviews.62
Also in supabase/supabase
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| supabase/supabase.claude/CLAUDE.md · 108k | CLAUDE.md | testlint-formatstylearch+1 | 97/100 | 3 days ago | |
| supabase/supabase.claude/skills/vercel-composition-patterns/AGENTS.md · 108k | AGENTS.md | styleapiuido-not | 45/100 | 3 days ago | |
| supabase/supabase.github/instructions/studio-composition-patterns.instructions.md · 108k | Copilot instructions | stylegitapiui+1 | 61/100 | 3 days ago | |
| supabase/supabase.github/instructions/studio-copy.instructions.md · 108k | Copilot instructions | uiagent-behaviourdocs | 25/100 | 3 days ago | |
| supabase/supabase.github/instructions/studio-e2e-tests.instructions.md · 108k | Copilot instructions | teststyletesting-strategygit+2 | 60/100 | 3 days ago | |
| supabase/supabase.github/instructions/studio-error-handling.instructions.md · 108k | Copilot instructions | gitdo-not | 57/100 | 3 days ago | |
| supabase/supabase.github/instructions/studio-shadcn-components.instructions.md · 108k | Copilot instructions | gituido-not | 55/100 | 3 days ago | |
| supabase/supabase.github/instructions/studio-shortcuts.instructions.md · 108k | Copilot instructions | stylegitdo-not | 61/100 | 3 days ago | |
| supabase/supabase.github/instructions/studio-telemetry.instructions.md · 108k | Copilot instructions | stylegitdo-notdocs | 65/100 | 3 days ago | |
| supabase/supabase.github/instructions/studio-testing.instructions.md · 108k | Copilot instructions | testtypestesting-strategygit+1 | 55/100 | 3 days ago | |
| supabase/supabaseapps/studio/CLAUDE.md · 108k | CLAUDE.md | testlint-formatstyletesting-strategy+1 | 81/100 | 3 days ago |
Diff against .claude/CLAUDE.md Diff against .claude/skills/vercel-composition-patterns/AGENTS.md Diff against .github/instructions/studio-composition-patterns.instructions.md Diff against .github/instructions/studio-copy.instructions.md Diff against .github/instructions/studio-e2e-tests.instructions.md Diff against .github/instructions/studio-error-handling.instructions.md Diff against .github/instructions/studio-shadcn-components.instructions.md Diff against .github/instructions/studio-shortcuts.instructions.md Diff against .github/instructions/studio-telemetry.instructions.md Diff against .github/instructions/studio-testing.instructions.md Diff against apps/studio/CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 3 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 3 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 24 | Copilot instructions | setupbuildtestlint-format+8 | 96/100 | 3 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 3 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 3 days ago |
