smithery.ai

validating-gitattributes-file

Validate .gitattributes files in projects using lean-package-validator; use when checking export-ignore completeness, ordering, or stale entries.

First seen Mar 26, 2026

Installation

$ npx skills add https://smithery.ai

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 801 B
  • docs SUMMARY.md 196 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

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.