smithery.ai

creating-gitattributes-file

Create a lean-package-validator and Git compatible .gitattributes file in projects; use when generating missing export-ignore entries or scaffolding a new .gitattributes file.

First seen Mar 22, 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 885 B
  • docs SUMMARY.md 216 B

History

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

SKILL.md

Create .gitattributes with lean-package-validator

Follow these steps from the repository root:

  1. Run ./vendor/bin/lean-package-validator create to generate a .gitattributes file with all expected export-ignore entries.
  2. If you want aligned export-ignore columns, add --align-export-ignores.
  3. If you do not want the generated header comment, add --omit-header.
  4. If a .lpv file exists, it will be used automatically; otherwise the default PHP preset is used.
  5. You can refresh an existing, stale .lpv file with ./vendor/bin/lean-package-validator refresh.