git-subtree-manager
БесплатноБез исполняемых скриптовНе проверенManages git subtrees for external library references. Use when adding new library sources or updating existing subtrees in docs/.
Об этом скилле
Git Subtree Manager
Manages git subtrees in the docs/ directory for AI agents to reference external library source code.
Current Subtrees
| Library | Directory | Repository | Branch |
|---|---|---|---|
| Effect | docs/effect/ |
https://github.com/Effect-TS/effect.git |
main |
| Tamagui | docs/tamagui/ |
https://github.com/tamagui/tamagui.git |
master |
| Better Auth | docs/better-auth/ |
https://github.com/better-auth/better-auth.git |
main |
| Effect Atom | docs/effect-atom/ |
https://github.com/tim-smart/effect-atom.git |
main |
Adding a New Subtree
Prerequisites - CRITICAL
Working directory must be clean. Git subtree commands will fail or behave unexpectedly with uncommitted changes.
Before ANY subtree operation:
Check for uncommitted changes:
git statusIf there are staged or unstaged changes, stash them:
git stash --include-untrackedVerify working directory is clean:
git status # Should show "nothing to commit, working tree clean"
Add Command
git subtree add --prefix=docs/<name> <repo-url> <branch> --squash
Example:
git subtree add --prefix=docs/better-auth https://github.com/better-auth/better-auth.git main --squash
Post-Add Updates
After adding a subtree, update these configuration files:
biome.json- Add tofiles.includes:"!docs/<name>",.github/dependabot.yml- Add toexclude-paths:- "docs/<name>/**"eslint.config.mjs- Add toignores:'docs/<name>/**',AGENTS.md- Add entry to the subtrees tableRelevant skills - Update
.claude/skills/*/SKILL.mdfiles that should reference the new subtree
Restore Stashed Changes - DON'T FORGET
After completing subtree operations and config updates:
git stash pop
Always verify the user's original changes are restored:
git status
Updating an Existing Subtree
Prerequisites - CRITICAL
Same as adding: stash any uncommitted changes first (see above).
To pull latest changes from upstream:
git subtree pull --prefix=docs/<name> <repo-url> <branch> --squash
Example:
git subtree pull --prefix=docs/effect https://github.com/Effect-TS/effect.git main --squash
Configuration Files Checklist
When adding/updating subtrees, ensure these files exclude the subtree directory:
-
biome.json-files.includesarray -
.github/dependabot.yml-exclude-pathsarray -
eslint.config.mjs-ignoresarray -
AGENTS.md- subtrees documentation table - Relevant
.claude/skills/*/SKILL.mdfiles
Troubleshooting
"working tree has modifications" Error
This means you forgot to stash changes. Do not proceed without stashing:
# 1. Stash all changes (including untracked files)
git stash --include-untracked
# 2. Run your subtree command
git subtree add/pull ...
# 3. IMPORTANT: Restore the user's changes
git stash pop
# 4. Verify changes are back
git status
Subtree Already Exists
If the directory already exists, remove it first (losing local changes):
rm -rf docs/<name>
git add docs/<name>
git commit -m "chore: remove docs/<name> for re-add"
Then run the add command again.
Установить git-subtree-manager в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл git-subtree-manager?
Manages git subtrees for external library references. Use when adding new library sources or updating existing subtrees in docs/.
Как установить скилл git-subtree-manager?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-subtree-manager запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic