v1.6.1

Code and Release Skills

Last updated


What the code review, commit, Go test, vulnerability scan and versioning skills do, and what each needs.

code-reviewer


Reviews a project and writes a report only when it finds something real.
  • Go is parsed with a go/ast helper, Python with ast, and JS/TS with a structural scan plus the project's own eslint; a missing toolchain falls back to string scanning and the report says so
  • Every issue is re-checked against the source before it enters the report, and unconfirmed ones are dropped
  • Code is checked against the CLAUDE.md / AGENTS.md files in its directory and parents, quoting the rule it breaks
  • No findings means no directory and no file

Needs Python 3.10+; Go 1.21+ and the project's eslint are optional.

commit-generate


Writes an English and Traditional Chinese commit message from git diff --cached only, and stops when nothing is staged.
  • A change is marked breaking only when outside users lose the old usage with no compatibility path
  • Suggests splitting the commit only when each topic builds on its own
  • Flags same-module files that were left unstaged

Needs Git and a Git repository.

go-test-generate


Generates external <pkg>_test tests next to the source files of one required folder, runs them, and fixes them until they pass.
  • Skips files with staged, unstaged, or untracked changes
  • Up to 3 repair attempts; a confirmed source bug gets a minimal fix marked SOURCE MODIFIED
  • Reports total and per-function coverage for the folder without touching the working tree

go-vuln-scan


Runs Semgrep, gosec, govulncheck, Trivy, and Gitleaks, all in SARIF, and merges them into one deduplicated report.md.
  • Scans isolated copies of Git-tracked files only, so untracked .env files are never read
  • Every finding is traced to its data source and judged High, Medium, Low, false positive, or unconfirmed
  • A baseline matched by code, not line numbers, blocks PRs only on new findings

Needs Python 3.9+, Git, the Go toolchain, Homebrew, and network access; ZAP and SonarQube are optional.

version-generate


Builds a changelog from the net diff between the latest remote tag and HEAD, and picks the next SemVer version.
  • Changes added then removed never appear
  • A breaking entry counts only if the net diff is still incompatible, and it must carry migration guidance
  • Each entry links its PR, author, and commits

Needs Git with user.name and user.email set; gh is optional.