Agent Skills
› modu-ai/moai-adk
› verify
verify
GitHub作为提交前验证入口,调用MoAI质量门禁执行语言检测、代码检查、格式化、类型检查和测试,确保代码质量后再进行提交。
Trigger Scenarios
准备提交代码时
需要执行预提交质量检查时
Install
npx skills add modu-ai/moai-adk --skill verify -g -y
SKILL.md
Frontmatter
{
"name": "verify",
"metadata": {
"tags": "verify, gate, pre-commit, quality",
"status": "active",
"updated": "2026-10-03",
"version": "1.0.0",
"category": "workflow"
},
"description": "Pre-commit verification entry point. Claude Code 2.1.286+ instructs the model to run a skill named `verify` right before committing (docs-only and tests-only commits exempt); this thin wrapper delegates that call to the MoAI quality gate instead of hand-rolling substitute checks.\n"
}
Verify — Delegates to the MoAI Gate
Run the MoAI pre-commit quality gate: invoke Skill("moai") with arguments gate $ARGUMENTS.
Rules for the caller:
- Do not substitute your own checks — the gate owns language detection, lint, format, type-check, and test execution, plus shared-snapshot reuse/recording.
- On FAIL with fixable lint/format findings, prefer re-running the gate with
--fixbefore editing code by hand. - The gate's PASS/FAIL table is the verification evidence for the upcoming commit. Resolve a FAIL (auto-fix or manual) before committing; in MoAI-managed projects the mechanical pre-commit hook independently re-runs the same gate at the commit tier and owns the blocking decision.
Version History
- 6dde1c1 Current 2026-10-19 18:22


