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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ac-checker

v1.0.0

Published

A Git commit hook tool for checking if commit content meets Jira Acceptance Criteria using Chinese LLMs

Downloads

14

Readme

AC Checker

一个配合 husky 使用的 git 提交检测工具,用于检查提交内容是否符合 Jira 卡片的验收标准(AC),支持大模型智能检测。

功能特点

  • 检测 git commit message 是否符合自定义格式(默认:feat(#jira-卡号)feature(#jira-卡号)
  • 自动从 Jira 获取对应卡片的验收标准(AC)
  • 使用大模型(DeepSeek/豆包/通义千问)智能检测提交内容是否符合验收标准
  • 在控制台输出详细的检测结果和分析

安装

在项目中安装

# 使用 pnpm
pnpm add ac-checker -D

# 使用 npm
npm install ac-checker --save-dev

# 使用 yarn
yarn add ac-checker --dev

全局安装

# 使用 pnpm
pnpm add ac-checker -g

# 使用 npm
npm install ac-checker -g

# 使用 yarn
yarn add ac-checker -g

配置

1. 复制配置文件示例(第三方项目中)

在使用 ac-checker 的项目中,你需要先创建配置文件:

# 从包中复制配置文件示例
cp node_modules/ac-checker/ac-checker.config.json.example ac-checker.config.json

# 或者手动创建
cat > ac-checker.config.json << 'EOF'
{
  "jira": {
    "baseUrl": "https://your-jira-instance.atlassian.net",
    "cookie": "JSESSIONID=3462D9E4E1723AEB530063809FC58FB1"
  },
  "ai": {
    "baseUrl": "https://api.siliconflow.cn/v1",
    "apiKey": "your-api-key",
    "model": "Qwen/Qwen3-8B", // 根据提供商选择合适的模型
    "temperature": 0.3
  },
  "commit": {
    "triggerTypes": ["feat", "feature"] // 自定义触发 AC 检测的提交类型
  }
}
EOF

使用方法

当你执行 git commit 命令时,如果:

  1. 项目中存在 ac-checker.config.json 配置文件
  2. commit message 符合配置的触发格式

工具会自动:

  1. 从 Jira 获取对应卡片的验收标准
  2. 获取本次提交的修改内容
  3. 使用大模型智能分析提交内容是否符合验收标准
  4. 在控制台输出详细的检测结果

如果项目中没有 ac-checker.config.json 配置文件,工具会自动跳过检测,不会影响提交流程。

示例

git commit -m "feature(#DFIQ-1110) 实现用户登录功能"