Add comprehensive GitHub Copilot configuration files for Three Rivers Bank#32
Draft
Copilot wants to merge 4 commits into
Draft
Add comprehensive GitHub Copilot configuration files for Three Rivers Bank#32Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
…, and prompts Co-authored-by: yortch <4576246+yortch@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Set up GitHub Copilot configuration files
Add comprehensive GitHub Copilot configuration files for Three Rivers Bank
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets up path-scoped Copilot instruction files, a custom code review agent, coding agent setup workflow, and reusable prompt skills tailored to the Spring Boot + React stack.
Instruction Files (
.github/instructions/)Auto-applied by Copilot via
applyTofrontmatter globs:java.instructions.md(**/*.java) — No wildcard imports, constructor DI, DTOs in API responses, SLF4J parameterized logging,@ControllerAdvice,@Transactionalat service layerreact.instructions.md(frontend/**/*.{jsx,js}) — Functional components only, React Query for server state, MUI components viatheme.js, React Router v6testing.instructions.md(**/*Test.java,**/*.spec.ts) — JUnit 5 AAA pattern withmethodName_should_X_when_scenarionaming, WireMock for BIAN API, Playwright multi-browser/viewportcode-review.instructions.md(**/*.{java,jsx,js,ts}) — Actionable checklist covering wildcard imports, circuit breaker enforcement, React Query usage, no hardcoded secrets, XSS/SQL injection, test coveragedocker.instructions.md(**/Dockerfile,docker/**) — Multi-stage builds,threeriversbank/{backend|frontend}:latestnaming, no secrets in imagesCode Review Agent (
.github/agents/code-reviewer.agent.md)GPT-4.1 agent with 🔴/🟡/🔵 severity tiers covering Java Spring Boot patterns, React/MUI standards, BIAN circuit breaker compliance, and security checks (hardcoded creds, SQL injection, XSS).
Copilot Setup Workflow (
.github/workflows/copilot-setup-steps.yml)Job named
copilot-setup-steps(required by Copilot coding agent spec) withcontents: readpermissions:mvn compile+mvn testnpm ci→npm run lint --if-presentPrompt Skills (
.github/prompts/)java-springboot.prompt.md— Spring Boot patterns with project-specific H2/Resilience4j/OpenFeign context and code examplesjava-junit.prompt.md— JUnit 5 + Mockito with@WebMvcTest,@DataJpaTest, and WireMock examplescode-review.prompt.md— Reusable prompt that triggers a structured review against the code-review instructions.github/copilot-instructions.mdis unchanged.Original prompt
Overview
Set up comprehensive GitHub Copilot configuration files to provide better context for Copilot across chat, code completions, code review, and the coding agent. This follows guidance from the GitHub blog on Copilot code review instructions, the awesome-copilot repo, and the project's specific tech stack (React/Vite frontend + Spring Boot/Java 17+ backend, Docker, Azure deployment).
Project Context
This is a full-stack credit card comparison platform for Three Rivers Bank:
com.threeriversbank/{controller,service,repository,model/{entity,dto},client,config}The repo already has:
.github/copilot-instructions.md— project-wide instructions (keep as-is, do not modify).github/prompts/— existing prompts directory.github/agents/— existing agents directory.github/workflows/deploy.yml— existing CI/CD workflowFiles to Create
1. Path-scoped instruction files in
.github/instructions/These use
applyTofrontmatter glob patterns so Copilot applies them automatically to the right files. Following the blog guidance on Copilot code review, each instruction file should have clear, actionable rules..github/instructions/java.instructions.md— Apply to**/*.javaimport java.util.*). Always use explicit imports for each class (e.g.,import java.util.List)private finalfields@Service,@Repository,@RestControllerstereotypes appropriatelyapplication.ymlover.properties@ConfigurationPropertiesfor type-safe configuration@ControllerAdvice@Valid,@NotNull,@Size) on DTOs@Serviceclasses; keep controllers thin@Transactionalon service methods at the most granular level.github/instructions/react.instructions.md— Apply to**/*.jsx,**/*.js(infrontend/)frontend/src/theme.jscomponents/{cards,common,layout}pages/directory.github/instructions/testing.instructions.md— Apply to**/*Test.java,**/*Tests.java,**/*.spec.tsmethodName_should_expectedBehavior_when_scenario@WebMvcTestfor controller tests,@DataJpaTestfor repository teststests/e2e/with fixtures intests/fixtures/.github/instructions/code-review.instructions.md— Apply to**/*.java,**/*.jsx,**/*.js,**/*.tsThis is the key file for Copilot code review. Following https://github.blog/ai-and-ml/unlocking-the-full-power-of-copilot-code-review-master-your-instructions-files — make rules specific and actionable:
@ControllerAdviceglobally)threeriversbank/{backend|frontend}.github/instructions/docker.instructions.md— Apply to**/Dockerfile,**/docker-compose*.yml,docker/**threeriversbank/{backend|frontend}:latest2. Code Review Agent in
.github/agents/.github/agents/code-reviewer.agent.mdCreate a custom code review agent speci...
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.