gitattributes
Skill by Automattic
Audits and updates .gitattributes export-ignore rules for a WordPress plugin. It keeps dev-only files out of the WordPress.org release zip built with git archive. Written for plugin maintainers preparing a release.
Install gitattributes
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Automattic/wordpress-activitypub /tmp/wordpress-activitypub && mkdir -p ~/.claude/skills && cp -r /tmp/wordpress-activitypub/.agents/skills/gitattributes ~/.claude/skills/gitattributesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Automattic/wordpress-activitypub /tmp/wordpress-activitypub && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/wordpress-activitypub/.agents/skills/gitattributes ~/.gemini/antigravity-cli/skills/gitattributesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill checks which top-level entries end up in the git archive output used for the WordPress.org plugin zip. It flags files that should be excluded, such as lint configs, CI files, tests, docs and build tooling, and suggests export-ignore rules for them. It also finds stale export-ignore entries that point to files no longer tracked.
The audit uses shell commands with git archive, tar, awk and comm. It can read the committed .gitattributes or the working tree copy via --worktree-attributes, so pending edits can be previewed before a commit. The skill lists which categories belong in the runtime archive and which belong in export-ignore, and when to run the audit, such as before a release or after a tool rename. It is aimed at maintainers of WordPress plugins who ship through WordPress.org.
Written from the project's SKILL.md and checked against it.
What it can do
- Archive contents checkLists the top-level entries in the git archive output to find leaked dev files.
- Working tree previewUses --worktree-attributes to preview pending .gitattributes edits before committing.
- Stale entry checkFinds export-ignore entries for files that are no longer tracked.
- Category guideSorts dev files such as configs, CI, tests and docs into keep or export-ignore buckets.
- Linguist attribute reviewKeeps linguist-generated and linguist-documentation rules current in the same file.
What you need
- Git
- A shell with tar, awk, sort, comm and grep
Try asking
- Audit my .gitattributes export-ignore rules before a release
- Find stale export-ignore entries in this plugin repository
- Preview a .gitattributes change with --worktree-attributes
Good to know
- git archive HEAD reads the committed .gitattributes, so uncommitted fixes do not show up by default.
- Stale export-ignore entries are not dangerous, but the source says to delete them.
- Linguist attributes do not affect the release archive.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/gitattributes/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to gitattributes
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
gitattributes: common questions
How do I keep dev files out of a WordPress.org plugin zip?
Add export-ignore rules to .gitattributes for dev-only files, since the zip is built with git archive. The skill lists which categories to exclude.
When should I run this audit?
Run it before tagging a release, after adding or renaming a top-level file or config, and after adopting a new dev tool.
Why does my uncommitted .gitattributes change not appear in the archive?
git archive HEAD reads .gitattributes from the commit. Use --worktree-attributes to preview pending edits.
How do I install gitattributes?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gitattributes free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gitattributes safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gitattributes?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
