From 2b506e90f53c7a27e0ad73eed42eb790054dd690 Mon Sep 17 00:00:00 2001 From: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Date: Tue, 14 Apr 2026 12:18:54 -0400 Subject: [PATCH] chore: add .gitattributes to exclude non-runtime files from git archive --- .gitattributes | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..20465e4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,43 @@ +# Exclude non-runtime files from `git archive` output. +# Used by scripts/build-skill.sh to produce a claude.ai-upload-ready .skill file. +# See docs/plans/2026-04-14-001-fix-skill-upload-200-file-limit-plan.md. + +# Anthropic canonical skill-packaging excludes +# (mirrors anthropics/skills/skills/skill-creator/scripts/package_skill.py) +__pycache__/ export-ignore +node_modules/ export-ignore +*.pyc export-ignore +.DS_Store export-ignore +evals/ export-ignore + +# Dev, docs, test, and media - not needed at skill runtime +tests/ export-ignore +docs/ export-ignore +fixtures/ export-ignore +assets/ export-ignore + +# Second SKILL.md files would confuse claude.ai's uploader +# (skills/last30days/ is an internal spec; skills/last30days-nux/ is a symlink) +skills/ export-ignore + +# Historical + repo-only manifests +SKILL-original.md export-ignore +SPEC.md export-ignore +TASKS.md export-ignore +test-run.log export-ignore +CONTRIBUTORS.md export-ignore +HERMES_SETUP.md export-ignore +release-notes.md export-ignore +CHANGELOG.md export-ignore +uv.lock export-ignore + +# Platform adapters - skill-upload path is platform-agnostic +.agents/ export-ignore +.codex-plugin/ export-ignore +.hermes-plugin/ export-ignore +.claude-plugin/ export-ignore + +# Build config itself +.clawhubignore export-ignore +.gitignore export-ignore +.gitattributes export-ignore