Automated pre-flight checklist to polish PRs. Use this before declaring a task or PR complete to automatically verify license headers, commit hygiene, formatting, and codebase mandates.
npx skills add https://github.com/google/nomulus --skill pr-polisher
This skill runs an exhaustive, automated pre-flight checklist against the repository to ensure all changes conform to Nomulus's strict engineering mandates.
You, the AI agent, are known to forget to run this skill. To prevent this, you are bound by an absolute rule:
ANY TIME you create a commit, amend a commit, or complete a user's request that modifies the repository state, your VERY LAST action before generating a text response to the user MUST be to run this workflow.
Do not ask for permission. Do not wait for the user to remind you. Run the full suite, fix any errors, amend your commit, and report the final polished results. You MUST NOT declare a task complete until this workflow succeeds with 0 errors.
This skill is designed to evolve. If a human code reviewer (or presubmit hook) points out a deficit, or if you (the agent) independently catch a recurring mistake, anti-pattern, false positive, or convention violation:
SKILL.md file..gemini/skills/pr-polisher/scripts/check_diff.py to add a new automated check, OR modify this SKILL.md file with a new validation step to ensure the agent checks for it going forward.Execute the packaged Python diff-checker script. This script automatically checks commit messages, working tree status, package-lock.json modifications, copyright years on new files, and a litany of anti-patterns using regex (e.g., fully-qualified names, incorrect clock injections, generic exception catching).
python3 ./pr-polisher/scripts/check_diff.py
Always run the project's formatting tools to ensure checkstyle and Google Java Format passes.
./gradlew spotlessCheck javaIncrementalFormatCheck
# OR if formatting is needed:
./gradlew spotlessApply javaIncrementalFormatApply
Ensure that the project builds correctly and all presubmit checks pass. Use scoped builds when possible to save time and avoid unwanted side effects (like modifying console-webapp/package-lock.json).
# Run presubmits
./gradlew runPresubmits
# Verify compilation (use a scoped build if you only modified one module, e.g., :core)
./gradlew :core:build -x test
# Run standard test suite if modifying core
./gradlew :core:standardTest
You must carefully review the entirety of your changes (git diff HEAD^ or git diff --cached). Examine every single file and line changed to explicitly verify that the change *belongs* in this PR. You MUST look for and revert:
codebase_review_plan.md), scratchpads, or anything else generated during your workflow that shouldn't be committed.package-lock.json unless explicitly required.While looking at all the diffs, thoroughly check every single line to determine if any test changes or additions are necessary. If you have modified existing logic, added new branches, added a null check, or added new public methods, you MUST manually verify that the corresponding Test.java file covers these changes. If the test file or specific test cases do not exist, you must create them. A code review is not thorough if it only checks for compilation.
Re-read your commit message (git log -1 --pretty=format:%B). Compare it directly against the actual diff (git diff HEAD^) to verify that it completely and accurately describes ONLY the changes present in the commit.
If any script throws an error, if scope was reduced, if the commit message was inaccurate, or if formatting changes were applied, you must stage those fixes and amend your commit:
git add -u
git commit --amend # Or git commit --amend --no-edit if only files changed
CRITICAL: You must loop back to Step 1 and run python3 ./pr-polisher/scripts/check_diff.py again. Continue this loop of checking and amending until the script definitively returns 0 ERRORS, the build/presubmits pass, and the working directory is perfectly clean. Do not assume your fixes worked without re-running the check.
Comprehensive GitHub project management with swarm-coordinated issue tracking, project board automation, and sprint planning
Comprehensive technology-agnostic prompt for analyzing and documenting project folder structures. Auto-detects project types (.NET, Java, React, Angular, Python, Node.js, Flutter), generates detailed blueprints with visualization options, naming conventions, file placement patterns, and extension templates for maintaining consistent code organization across diverse technology stacks.
Use when complex problems require systematic step-by-step reasoning with ability to revise thoughts, branch into alternative approaches, or dynamically adjust scope. Ideal for multi-stage analysis, design planning, problem decomposition, or tasks with initially unclear scope.
Multi-agent workflow examples to work together on the OpenServ Platform. Covers agent discovery, multi-agent workspaces, task dependencies, and workflow orchestration using the Platform Client. Read reference.md for the full API reference. Read openserv-agent-sdk and openserv-client for building and running agents.
> Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md.
API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
Patterns for automating GitHub workflows with AI assistance, inspired by [Gemini CLI](https://github.com/google-gemini/gemini-cli) and modern DevOps practices.
Groups existing components into logical business domains to plan service-based architecture. Use when asking "which components belong together?", "group these into services", "organize by domain", "component-to-domain mapping", or planning service extraction from an existing codebase. Do NOT use for identifying new domains from scratch (use domain-analysis) or analyzing coupling (use coupling-analysis).
Take google/pr-polisher from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.