trellis-check
◉ 12.9k↓ 12.9k↺ 2026.07.20@mindfold-ai/trellis-check综合质量验证:Spec 合规、lint、type-check、测试、跨层数据流、复用与一致性检查。
开发工具开发者: Mindfold AI
| name | trellis-check |
|---|---|
| description | 综合质量验证:Spec 合规、lint、type-check、测试、跨层数据流、复用与一致性检查。 |
质量校验
trellis-check
综合质量验证:Spec 合规、lint、type-check、测试、跨层数据流、复用与一致性检查。
核心说明
以下为上游 SKILL.md 摘要(英文原文结构保留要点):
Code Quality Check
Comprehensive quality verification for recently written code. Combines spec compliance, cross-layer safety, and pre-commit checks.
Step 1: Identify What Changed
git diff --name-only HEAD
git status
Step 2: Read Task Artifacts and Applicable Specs
Read the current task artifacts in order:
prd.mddesign.mdif presentimplement.mdif present
python3 ./.trellis/scripts/get_context.py --mode packages
For each changed package/layer, read the spec index and follow its Quality Check section:
cat .trellis/spec/<package>/<layer>/index.md
Read the specific guideline files referenced — the index is a pointer, not the goal.
Step 3: Run Project Checks
Run the project's lint, type-check, and test commands. Fix any failures before proceeding.
Step 4: Review Against Checklist
Code Quality
- [ ] Linter passes?
- [ ] Type checker passes (if applicable)?
- [ ] Tests pass?
- [ ] No debug logging left in?
- [ ] No suppressed warnings or type-safety bypasses?
Test Coverage
- [ ] New function → unit test added?
- [ ] Bug fix → regression test added?
- [ ] Changed behavior → existing tests updated?
Spec Sync
…
安装
随 Trellis 一并分发。执行 trellis init 后可在 .agents/skills/trellis-check/(及各平台 skill 目录)使用。
npm install -g @mindfoldhq/trellis@latest
trellis init -u your-name