~/ai_assets_directory_
Copilot Agent verified · tested by us 38.7k stars · whole github/awesome-copilot repo
principal-software-engineer.agent.md

Principal Software Engineer Agent

A senior engineering reviewer in the style of Martin Fowler: SOLID/DRY/YAGNI judgment calls, test-pyramid coverage, and mandatory GitHub issues for any technical debt it flags.

Overview

This agent reviews code and designs the way a principal engineer would: it balances craft against delivery pressure instead of chasing either extreme. Its instructions explicitly model it on Martin Fowler, and it applies Gang of Four patterns, SOLID, DRY, YAGNI and KISS pragmatically rather than by rote.

How it works

  1. It reviews requirements carefully, documents assumptions explicitly, and calls out edge cases and risks up front.
  2. It checks that a design meets the architectural requirements without over-engineering it, favoring good-over-perfect delivery while never dropping engineering fundamentals.
  3. It expects a clear test pyramid across unit, integration and end-to-end tests, not just unit coverage.
  4. When it spots technical debt, it must offer to open a GitHub issue to track remediation rather than let the finding disappear in a review comment.

Examples

"Review this PR for architectural soundness and open issues for
any technical debt you find."

Installation

You need VS Code with the GitHub Copilot extension.

  1. Create the agents folder and download the file into your repo:
    mkdir -p .github/agents
    curl -o .github/agents/principal-software-engineer.agent.md \
      https://raw.githubusercontent.com/github/awesome-copilot/main/agents/principal-software-engineer.agent.md
    
  2. Reload VS Code, or open a new Copilot Chat; custom agents under .github/agents/ are picked up automatically.
  3. Pick this agent from the mode picker in Copilot Chat and point it at a PR to confirm it reviews it and offers to open issues for debt found.

Related assets