check

GitHub

用于验证近期代码是否符合项目特定开发规范。通过git diff识别变更文件,加载对应规格模块的指南,执行lint和类型检查,报告并修复违规问题,确保代码质量与上下文一致性。

.agents/skills/check/SKILL.md zhukunpenglinyutong/desktop-cc-gui

触发场景

代码编写完成后需要质量验证时 长时间会话中需防止上下文漂移时 提交更改前进行最终检查时

安装

npx skills add zhukunpenglinyutong/desktop-cc-gui --skill check -g -y
更多选项

非标准路径

npx skills add https://github.com/zhukunpenglinyutong/desktop-cc-gui/tree/main/.agents/skills/check -g -y

不安装直接使用

npx skills use zhukunpenglinyutong/desktop-cc-gui@check

指定 Agent (Claude Code)

npx skills add zhukunpenglinyutong/desktop-cc-gui --skill check -a claude-code -g -y

安装 repo 全部 skill

npx skills add zhukunpenglinyutong/desktop-cc-gui --all -g -y

预览 repo 内 skill

npx skills add zhukunpenglinyutong/desktop-cc-gui --list

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:

  1. Identify changed files:

    git diff --name-only HEAD
    
  2. Determine which spec modules apply based on the changed file paths:

    python3 ./.trellis/scripts/get_context.py --mode packages
    
  3. Read the spec index for each relevant module:

    cat .trellis/spec/<package>/<layer>/index.md
    

    Follow the "Quality Check" section in the index.

  4. 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.

  5. Run lint and typecheck for the affected package.

  6. Report any violations and fix them if found.

版本历史

  • cb4962a 当前 2026-07-24 22:05

同 Skill 集合

.agents/skills/before-dev/SKILL.md
.agents/skills/brainstorm/SKILL.md
.agents/skills/break-loop/SKILL.md
.agents/skills/check-cross-layer/SKILL.md
.agents/skills/create-command/SKILL.md
.agents/skills/deploy-to-vercel/SKILL.md
.agents/skills/finish-work/SKILL.md
.agents/skills/improve-ut/SKILL.md
.agents/skills/integrate-skill/SKILL.md
.agents/skills/onboard/SKILL.md
.agents/skills/record-session/SKILL.md
.agents/skills/start/SKILL.md
.agents/skills/update-spec/SKILL.md
.agents/skills/vercel-cli-with-tokens/SKILL.md
.agents/skills/vercel-composition-patterns/SKILL.md
.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/vercel-react-native-skills/SKILL.md
.agents/skills/web-design-guidelines/SKILL.md
.agents/skills/writing-guidelines/SKILL.md
.codex/skills/parallel/SKILL.md
.agents/skills/coss/SKILL.md
.agents/skills/huashu-design/SKILL.md
.agents/skills/vercel-optimize/SKILL.md
.agents/skills/vercel-react-view-transitions/SKILL.md

元信息

文件数
0
版本
cb4962a
Hash
f286aa39
收录时间
2026-07-24 22:05

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 04:04
浙ICP备14020137号-1 $访客地图$