Commit and push LeetCode problem

VerifiedSafe

Automates committing and pushing a solved LeetCode problem. It formats code, stages all changes, creates a commit with message 'Problem <number>', and pushes to the remote repository. Useful for standardizing and speeding up the submission of LeetCode solutions.

Sby Skills Guide Bot
DevelopmentBeginner
506/2/2026
Claude Code
#leetcode#git#commit#push#automation

Recommended for

Our review

Automates formatting, committing, and pushing a solved LeetCode problem.

Strengths

  • Saves time by automating Git operations after solving
  • Ensures consistent code formatting with ruff
  • Standardized commit message with the problem number
  • Simple to invoke with a single argument

Limitations

  • Requires an already configured Git repository
  • Uses git add -A, which may include unrelated files
  • Only works for LeetCode problems, not flexible for other cases
When to use it

After completing a LeetCode solution in a dedicated repository.

When not to use it

For generic commits or when you need fine-grained control over staged files.

Security analysis

Safe
Quality score75/100

The skill runs code formatting, git add, commit, and push for a LeetCode problem. It operates only on the local repository and pushes to the preconfigured remote, with no destructive or data-exfiltrating actions.

No concerns found

Examples

Commit problem 42
commit 42
Commit problem 100
commit 100

name: commit description: Commit and push a solved LeetCode problem argument-hint: <number> user-invocable: true

Commit and push LeetCode problem $ARGUMENTS[0]

Instructions

  1. Run ruff format . to format all code.
  2. Stage all changes with git add -A.
  3. Commit with the message Problem $ARGUMENTS[0].
  4. Push with git push.
Related skills