← 返回 Skills 市场
Flyai Commit Lint
作者
dingtom336-gif
· GitHub ↗
· v1.0.0
· MIT-0
95
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install flyai-commit-lint
功能描述
Enforce conventional commit messages with semantic validation, scope checking, and automated fix suggestions for git workflows.
使用说明 (SKILL.md)
FlyAI Commit Lint
Enforce conventional commit messages across your team with semantic validation, scope verification, and automated fix suggestions.
When to use
Activate this skill when:
- A user runs git commit and the message does not follow conventional commit format
- A user asks to review or fix commit messages in a branch
- Pre-commit hooks need commit message validation
- CI pipelines require commit format enforcement
Commit Format
All commits must follow the pattern: type(scope): subject
Allowed Types
| Type | Description |
|---|---|
| feat | A new feature |
| fix | A bug fix |
| docs | Documentation changes |
| style | Formatting, missing semicolons, etc. |
| refactor | Code change that neither fixes a bug nor adds a feature |
| perf | Performance improvement |
| test | Adding or updating tests |
| chore | Maintenance tasks |
| ci | CI/CD configuration changes |
| build | Build system or dependency changes |
Scope Rules
- Scope is optional but recommended
- Must be lowercase kebab-case
- Should match a module, component, or directory name in the project
- Examples: auth, api, ui, database, ci
Subject Rules
- Use imperative mood: "add feature" not "added feature"
- No period at the end
- Maximum 72 characters
- Start with lowercase
Validation Process
- Parse the commit message into type, scope, subject, body, and footer
- Validate type against the allowed list
- Check scope format if present
- Verify subject follows all rules
- Check total first line length does not exceed 72 characters
- If body is present, ensure blank line separator exists
Auto-Fix Suggestions
When a commit message fails validation, suggest fixes:
- Wrong type: suggest the closest matching type
- Uppercase subject: auto-lowercase the first character
- Period at end: remove trailing period
- Past tense: suggest imperative form (added -> add, fixed -> fix)
- Missing type: infer from changed files (test files -> test, docs -> docs)
Integration
Works with:
- Git hooks (pre-commit, commit-msg)
- GitHub Actions CI checks
- Local development workflow
- Branch history cleanup before merge
Examples
Good:
- feat(auth): add OAuth2 login flow
- fix(api): handle null response from upstream
- docs: update API reference for v2 endpoints
- refactor(database): extract connection pooling logic
Bad:
- Added new feature (missing type)
- feat: Add OAuth2. (uppercase, period)
- fix(API): Fixed the bug (uppercase scope, past tense)
安全使用建议
This skill appears to do what it says (lint and suggest fixes for commit messages). Before installing: ensure git is available on the agent, and verify exactly how the skill will modify your repository (pre-commit/commit-msg hook contents, whether it will auto-amend commits or rewrite branch history). Require explicit confirmation for any auto-amend or history-rewrite actions and keep backups (or enforce that changes run only locally/under user approval). If you plan to use it in CI, request the actual hook/automation scripts so you can review them for unintended behavior.
功能分析
Type: OpenClaw Skill
Name: flyai-commit-lint
Version: 1.0.0
The skill is a standard git commit message linter designed to enforce conventional commit formats. It provides clear instructions for an AI agent to validate commit types, scopes, and subjects using tools like Bash and Grep. No malicious logic, data exfiltration, or suspicious command execution was found in SKILL.md or _meta.json.
能力评估
Purpose & Capability
The name/description align with the instructions: parsing and validating commit messages, suggesting fixes, and integrating with git hooks/CI. One small inconsistency: the SKILL.md expects interaction with git (commit hooks, changed files) but the registry metadata lists no required binaries (git) — this is plausible but should be declared.
Instruction Scope
Instructions stay within commit-linting scope (parse message, suggest fixes, infer type from changed files). However, it mentions integrations that are potentially destructive (branch history cleanup, modifying commit messages) — the instructions do not spell out confirmation/approval steps before rewriting history or amending commits, so require explicit user consent or safeguards.
Install Mechanism
Instruction-only skill with no install spec or code files — lowest install surface. Nothing is written to disk by the skill itself as provided.
Credentials
No environment variables, credentials, or external config paths are requested. The actions described (reading repo files, modifying hooks) are proportionate to the stated purpose.
Persistence & Privilege
always:false and default autonomous invocation are set; this is normal. The skill may be used to modify repository hooks or commit history when invoked, but it does not request permanent platform-wide presence.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install flyai-commit-lint - 安装完成后,直接呼叫该 Skill 的名称或使用
/flyai-commit-lint触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with conventional commit message linting and auto-fix suggestions.
- Enforces semantic validation for commit messages with checks on type, scope, and subject.
- Supports optional but recommended kebab-case scopes corresponding to project modules.
- Validates commit subject for imperative mood, lowercase start, no period, and line length.
- Provides automated suggestions to fix common commit message issues.
- Integrates with git hooks, CI pipelines, and local development workflows.
元数据
常见问题
Flyai Commit Lint 是什么?
Enforce conventional commit messages with semantic validation, scope checking, and automated fix suggestions for git workflows. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 95 次。
如何安装 Flyai Commit Lint?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install flyai-commit-lint」即可一键安装,无需额外配置。
Flyai Commit Lint 是免费的吗?
是的,Flyai Commit Lint 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Flyai Commit Lint 支持哪些平台?
Flyai Commit Lint 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Flyai Commit Lint?
由 dingtom336-gif(@dingtom336-gif)开发并维护,当前版本 v1.0.0。
推荐 Skills