Loading...
Loading...
Configure .gitattributes, .editorconfig, .gitignore, and Git LFS filters for a repository: normalize line endings, mark generated, vendored, and documentation paths for GitHub linguist, set per-language editor defaults, and merge .gitignore content from GitHub templates. Use when the user says "add .gitattributes", "fix line endings", "CRLF", "linguist", "mark generated files", "set up .editorconfig", "gitignore template", "git lfs", or invokes /repo-attributes. Do NOT use for prek or pre-commit hook configuration — use /prek. GitHub custom properties (organization-level metadata) are out of scope; this skill only touches per-repository attribute, editor, and ignore files. Community health files (README, LICENSE, CODE_OF_CONDUCT, CONTRIBUTING, SECURITY) belong to /oss-hygiene, not this skill.
npx skill4agent add paulnsorensen/git-gouda repo-attributes.gitattributes.editorconfig.gitignore| Concern | Skill |
|---|---|
| Line endings, linguist overrides, editor defaults, ignore rules, LFS patterns | |
Pre-commit / prek hook selection and | |
| Community health files (README, LICENSE, CODE_OF_CONDUCT, CONTRIBUTING, SECURITY) | |
| Org-wide settings as code, including custom properties | |
/prek| Marker file | Language/Framework |
|---|---|
| Rust |
| Python |
| TypeScript/JavaScript |
| Go |
| Ruby |
| Shell |
| Docker |
.gitattributes.editorconfig.gitignore.gitmodulesgit lfs ls-filesgit lfs.gitattributesassets/gitattributes.example* text=autoeol=lf*.sh text eol=lf*.png binarylinguist-generatedlinguist-vendoredlinguist-documentationmerge=unionCHANGELOG.mdexport-ignoregit archivediff=*.md diff=markdownfilter=lfs diff=lfs merge=lfs -textgit lfs ls-files.gitattributes.editorconfigassets/editorconfig.exampleroot = true[*]charsetend_of_lineinsert_final_newlinetrim_trailing_whitespaceindent_styleindent_size.gitignoregh api /gitignore/templates
gh api /gitignore/templates/{name} --jq .source.gitignore.gitattributesgit add --renormalize .git status --porcelain.gitattributesgit check-attr -a <file>
git ls-files --eol
gh api repos/{owner}/{repo}/languagesgit check-attr -a <file>git ls-files --eol.gitattributeslanguages/prek/oss-hygiene* text=autoeol=lflinguist-generatedlinguist-vendoredgit diffgit add --renormalize .git lfs install.gitignoregit rm --cachedreferences/attributes.md.gitattributes.editorconfig.gitignore