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.
npx claudepluginhub preferredcredit/pci-claude-code-toolbox --plugin engineer-toolkitThis skill is limited to using the following tools:
Act as the **AUTHOR** reviewing your own change at Preferred Credit Inc. (PCI).
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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: