blockmatic/basilic-skills

w-commit

Review and commit the task's intended changes using repository conventions.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/blockmatic/basilic-skills --skill w-commit

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Invocation requests a commit. Inspect staged and unstaged changes and the authorized task scope before staging anything. Follow git publish.

  1. If creating a new branch, git fetch origin then git switch -c <name> --no-track origin/main first — never skip fetch, never a stale local main. Inspect the diff and distinguish task-owned changes from unrelated work, including pre-staged files. If the intended commit cannot be separated safely, clarify the file scope.
  2. Before staging: if behavior, commands, or conventions changed, matching MDX and nearest README must be in the diff; otherwise one line why not. Rely on commit hooks. Never the full pre-push suite.
  3. Stage explicit task-owned paths or hunks. Do not sweep unrelated or untracked work into the commit with a blanket add. Never git add -A. Never stage .env, credentials, or secrets.
  4. Write a Conventional Commit: lowercase type/scope, imperative summary of at most 60 characters, no period. Follow repository-specific scope conventions. Pass the message via a heredoc; commit with hooks enabled.
  5. Inspect the result and remaining working tree. Return commit ID and scope. A commit request alone does not authorize pushing.

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills