agentsclimarketplace

Contributor

Skill Zarl-prog/Smart-git-commit/skills/smart-git-commit/contributor

Stop writing "fix stuff". AI agent skill for gold-standard git commits across Claude Code, Cursor, Codex & Windsurf

Install
npx -y skills add Zarl-prog/Smart-git-commit --skill contributor

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use this skill when contributing to ANY open source repo or team codebase — forking, branching, committing, opening PRs, or responding to review comments. Triggers on: "open a PR", "contribute to", "fork this repo", "submit my changes", "respond to review", "address feedback", "my PR got a comment", "prepare contribution", "make my PR better", "ready to submit". Produces PRs that look professional, get reviewed faster, and get merged. Handles the full contributor lifecycle from fork to merge.

SKILL.md

5.6 KB, as published. Nobody here has run it

Smart Git Commit — Contributor Skill

Extends the base skill with a full contributor workflow. Use this when contributing to any open source repo. Follow every phase in order.

<!-- line-limit: 400 -->

Phase 0: Fork and Sync Check

Run the fork sync checker:

bash contributor/scripts/fork-check.sh

Checks performed:

  • Is this a fork? (git remote -v shows both origin and upstream)
  • Is the fork up to date with upstream main?
    • git fetch upstream
    • git log HEAD..upstream/main --oneline
  • If behind: rebase before doing anything else
    • git rebase upstream/main
  • If no upstream set: asks for the original repo URL
    • git remote add upstream <url>

Output: SYNCED or list of commits the contributor is behind.


Phase 1: Branch Naming

Run the branch name enforcer:

bash contributor/scripts/branch-name.sh

Never contribute from main or master.

Enforced pattern:

<type>/<issue-number>-<short-description>

Examples:

  • feat/234-add-oauth-login
  • fix/189-resolve-token-expiry
  • docs/301-update-contributing-guide
  • chore/445-upgrade-axios

If on the wrong branch: creates a correctly named one automatically:

git checkout -b <correct-name>

Phase 2: Commit Quality

Reuse the existing SKILL.md phases 1–7 for every commit.

Every commit uses the 5-part format:

CONTEXT / CHANGE / WHY / IMPACT / footers

Read skills/smart-git-commit/SKILL.md Phase 5 for full rules.

Remember: Maintainers judge contribution quality by commit quality. A structured commit = trusted contributor, faster review.


Phase 3: PR Readiness Check

Run the readiness checker:

bash contributor/scripts/pr-readiness.sh

Checklist (hard stops marked with , warnings marked with ):

CheckType
✗ Tests pass (run the repo's test suite)Hard stop
✗ No secrets in diff (reuse scan-secrets.sh)Hard stop
✗ Not targeting main directly (must be feature branch)Hard stop
✗ Fork is synced with upstream (no merge conflicts)Hard stop
⚠ CONTRIBUTING.md rules followedWarning
⚠ Related issue linkedWarning
⚠ Docs updated if behavior changedWarning
⚠ Screenshots added if UI changedWarning
⚠ Breaking change documentedWarning

Output: READY or list of blocking items with fix instructions.


Phase 4: PR Title Construction

Read contributor/templates/pr-title.md for the complete guide.

Formula:

<type>(<scope>): <imperative summary under 72 chars>

Same rules as commit subject line — imperative mood, no period.

The PR title IS the merge commit message on most repos. It must make sense in a CHANGELOG.

GoodBad
feat(auth): add Google OAuth login with refresh token rotationAdded oauth stuff and fixed some things
fix(api): handle null response on connection timeoutfixed a bug

Phase 5: PR Body Construction

Read contributor/templates/pr-body-full.md for the complete template.

Build a PR body with these exact sections:

SectionContent
What changed and whyPaste CHANGE and WHY from commit messages
ContextPaste CONTEXT from commit messages
Type of changeCheckboxes for bug fix, feature, breaking, docs, perf, refactor
How to testNumbered steps a maintainer can follow to verify
ScreenshotsBefore/after if UI changed
Related issuesCloses #N or Refs #N
ChecklistTests, secrets, docs, CONTRIBUTING, breaking changes
Notes for maintainerTrade-offs, follow-up work, things to flag

Phase 6: Create the PR

  1. Read contributor/templates/pr-body-full.md to build the body
  2. Run the readiness check: bash contributor/scripts/pr-readiness.sh
  3. If READY:
gh pr create \
  --title "<phase 4 title>" \
  --body "<phase 5 body>" \
  --draft

Always draft first — never open a ready-for-review PR without telling the user and getting confirmation.

After creation: show the PR URL and say "mark as ready when you've done a final self-review."


Phase 7: Responding to Review Comments

Triggers: "my PR got a comment", "respond to review", "address feedback", "maintainer said..."

Run the review response helper:

bash contributor/scripts/review-response.sh

Response Rules

  1. Always thank the reviewer by name first (one line, genuine)
  2. For each comment: acknowledgeexplain your thinkingshow the fix
  3. Never argue, never get defensive
  4. If you disagree: explain your reasoning once, clearly, then defer
  5. After fixing: push new commits, resolve conversations, post summary

Response Format

Read contributor/templates/review-response.md for the template.

After All Fixes Are Addressed

git add <fixed files>
git commit  # Use 5-part format with type "fix" or "refactor"
git push origin <branch>
gh pr comment --body "All review comments addressed in <commit hash>"

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.