You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shared/pr-code-review-config.md already exists and provides cache-memory, GitHub PR tools (pull_requests, repos toolsets), and create-pull-request-review-comment / submit-pull-request-review safe-outputs. However, only 3 workflows (grumpy-reviewer, pr-nitpick-reviewer, security-review) currently import it. At least 4 more PR-triggered code review workflows independently re-define the same tools and safe-output patterns rather than importing this shared component.
Current Usage
Workflows that already import shared/pr-code-review-config.md:
✅ grumpy-reviewer.md
✅ pr-nitpick-reviewer.md
✅ security-review.md
Workflows that perform PR code review but do not import it:
test-quality-sentinel.md — reviews test quality in PRs; defines git diff:*, git log:*, github:, submit-pull-request-review inline
Proposed Enhancement
Extend shared/pr-code-review-config.md with a brief section documenting the submit-pull-request-review pattern (already present) and ensure the following workflows adopt it:
File: .github/workflows/shared/pr-code-review-config.md (existing — extend, not replace)
# In a PR review workflowimports:
- shared/github-guard-policy.md # already in some
- shared/pr-code-review-config.md # add this
- shared/reporting.md
Impact
Workflows to migrate: 4 additional workflows
Lines saved: ~8-12 per workflow, ~32-48 total
Consistency benefit: All PR review agents will consistently use cache-memory to avoid repeating comments, have access to the same PR toolsets, and submit reviews in a unified format
Implementation Plan
Review ci-doctor.md — identify inline config that duplicates pr-code-review-config and replace with import
Review approach-validator.md — align its tool/safe-output config with shared component, add import
Review test-quality-sentinel.md — replace inline submit-pull-request-review + git tools with import of both shared/pr-code-review-config.md and shared/git-bash-tools.md
Consider adding git-bash-tools.md as a nested import within pr-code-review-config.md if git access is needed by all PR review workflows
Run make recompile and verify all lock files regenerate cleanly
Test at least one PR review workflow manually
Related Analysis
This recommendation comes from the Workflow Skill Extractor analysis run on 2026-04-09. See also issue #25450 (shared/git-bash-tools.md) — test-quality-sentinel.md could benefit from both.
Skill Overview
shared/pr-code-review-config.mdalready exists and provides cache-memory, GitHub PR tools (pull_requests,repostoolsets), andcreate-pull-request-review-comment/submit-pull-request-reviewsafe-outputs. However, only 3 workflows (grumpy-reviewer,pr-nitpick-reviewer,security-review) currently import it. At least 4 more PR-triggered code review workflows independently re-define the same tools and safe-output patterns rather than importing this shared component.Current Usage
Workflows that already import
shared/pr-code-review-config.md:grumpy-reviewer.mdpr-nitpick-reviewer.mdsecurity-review.mdWorkflows that perform PR code review but do not import it:
ci-doctor.md— posts PR check diagnoses viaadd-comment, usescache-memory: true,github:toolsdesign-decision-gate.md— reviews PR diffs for ADR compliance; has nearly-identicalgithub:,bash:tool blockapproach-validator.md— validates PR approaches, hasgithub:tools, posts review commentstest-quality-sentinel.md— reviews test quality in PRs; definesgit diff:*,git log:*,github:,submit-pull-request-reviewinlineProposed Enhancement
Extend
shared/pr-code-review-config.mdwith a brief section documenting thesubmit-pull-request-reviewpattern (already present) and ensure the following workflows adopt it:File:
.github/workflows/shared/pr-code-review-config.md(existing — extend, not replace)The shared component already provides:
Usage Example:
Impact
Implementation Plan
ci-doctor.md— identify inline config that duplicatespr-code-review-configand replace with importdesign-decision-gate.md— remove duplicatedgithub: toolsets: [pull_requests, repos]+ add importapproach-validator.md— align its tool/safe-output config with shared component, add importtest-quality-sentinel.md— replace inlinesubmit-pull-request-review+ git tools with import of bothshared/pr-code-review-config.mdandshared/git-bash-tools.mdgit-bash-tools.mdas a nested import withinpr-code-review-config.mdif git access is needed by all PR review workflowsmake recompileand verify all lock files regenerate cleanlyRelated Analysis
This recommendation comes from the Workflow Skill Extractor analysis run on 2026-04-09. See also issue #25450 (shared/git-bash-tools.md) —
test-quality-sentinel.mdcould benefit from both.