本文へ移動
cccskills
無料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.

日本語の概要は準備中です。原文の説明を表示しています。

OriginProtocol/origin-dollarスター 154(GitHub 154 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

fork-test

無料

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.

日本語の概要は準備中です。原文の説明を表示しています。

OriginProtocol/origin-dollar1542026年10月26日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

OriginProtocol/origin-dollar1542026年10月26日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

OriginProtocol/origin-dollar1542026年10月26日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

OriginProtocol/origin-dollar1542026年10月26日 更新

unit-test

無料

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.

日本語の概要は準備中です。原文の説明を表示しています。

OriginProtocol/origin-dollar1542026年10月26日 更新

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#>.

日本語の概要は準備中です。原文の説明を表示しています。

OriginProtocol/origin-dollar1542026年10月26日 更新

OriginProtocol のスキルをすべて見る

このスキルの問題を報告する