check
GitHub用于验证近期代码是否符合项目特定开发规范。通过git diff识别变更文件,加载对应规格模块的指南,执行lint和类型检查,报告并修复违规问题,确保代码质量与上下文一致性。
Trigger Scenarios
Install
npx skills add zhukunpenglinyutong/desktop-cc-gui --skill check -g -y
SKILL.md
Frontmatter
{
"name": "check",
"description": "Validates recently written code against project-specific development guidelines from .trellis\/spec\/. Identifies changed files via git diff, discovers applicable spec modules, runs lint and typecheck, and reports guideline violations. Use when code is written and needs quality verification, to catch context drift during long sessions, or before committing changes."
}
Check if the code you just wrote follows the development guidelines.
Execute these steps:
-
Identify changed files:
git diff --name-only HEAD -
Determine which spec modules apply based on the changed file paths:
python3 ./.trellis/scripts/get_context.py --mode packages -
Read the spec index for each relevant module:
cat .trellis/spec/<package>/<layer>/index.mdFollow the "Quality Check" section in the index.
-
Read the specific guideline files referenced in the Quality Check section (e.g.,
quality-guidelines.md,conventions.md). The index is NOT the goal — it points you to the actual guideline files. Read those files and review your code against them. -
Run lint and typecheck for the affected package.
-
Report any violations and fix them if found.
Version History
- cb4962a Current 2026-07-24 22:05


