AgentSkillsCN

validate

在提交更改之前,运行所有验证检查(nix fmt + pre-commit钩子)。

SKILL.md
--- frontmatter
name: validate
description: Run all validation checks (nix fmt + pre-commit hooks). Use before committing changes.
capabilities:
  - execute

Usage

bash
# Run all checks
validate

Runs in sequence:

  1. nix fmt - format all Nix files
  2. pre-commit run --all-files - run all pre-commit hooks (deadnix, statix, treefmt)