Trellis check
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.
git clone https://github.com/mindfold-ai/Trellis
T=$(mktemp -d) && git clone --depth=1 https://github.com/mindfold-ai/Trellis "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.agents/skills/check" ~/.claude/skills/mindfold-ai-trellis-check && rm -rf "$T"
.agents/skills/check/SKILL.mdCheck 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
). The index is NOT the goal — it points you to the actual guideline files. Read those files and review your code against them.conventions.md -
Run lint and typecheck for the affected package.
-
Report any violations and fix them if found.