pre-pr-review

Solid

Review pass before opening a pull request in this repository. Runs local CI gates and the repo-reviewer subagent on the full branch diff, iterates until the reviewer approves, and records the verdict in the PR description. Use whenever you are about to create a PR.

Code & Development 257 stars 29 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
80
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Pre-PR review This repository expects an approved review BEFORE any pull request is created. The reviewer is the `repo-reviewer` subagent, which carries the repository's architecture map and hard rules. Nothing in CI enforces this: the check that used to fail a PR whose description carried no approved report is gone, so the review is a convention the author keeps, not a gate that keeps them. ## Workflow 1. **Sync and scope the diff** ```bash git fetch origin main git diff --stat origin/main...HEAD ``` If the branch has no commits ahead of `origin/main`, stop: there is nothing to review. 2. **Run the local gates first** (cheap failures should never reach the reviewer): ```bash ./gradlew detekt spotlessCheck ``` If `app/src/main/res/values*/strings.xml` changed, also run the key-parity check from `.github/workflows/i18n-check.yml` (every source key must exist in every locale file). A full Gradle build may be impossible on-device (x86_64 aapt2 on an arm64 device); that is expected — CI compiles. Fix everything that can run locally. 3. **Invoke the reviewer** with the task tool, subagent type `repo-reviewer`. Prompt it with: ``` このブランチ(<branch name>、base: origin/main)のPR前レビューをお願いします。 変更概要: <one or two sentences describing the change and why> ``` The subagent reviews `git diff origin/main...HEAD` itself; do not paste the whole diff into the prompt. 4. **Handle the verdict** - `REQUEST_CHANGES`: fix every ブロッカー...

Details

Author
yuga-hashimoto
Repository
yuga-hashimoto/and-code
Created
4 months ago
Last Updated
3 days ago
Language
Kotlin
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category