AgentSkillsCN

validating-gitattributes-file

借助 lean-package-validator 验证 Laravel Boost 项目的 .gitattributes 文件;当需要检查 export-ignore 条目的完整性、排序是否合理,或排查过时条目时,此技能将为你提供可靠保障。

SKILL.md
--- frontmatter
name: validating-gitattributes-file
description: Validate .gitattributes files in Laravel Boost projects using lean-package-validator; use when checking export-ignore completeness, ordering, or stale entries.

Validate .gitattributes with lean-package-validator

From the repository root:

  1. Run ./vendor/bin/lean-package-validator validate to check the current .gitattributes file.
  2. Add --diff to see the expected content when validation fails.
  3. Add --enforce-strict-order or --enforce-alignment only if strict comparison is required.
  4. Add --report-stale-export-ignores (with --diff) to surface export-ignores that no longer exist.

If validation fails, use the updating skill to bring .gitattributes in sync.