npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

ai-commit-wizard-expand

v8.8.8

Published

支持多种ai模型自动、手动生成 Git 提交信息生成工具,让团队提交更规范、更高效

Readme

🎯 Ai Commit Wizard expand

声明: 在 Ai Commit Wizard 基础上修改而来

🚀 支持多种ai模型自动、手动生成 Git 提交信息生成工具,让团队提交更规范、更高效

npm version npm downloads GitHub license Node Version

✨ 功能演示

📋 目录

🌟 背景

在团队协作中,规范的提交信息对于代码审查、版本追踪和自动化发布至关重要。Ai Commit Wizard 基于 Angular Commit Convention 设计,集成了 AI 辅助功能,旨在:

  • 📝 规范统一: 确保团队提交信息风格一致
  • 🤖 智能辅助: 集成 AI 分析,自动生成规范提交信息
  • 工程效率: 简化提交流程,提高开发效率
  • 🔍 可追溯性: 便于代码 review 和版本追踪

🛠️ 安装

在使用 Ai Commit Wizard 之前,请确保你的计算机上已经安装了 Node.jsNPM。然后通过以下命令安装该工具:

npm install ai-commit-wizard -g

🚀 使用说明

安装完成后,你可以通过命令行启动提交向导。以下是详细的使用步骤:

启动提交向导

在你的项目根目录下,打开终端并输入以下命令启动提交向导:

git cw

选择提交类型

启动后,系统会提示你选择提交类型。使用键盘的方向键上下移动选择合适的类型,然后按回车键确认。常见的提交类型包括:

  • feat: 新功能
  • fix: 修复 bug
  • docs: 文档变更
  • style: 代码格式(不影响功能)
  • refactor: 代码重构
  • perf: 性能优化
  • test: 增加测试
  • build: 构建
  • chore: 构建过程或辅助工具的变动
  • ci: 持续集成
  • merge: 合并分支
  • revert: 回退
  • upd: 更新

输入修改范围

接下来,系统会提示你输入修改的范围。这是一个可选项,你可以描述此次提交影响的代码模块或功能。如果不需要,可以直接按回车键跳过。

输入简短描述

然后,输入对本次提交的简短描述。这是一个必填项,描述应简洁明了,概括本次提交的主要内容。输入完成后按回车键确认。

添加文档链接

系统会询问你是否需要添加相关文档的链接。如果选择“是”,请在接下来的提示中输入有效的 URL 地址(以 http://https:// 开头)。如果不需要,可以选择“否”。

⚙️ 高级配置

OpenAI 配置(你可以选择使用openai、deepseek、字节等系列模型)

在项目根目录或用户主目录创建 .commit-wizard.json:

{
  "openai": {
    "apiKey": "your_api_key",
    "baseURL": "https://api.openai.com/v1",
    "model": "gpt-3.5-turbo",
    "temperature": 0.7,
    "maxTokens": 150,
    "exclude": ["node_modules", "dist", "build", ".git"]
  }
}

配置文件查找顺序:

  1. 命令行指定的路径 (-c 选项)
  2. 当前工作目录
  3. 用户主目录

📖 API 文档

CLI 选项

commit-wizard [options]

选项:
  -a, --ai            启用 AI 辅助生成
  -d, --debug         启用调试模式
  -c, --config <path> 指定配置文件路径
  -h, --help          显示帮助信息
  -v, --version       显示版本信息

📚 示例

以下是一个使用 Ai Commit Wizard 的示例:

  1. 确保所有更改的文件已被添加到暂存区:

    git add .
  2. 启动工具:

    git cw
    欢迎使用提交向导,请根据提示完成提交信息的填写。
     ? 请选择提交类型(使用方向键选择或输入关键字搜索): (Use
     arrow keys or type to search)
     ❯ feat: 新功能
       fix: Bug修复
       init: 初始化
       docs: 文档变更
       style: 代码风格(不影响功能,例如空格、分号等格式修正)
       refactor: 代码重构(不包括 bug 修复或新功能)
       perf: 性能优化
       test: 增加测试
       revert: 回退
       build: 打包构建
     (Move up and down to reveal more choices)
  3. 选择提交类型:feat

  4. 输入修改范围:user-auth

  5. 输入简短描述:添加用户登录功能

  6. 是否添加文档链接:

  7. 输入文档地址:https://example.com/docs/user-auth

  8. 是否直接推送到远程仓库:

完成后,工具会自动生成提交信息并执行 git commit 命令,并推送到远程仓库。