commit-pr

Guides committing, pushing, and opening pull requests with verified checks and conventional commits.

Updated Sep 14, 2026
One-click install
npx skills add https://github.com/pandejesal/drone-nav-sar --skill commit-pr-pandejesal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-pr
Source: https://github.com/pandejesal/drone-nav-sar/tree/main/.swarm/bundled-skills/commit-pr
Command: npx skills add https://github.com/pandejesal/drone-nav-sar --skill commit-pr-pandejesal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Landing a code change safely requires many small decisions — what to stage, which checks to run, how to write the commit message, where to push, and how to close out CI. This Skill provides a portable, project-agnostic protocol that walks through each step so nothing is skipped and no generated files or secrets slip into a commit. ## Core Features & Use Cases - Working-tree hygiene: Verifies branch state, reviews diffs, and blocks committing secrets, build output, or dependency directories. - Project check discovery: Finds the repo's own build, test, lint, and type-check commands from manifests and CI workflows instead of guessing. - Conventional commits and PRs: Writes <type>(<scope>): <summary> commit titles, fills PR templates, and auto-links issues via Closes #<number>. - Safe push and CI closeout: Uses --force-with-lease after rebases and requires green required checks before considering a PR done. - Use Case: After finishing a bug fix, ask the assistant to commit and open a PR — it will run the project's checks, write a conventional commit, push to the correct remote, and monitor CI until green. ## Quick Start Commit my current changes on a feature branch, run the project's checks, push, and open a pull request that closes the related issue.

Frequently Asked Questions about commit-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a conventional commit message?

Use the format `<type>(<scope>): <summary>` where type is one of feat, fix, perf, refactor, docs, test, build, ci, chore, or revert. Keep the title short and imperative, put detail in the body, and aim for one logical change per commit.

How do I find which checks to run before pushing code?

Look at the project's own configuration: package.json scripts, Makefile targets, pyproject.toml, Cargo.toml, or CI workflow files under .github/workflows. Run whatever build, test, lint, type-check, and format checks exist, pinned to the versions the project declares.

What should I do if a git push is rejected after rebasing?

Use `git push --force-with-lease` instead of a plain force push. It refuses to overwrite commits the remote gained since your last fetch, so it cannot silently clobber a teammate's work.

What files should never be committed to a repository?

Never commit generated build output, dependency directories like node_modules or vendor, local caches, or secrets such as .env files, credentials, and keys. If any are tracked or unignored, fix .gitignore instead of committing them.

What should a pull request body include?

Fill in the repo's PR template if one exists under .github. Otherwise include a Summary of what changed and why, a Test plan listing the checks you ran and their results, and a linking keyword like `Closes #<issue>` when the PR resolves an issue.

When is a pull request considered done?

A PR is done when its required CI checks are green and review feedback is addressed. If CI fails, read the logs, reproduce locally, fix the real cause, and push again — never merge over failing checks or disable a check to go green.