Skip to content
cccskills
FreePublished on GitHub

commit

Handle git commits with auto-staging, targeted pre-commit formatting, and Conventional Commit messages. Use when the user says commit it, commit this, commit changes, save my changes, or similar git commit requests.

The English summary is being prepared. Showing the original description.

OriginProtocol/origin-dollar154 stars(GitHub 154 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md3.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Commit

Automate the full commit workflow: inspect changes, format only affected files, stage tracked and untracked files individually, generate a Conventional Commit message, and create the commit. The user asked for a commit because they want the commit created, not a plan.

Workflow

1. Check git state

Run git status.

Stop and tell the user if the repo is mid-merge, rebase, or cherry-pick. If there are no tracked or untracked changes, say Nothing to commit and stop.

2. Inspect changes

Run these in parallel:

  • git diff
  • git diff --cached
  • git status --porcelain
  • git log --oneline -5

Untracked files shown as ?? are often part of the current task and should normally be included.

3. Run targeted formatting

Collect candidate files with:

  • git diff --name-only
  • git diff --name-only --cached
  • git ls-files --others --exclude-standard

Only run formatters for changed files.

If any .sol files under contracts/tests/ changed:

forge fmt <those-files>

If any .sol files not under contracts/tests/ changed:

npx prettier --write --plugin=prettier-plugin-solidity <those-files>

If files under src/js/ or JS config files changed:

yarn lint --fix
yarn prettier --write <changed-js-files>

Do not format the whole repository. If formatting fails and cannot be auto-fixed, report the issue and stop unless the user explicitly wants to proceed.

4. Stage files

Stage files individually. Do not use git add -A or git add ..

Include:

  • modified tracked files
  • new untracked files
  • files updated by formatters

Skip and warn on likely secrets:

  • .env and .env.*
  • names containing credential or secret
  • *.pem, *.p12, *.pfx
  • *.key private keys

5. Generate commit message

Base the message on the staged diff from git diff --cached.

Format:

type(scope): description

Types:

  • feat
  • fix
  • refactor
  • perf
  • test
  • docs
  • chore

Suggested scopes in this repo:

  • lido
  • etherfi
  • ethena
  • origin
  • arm
  • deploy
  • js
  • cap
  • zapper
  • market
  • pendle
  • skill

If the change spans multiple unrelated areas, omit the scope. Use imperative mood, lowercase, no trailing period, and keep the subject under 72 characters.

6. Commit

Always run git commit unless an earlier safety stop applied. Do not stop after staging and do not ask for confirmation if the user already requested a commit.

Check the original user request for:

  • whether a co-author trailer was requested
  • whether a push was requested

Create the commit with git commit -m .... Afterward run git status to confirm success and report:

Committed <short-hash>: type(scope): description

7. Push only if requested

If the user explicitly asked to push, run git push or git push -u origin <branch> when needed. Otherwise do not push and do not ask.

Safety rules

  • Never amend unless the user explicitly asks
  • Never force push
  • Never use --no-verify
  • If hooks fail, fix the issue, re-stage, and create a new commit
  • If there is nothing to commit, stop

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Generate Foundry fork tests for contracts that need real on-chain integration coverage. Use when the user asks for fork tests, mainnet or chain fork coverage, or integration tests against live protocol state.

The English summary is being prepared. Showing the original description.

OriginProtocol/origin-dollar154Updated Oct 26, 2026

Reorganize Foundry test files (*.t.sol) for readability and consistency without changing semantics. Use when the user asks to organize, reorder, clean up, tidy, or reformat a test file's structure.

The English summary is being prepared. Showing the original description.

OriginProtocol/origin-dollar154Updated Oct 26, 2026

Generate Foundry smoke tests that validate deployment health using DeployManager/Resolver against real on-chain state with pending governance applied. Use when the user asks for smoke tests, deployment verification tests, or post-deploy health checks.

The English summary is being prepared. Showing the original description.

OriginProtocol/origin-dollar154Updated Oct 26, 2026

Develop, modify, review, and maintain standalone Talos actions in contracts/tasks/actions, including chain guardrails, contract bindings, transaction safety, schedules, action catalogues, and Talos documentation. Use when adding an action, changing an action’s behavior or parameters, updating a Talos schedule, or maintaining action runtime support.

The English summary is being prepared. Showing the original description.

OriginProtocol/origin-dollar154Updated Oct 26, 2026

Generate Foundry unit tests for a contract using this repository's conventions, structure, and naming. Use when the user asks for unit tests, Foundry tests, concrete tests, or fuzz tests.

The English summary is being prepared. Showing the original description.

OriginProtocol/origin-dollar154Updated Oct 26, 2026

Verifies a POST-EXECUTION mainnet (or other network) smart-contract deployment PR for this repo: confirms every deployed contract is listed in the PR description, that the on-chain verified source (and its dependencies) matches the codebase via `sol2uml diff`, that constructor args and the initialize tx match the Foundry script, and that the on-chain governance proposal matches the script's actions. Use when asked to review, verify, audit, or sign off on an executed deployment PR. Invoke explicitly with /verify-deployment-pr <PR#>.

The English summary is being prepared. Showing the original description.

OriginProtocol/origin-dollar154Updated Oct 26, 2026

See all skills by OriginProtocol

Report a problem with this skill