Skip to content
Back to skills

Conventions

ASecurity

git の commit-msg hook から呼ぶ、コミットメッセージの書式の検査器。規約の正本は philtzjp/.github の conventions.yml。hook が「書式の検査器がありません」と止めたとき、検査の結果に納得できないとき、hook を設定するときに使う。書式そのものの書き方は github スキルに従う。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsnodegit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add philtzjp/skills --skill conventions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conventions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Conventions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/philtzjp-conventions/badge)](https://www.skillsdirectory.com/skills/philtzjp-conventions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: conventions
description: git の commit-msg hook から呼ぶ、コミットメッセージの書式の検査器。規約の正本は philtzjp/.github の conventions.yml。hook が「書式の検査器がありません」と止めたとき、検査の結果に納得できないとき、hook を設定するときに使う。書式そのものの書き方は github スキルに従う。
---

# conventions

コミットメッセージを、Philtz の規約で検査する CLI です。各リポジトリの `.vite-hooks/commit-msg` が呼びます。

このスキルの中身は、philtzjp/organizer-bot の `packages/conventions` と、philtzjp/.github の `conventions.yml` から philtz-organizer-bot が写しています。ここを直接編集しないでください。次に写したときに上書きされます。

## 中身

- `cli.mjs`: 検査器。依存がなく、Node 22 以上だけで動く
- `conventions.yml`: 規約。作業中のリポジトリに `.github/conventions.yml` があれば、そちらを優先する

## hook から呼ぶ

```sh
#!/bin/sh
cli=.agents/skills/conventions/cli.mjs
if [ ! -f "$cli" ]; then
    echo "書式の検査器がありません。AGENTS.md の手順でスキルを入れてください"
    exit 1
fi
exec node "$cli" commit-msg "$1"
```

検査器がないときに黙って通すと、検査が効いているように見えて効いていない状態になります。止めて、スキルを入れる手順を出してください。

## 検査に落ちたとき

- 出たメッセージに従ってコミットメッセージを直す。書き方は github スキルに従う。
- `--no-verify` で hook を迂回しない。
- 規約がおかしいと思ったら、philtzjp/.github の `conventions.yml` を直す Issue を起票する。このスキルや hook に規則を書き足さない。

Files in this skill

  • SKILL.md1.8 KB
  • conventions.yml7.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.