Copilot instructions
.github/copilot-instructions.mdCopilot instructions
Quality
93/100
Scores the file, not the repository.Length
526 words
14 headings · 0 code blocksRepository
36k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1<!-- PR generation instructions initial created from https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions#creating-repository-wide-custom-instructions -->23# Copilot Cloud Agent Instructions for `keycloak/keycloak`45## Repository at a glance6- Monorepo with a Maven multi-module Java codebase plus JavaScript/TypeScript UIs.7- Main server/runtime work is centered around `quarkus/`, `services/`, `server-spi*`, `model/`, and `tests/`.8- Frontend code lives in `js/` (PNPM workspace with apps/libs).910## Required toolchain11- Use Maven Wrapper, not system Maven: `./mvnw`.12- JDK: 17, 21, or 25 (CI uses 25 for most jobs, with some workflows pinned to 21; the Maven compiler release is 17).13- Node.js: 24+ for UI work (`js/apps/admin-ui/CONTRIBUTING.md`).14- PNPM workspace is managed from `js/`.1516## How to work efficiently171. Scope your change first (avoid broad refactors; keep unrelated files untouched).182. Prefer targeted Maven module builds/tests over full-repo runs (full runs can take hours).193. Mirror CI commands/profiles when possible to avoid local-vs-CI drift.204. For Java formatting checks, run Spotless from repo root.2122## High-value commands2324### Formatting / lint checks25- `./mvnw -Pdocs,distribution,operator spotless:check`26- `./mvnw -Pdocs,distribution,operator spotless:apply` (only when you intentionally want automatic formatting changes)2728### Fast focused Maven build/test pattern29- Build a focused module with required profile(s):30 - `./mvnw install -Pdistribution -DskipTests -DskipExamples -DskipTestsuite -DskipAdapters -DskipDocs -pl <module> -am`31- Run tests for the same focused module:32 - `./mvnw test -Pdistribution -DskipExamples -DskipTestsuite -DskipAdapters -DskipDocs -pl <module> -am`3334### Common full/large build references35- Build without tests: `./mvnw clean install -DskipTests`36- Build and test everything: `./mvnw clean install` (very slow)37- Build server distribution only: `./mvnw -pl quarkus/deployment,quarkus/dist -am -DskipTests clean install`3839### UI workflow (when changing `js/`)40- From `js/`: `pnpm install`41- Lint a specific package (example Admin UI): `pnpm -C apps/admin-ui lint`42- Build the full workspace: `pnpm build`4344## Testing strategy guidance45- Start with tests closest to changed modules.46- Use root CI helper for unit-test module selection when needed:47 - `.github/scripts/find-modules-with-unit-tests.sh`48- See `docs/tests-development.md` and `docs/tests.md` for running `testsuite/integration-arquillian` tests. Note `testsuite/DEPRECATED.md` - do not create new tests under `testsuite`.49- If integration tests are needed, they belong under `tests`; see `tests/docs/README.md`5051## Repository-specific expectations52- Every PR should map to a GitHub issue and keep a focused scope (`CONTRIBUTING.md`).53- Include docs/tests when behavior changes.54- Do not introduce new test frameworks or broad formatting/refactoring unrelated to the task.5556<!-- Review instructions from https://docs.github.com/en/copilot/tutorials/customize-code-review57 and https://dev.to/techgirl1908/how-i-taught-github-copilot-code-review-to-think-like-a-maintainer-3l2c58 It seems like the initial complaint is that it's overly verbose and hallucinates, rather than59 misses problems, so the instructions are to keep it concise and confident, rather than calling60 out specific things to check -->6162# General Code Review Standards6364## Review Philosophy6566* Only comment when you have HIGH CONFIDENCE (>85%) that an issue exists67* Be concise: one or two sentences per comment when possible68* The code should follow the Testing strategy guidance and other relevant parts of the preceding Copilot Cloud Agent Instructions69* Focus on actionable feedback, not observations70* When reviewing text, only comment on clarity issues if the text is genuinely confusing or could lead to errors.7172## Skip Low Value Feedback7374Do not comment on:7576* Formatting77* Minor naming suggestions78* Multiple issues in one comment79
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 3 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 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 |
