check

Validate changed code against .trellis/spec/ guidelines using git diff.

92|8|Updated May 15, 2026
One-click install
npx skills add https://github.com/LonelyHerbivore/Trellis-Herbivore --skill check-lonelyherbivore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check
Source: https://github.com/LonelyHerbivore/Trellis-Herbivore/tree/main/packages/cli/src/templates/codex/skills/check
Command: npx skills add https://github.com/LonelyHerbivore/Trellis-Herbivore --skill check-lonelyherbivore

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures recently written code still matches the repository’s intended development guidelines, preventing quality drift during long or complex coding sessions.

Core Features & Use Cases

  • Spec-guided validation: Detects changed files via git diff, discovers applicable spec modules, and follows each module’s “Quality Check” section from .trellis/spec/.
  • Project-level verification: Runs the repository’s lint, type-check, and test commands to confirm correctness beyond guideline text.
  • Cross-layer safety checks (optional): Validates data flow, code reuse, dependency correctness, and same-layer consistency when changes span multiple layers.
  • Quality gate reporting: Produces a clear report of guideline and checklist violations and drives fixes by re-running checks.

Quick Start

Use the check skill after writing code to validate it against the relevant .trellis/spec/ guidelines and re-run checks until all violations are resolved.

Frequently Asked Questions about check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate code quality against project specifications before committing?

Cross-layer consistency checks validate data flow, code reuse, and dependency correctness when changes span multiple architectural layers. This optional feature ensures same-layer consistency and prevents structural drift during complex, multi-layer coding sessions.

What is the best way to run lint and typecheck on recently changed files?

You use this validation skill after writing code and before committing, especially when session context may have drifted during long or complex coding tasks. It produces a clear report of guideline violations and drives fixes by re-running checks until resolved.

Does this code validation approach work with existing .trellis spec modules?

Yes, this validation approach works directly with existing .trellis spec modules by discovering applicable spec files and following each module's defined Quality Check section. It uses git diff to map changed files to the correct specification modules.

When should I run spec compliance checks during the development workflow?

You should run spec compliance checks after implementation and before committing, or whenever session context may have drifted. Running checks at these points prevents quality drift and ensures the code satisfies all project-level development guidelines.