跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

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 的全部技能

报告此技能的问题