gitattributes-config

Community

Fix line endings, ensure cross-platform Git.

Authormetasaver
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Inconsistent line endings (CRLF vs. LF) cause "bad interpreter" errors on WSL/Linux, constant Git diffs, and binary file corruption, especially for shell scripts and cross-platform teams. This skill automates the configuration of .gitattributes to prevent these issues.

Core Features & Use Cases

  • Cross-Platform Line Ending Normalization: Uses * text=auto eol=lf as a foundation, ensuring consistent LF line endings for source code and shell scripts (critical for WSL).
  • Binary File Protection: Explicitly marks binary files (images, fonts, archives) to prevent any Git transformations that could corrupt them.
  • Lock File Merge Strategy: Configures merge=ours for lock files (pnpm-lock.yaml, package-lock.json) to prevent unnecessary merge conflicts.
  • 8 Required Pattern Categories: Provides canonical patterns for global auto-detection, source code, shell scripts, Windows files, Docker files, binary files, lock files, and generated files.
  • Use Case: Configure a new repository's .gitattributes to automatically normalize line endings to LF for all source code and shell scripts, preventing cross-platform issues, or audit an existing one for compliance.

Quick Start

Audit the current .gitattributes file for MetaSaver cross-platform compliance.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gitattributes-config
Download link: https://github.com/metasaver/claude-marketplace/archive/main.zip#gitattributes-config

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.