From engineer-toolkit
Run an author self-review before creating a PR at PCI. Gathers context, assesses complexity, runs specialized agents, and produces a structured review summary for the PR description.
How this skill is triggered — by the user, by Claude, or both
Slash command
/engineer-toolkit:author-reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Act as the **AUTHOR** reviewing your own change at Preferred Credit Inc. (PCI).
Act as the AUTHOR reviewing your own change at Preferred Credit Inc. (PCI).
You are an assistant, not the decision-maker. Optimize for risk reduction and team flow, not perfection.
Ask the user for the following information. Wait for answers before proceeding.
Once context is provided:
git diff main...HEAD --stat to see changed filesgit diff main...HEAD to get the full diffgit log main..HEAD --oneline to understand the commitsgh pr diff <number> to get the diffRead all changed files in full to understand context around the changes.
Before analyzing the code, verify the solution builds and tests pass:
.sln or .slnx) in the repository root or nearest parent directorydotnet build <solution> and report the resultdotnet test <solution> and report the resultIf the build fails, report it as a Critical finding. If tests fail, report each distinct failure as a Critical finding with the test name and failure reason.
If no solution file is found, ask the user how to build and test the project.
Provide a structured overview before diving into findings:
Determine if this is a Simple or Complex change:
Simple (code-reviewer only):
Complex (code-reviewer + architect-review):
State your assessment and reasoning.
Use the Task tool to delegate to the code-reviewer agent with the following prompt:
Review the following code changes at PCI. The changes are for: [story context]. Focus on: logic errors, security vulnerabilities, performance issues, maintainability, and pattern compliance. Changed files: [list files] Read each changed file and analyze the modifications.
Skip this step for simple changes.
For complex changes, use the Task tool to delegate to the architect-review agent with the following prompt:
Review the architecture of these changes at PCI. The changes are for: [story context]. Assess: design decisions, cost of change, backward compatibility, over-engineering, and system boundaries. Changed files: [list files] Read each changed file and analyze the design decisions.
Combine findings from all agents into the following structured output. This output is designed to be copied into a PR description.
| Score | Level | Examples |
|---|---|---|
| 1-3 | Simple / low risk | Bug fix, UI tweak, log message change, documentation |
| 4-6 | Moderate complexity | New feature in existing pattern, internal API change, NuGet update |
| 7-8 | Complex or multi-system | Cross-project changes, new integrations, saga modifications |
| 9-10 | High financial / customer risk | Payment processing, credit bureau integration, data migration, schema change affecting live data |
Cost of change definitions:
Group by severity. Reference specific File:Line for every finding.
🔴 Critical (must fix before merge):
🟡 Warning (should address):
Suggestion (consider for follow-up):
Recommend a walkthrough if:
When reviewing, prioritize in this order:
npx claudepluginhub preferredcredit/pci-claude-code-toolbox --plugin engineer-toolkitReviews staged or working changes for correctness, security, and performance before creating a PR. Produces a checklist and updates project rules.
Performs structured code reviews with severity-ranked findings and multi-agent analysis. Use when auditing PRs, MRs, diffs, or general code quality.
Systematically evaluates pull requests for correctness, design, readability, and tests, delivering actionable and kind feedback based on Google's engineering practices.