dsh-plugin-commit-craft: Generating Conventional Commit Suggestions from Diffs

Foreword

When writing code or modifying configurations in DeepSeek Harness (DSH), agents or developers often need to first see the changes in the workspace, then draft a commit message that fits the team’s habits. Writing Conventional Commits by hand requires distinguishing the type, scope, and aligning with the actual diff, which is time-consuming and prone to missing file changes. Common practices are summarizing locally after viewing git diff yourself, or pasting snippets to a generic chat model—the latter lacks a fixed interface with the DSH toolchain and is not conducive to unified auditing.

Below is an introduction to the community plugin Commit Craft (thegabopacheco-sudo/dsh-plugin-commit-craft): It reads changes and diffs on the DSH side, the model infers and gives normalized commit message suggestions, marking the type and scope; it does not execute git commit. The maintainer is thegabopacheco-sudo, categorized as Model Reasoning in the SkillHub directory; the repository license is MIT (consistent with README and package.json), current package.json version is 0.1.0, runtime requirements Node >= 20.

What is it

Commit Craft is an MCP-style plugin attached to DSH (entry dist/server.mjs). It targets scenarios where there are existing staged or unstaged changes and Conventional Commit text is needed: it infers the appropriate type, scope, and body based on diff and changed files, outputting suggestions rather than automatic commits.

Compared to “just describing changes in chat,” the plugin binds with the Harness session via DSH-exposed tools like status and suggest, making it convenient to call repeatedly in a fixed workflow. Security-wise, it defaults to read-only; write operations require explicit confirmation (see below).

Core Features

According to the GitHub README, the plugin provides the following tools externally:

Tool Name Function (Original README Meaning)
status View status related to commit suggestions
suggest Suggest commit messages based on current changes

The Spanish summary in the README and directory introduction is consistent: Suggests conventional commit messages from the diff and changed files, classifying type and scope, without making a commit. Meaning: Starting from diff and changed files, classify type/scope according to Conventional Commits habits, without executing commit.

The package.json keywords include deepseek, deepseek-harness, dsh, dsh-plugin, mcp, commit-craft, indicating its positioning as an MCP plugin within the DSH ecosystem, not an independent CLI.

Installation and Activation

Installation follows the README; do not splice other owner/repo forms yourself.

  1. In the DSH GUI: DSH → Settings → Plugins, install github:thegabopacheco-sudo/dsh-plugin-commit-craft, and follow the prompts to allow script installation (postinstall will execute node scripts/postinstall.mjs).
  2. Command line (profile needs to be specified):
dsh plugin --profile <perfil> add github:thegabopacheco-sudo/dsh-plugin-commit-craft

After installation, the plugin loads with the current DSH process; before using, please confirm your local Node version meets >= 20 (see engines in package.json).

Typical Usage

The README does not provide step-by-step dialogue examples, but the tool breakdown is clear. You can call them in Harness in the following order (specific parameters depend on the plugin’s implementation of the MCP tool schema):

  1. After completing modifications in the workspace, call status via DSH to confirm the plugin can read status related to commits.
  2. Call suggest to get Conventional Commit suggestions based on diff and changed files (including classification like type, scope).
  3. Use the adopted text for local git commit; the plugin itself will not execute the commit for you.

If a read-only environment is needed, set the environment variable DSH_COMMIT_CRAFT_MODE=read-only to disable write-type actions (see “Security” section in README).

Security and Auditing

The security model stated in the README is as follows; it is recommended to align with the team before deployment:

  • Default read-only; write-related behaviors only occur when confirm:true and the user explicitly requests it.
  • Setting DSH_COMMIT_CRAFT_MODE=read-only can disable related write operations.
  • Whitelist and audit records are located at <DSH_HOME>\cache\commit-craft\audit.jsonl (path format consistent with README; on Linux and other environments, please replace DSH_HOME with the actual home directory variable).

The plugin runs with current DSH process permissions; accessible paths and git status depend on the host environment. Before installing, browse the GitHub repository source code and MIT license, and do not enable write capabilities on production repositories without review.

Suitable Scenarios and Notes

Suitable for:

  • Teams or individuals who have developed in DSH and want to turn “reading diff → drafting Conventional Commit” into a fixed tool call.
  • Workflows that require type/scope classification aligned with diff but want to manually confirm before commit.

Notes:

  • The output is model inference suggestions; manual verification is still required to ensure consistency with actual changes; the README explicitly states without making a commit.
  • The community directory SkillHub Plugin Page and GitHub are independent information sources, having no official affiliation with DeepSeek or Hypersphere; star counts and such statistics follow the site’s display (the GitHub stars in the lead-in are 0, not used as a quality assessment).
  • Issue feedback can point to the repository Issues: https://github.com/thegabopacheco-sudo/dsh-plugin-commit-craft/issues.

Conclusion

Commit Craft converges “generating Conventional Commit suggestions based on diff and changed files, distinguishing type and scope, and not automatically committing” into status / suggest tools within DSH, accompanied by read-only mode and audit.jsonl audit path description. If you are expanding your DSH plugin set, you can understand the categorization and introduction from the directory page, and check installation commands and security terms on GitHub:

  • Directory page: https://www.skillhub.cn/plugins/thegabopacheco-sudo/dsh-plugin-commit-craft
  • Repository: https://github.com/thegabopacheco-sudo/dsh-plugin-commit-craft
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye