Git Worktree Setup
k8zdev/k8z
Automate git worktree creation and copy private files (not tracked in git) to new workdirs.
Fix git pre-commit hook failures in Flutter projects when using git worktrees.
$ npx skills add divinevideo/divine-mobile --skill git-worktree-precommit-hook-flutter-failure -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install divinevideo/divine-mobile git-worktree-precommit-hook-flutter-failure --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/git-worktree-precommit-hook-flutter-failure .claude/skills/git-worktree-precommit-hook-flutter-failure && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "git-worktree-precommit-hook-flutter-failure" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-worktree-precommit-hook-flutter-failure into .claude/skills/git-worktree-precommit-hook-flutter-failure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-precommit-hook-flutter-failure", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-worktree-precommit-hook-flutter-failureType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add divinevideo/divine-mobile --skill git-worktree-precommit-hook-flutter-failure -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install divinevideo/divine-mobile git-worktree-precommit-hook-flutter-failure --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/git-worktree-precommit-hook-flutter-failure .agents/skills/git-worktree-precommit-hook-flutter-failure && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "git-worktree-precommit-hook-flutter-failure" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-worktree-precommit-hook-flutter-failure into .agents/skills/git-worktree-precommit-hook-flutter-failure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-precommit-hook-flutter-failure", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill git-worktree-precommit-hook-flutter-failure -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install divinevideo/divine-mobile git-worktree-precommit-hook-flutter-failure --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/git-worktree-precommit-hook-flutter-failure .cursor/skills/git-worktree-precommit-hook-flutter-failure && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "git-worktree-precommit-hook-flutter-failure" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-worktree-precommit-hook-flutter-failure into .cursor/skills/git-worktree-precommit-hook-flutter-failure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-precommit-hook-flutter-failure", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/divinevideo/divine-mobile.git --path .agents/skills/git-worktree-precommit-hook-flutter-failure--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add divinevideo/divine-mobile --skill git-worktree-precommit-hook-flutter-failure -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install divinevideo/divine-mobile git-worktree-precommit-hook-flutter-failure --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/git-worktree-precommit-hook-flutter-failure .gemini/skills/git-worktree-precommit-hook-flutter-failure && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "git-worktree-precommit-hook-flutter-failure" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-worktree-precommit-hook-flutter-failure into .gemini/skills/git-worktree-precommit-hook-flutter-failure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-precommit-hook-flutter-failure", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install divinevideo/divine-mobile git-worktree-precommit-hook-flutter-failureInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add divinevideo/divine-mobile --skill git-worktree-precommit-hook-flutter-failure -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/git-worktree-precommit-hook-flutter-failure .github/skills/git-worktree-precommit-hook-flutter-failure && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "git-worktree-precommit-hook-flutter-failure" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-worktree-precommit-hook-flutter-failure into .github/skills/git-worktree-precommit-hook-flutter-failure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-precommit-hook-flutter-failure", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill git-worktree-precommit-hook-flutter-failure -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install divinevideo/divine-mobile git-worktree-precommit-hook-flutter-failure --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/git-worktree-precommit-hook-flutter-failure .opencode/skills/git-worktree-precommit-hook-flutter-failure && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "git-worktree-precommit-hook-flutter-failure" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-worktree-precommit-hook-flutter-failure into .opencode/skills/git-worktree-precommit-hook-flutter-failure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-precommit-hook-flutter-failure", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
git-worktree-precommit-hook-flutter-failureFix git pre-commit hook failures in Flutter projects when using git worktrees.
Git Worktree Precommit Hook Flutter Failure is an agent skill from divinevideo/divine-mobile. Fix git pre-commit hook failures in Flutter projects when using git worktrees. Use when: (1) Pre-commit hook with flutter analyze fails during git commit but passes when run manually, (2) Hook output shows "Resolving dependencies..." then immediately fails with no actual analysis errors, (3) Working in a git worktree (created via git worktree add). Root cause: git sets GITDIR to a worktree-style path during hook execution, which breaks flutter pub get (called internally by flutter analyze). Fix: unset GITDIR…
Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Git worktrees and Cross-platform mobile apps. It works with Git and Flutter. The licence is MPL-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 8d5fbf2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
fluttergitdartFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Git Worktree Precommit Hook Flutter Failure loads about 1k tokens when it runs. Until then it costs about 162 tokens; SKILL.md has 328 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from divinevideo/divine-mobile at commit 8d5fbf2, republished under its MPL-2.0 licence (© divinevideo). 328 words, ~1,000 tokens.
.claude/skills/git-worktree-precommit-hook-flutter-failure/SKILL.md (or your agent's skills folder).When using git worktree for parallel development, pre-commit hooks that run
flutter analyze fail during git commit even though:
flutter analyze directly in the worktree passes with no issuesGit sets GIT_DIR, GIT_INDEX_FILE, and GIT_WORK_TREE environment variables
during hook execution. In a worktree, GIT_DIR points to
.git/worktrees/<name>/ instead of .git/. When flutter analyze internally
runs flutter pub get, pub chokes on this worktree-style GIT_DIR path and
fails to resolve dependencies.
The failure is invisible when the hook uses 2>/dev/null on stderr — you only
see "Resolving dependencies..." then the failure message, with the actual error
suppressed.
git worktree add for parallel branch developmentflutter analyze or dart analyzeset -e (exit on error)2>/dev/null may hide the actual failure causeReproduce the exact failure by simulating git's hook environment:
# This will FAIL (simulates hook execution in worktree)
GIT_DIR=/path/to/main/.git/worktrees/<name> \
flutter analyze --no-fatal-infos 2>/dev/null
# This will PASS (without git env vars)
flutter analyze --no-fatal-infosAdd unset GIT_DIR GIT_INDEX_FILE GIT_WORK_TREE to the pre-commit hook
after all git commands but before any flutter/dart commands.
#!/bin/bash
set -e
cd "$(git rev-parse --show-toplevel)/mobile"
# Git operations (these NEED the git env vars)
STAGED_DART_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep '\.dart$' || true)
if [ -z "$STAGED_DART_FILES" ]; then
echo "No Dart files staged, skipping checks"
exit 0
fi
# Unset git env vars BEFORE running flutter/dart commands.
# Git sets these during hook execution, and flutter pub get
# (called internally by flutter analyze) chokes on worktree-style
# GIT_DIR paths.
unset GIT_DIR GIT_INDEX_FILE GIT_WORK_TREE
# Now flutter/dart commands work in both main repo and worktrees
dart format --output=none --set-exit-if-changed lib test
flutter analyze --no-fatal-infosKey points:
unset MUST come after git diff --cached (which needs GIT_INDEX_FILE)unset MUST come before flutter analyze and dart format2>/dev/null from flutter analyze so errors are visiblegit add <file>git commit -m "test" — hook should passpub get or interacts with git
during hook execution (not just flutter analyze)dart format may also be affected in some configurationsgit rev-parse --show-toplevel call at the top of the hook works
correctly with GIT_DIR set — it resolves to the worktree root© divinevideo, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/git-worktree-precommit-hook-flutter-failure of divinevideo/divine-mobile.
Open the folder on GitHubat commit 8d5fbf2
Git Worktree Precommit Hook Flutter Failure next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Git Worktree Precommit Hook Flutter Failure this skilldivinevideo/divine-mobile | 265 | — | ~1k | Automated safety check: Pass | MPL-2.0 | |
| Git Worktree Setupk8zdev/k8z | 155 | — | ~930 | Automated safety check: Pass | None | |
| Core API Changelibnativeapi/nativeapi | 157 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Reviewgetsentry/sentry-dart | 873 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Rebase Mainhyochan/flutter_calendar_carousel | 860 | — | ~662 | Automated safety check: Pass | MIT | |
| Flutter Appccplugins/awesome-claude-code-plugins | 967 | — | ~1.1k | Automated safety check: Notes | Apache-2.0 |
k8zdev/k8z
Automate git worktree creation and copy private files (not tracked in git) to new workdirs.
libnativeapi/nativeapi
Carry a change to the C++ public API in core/ all the way downstream — design check, header edit, six platform implementations, C ABI + Rust/Dart/C/JS/Python regeneration, per-binding verification…
getsentry/sentry-dart
Three-axis review of the branch diff — Standards (this repo's documented standards + public API surface), Spec (the originating Linear issue / PR), and Correctness (runtime bugs + the SDK threat…
hyochan/flutter_calendar_carousel
Safely update local main from origin/main, rebase the current fluttercalendarcarousel work branch, resolve conflicts without losing staged, unstaged, untracked, ignored, or generated work, and…
ccplugins/awesome-claude-code-plugins
Bootstrap a new Flutter mobile app with clean architecture, Riverpod, FVM-pinned SDK, current packages, and no deprecated APIs.
CorridorTech/PoseCap
Survey the project's state across the six-layer artifact stack and recommend prioritized next actions, modeled on flutter doctor.
divinevideo/divine-mobile
Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".
divinevideo/divine-mobile
Art direction for any content — reads text, PDF, Word, HTML, PPT, then proposes 2-3 creative directions with photography style, mood, and visual language.
divinevideo/divine-mobile
Fix "Null check operator used on a null value" errors when an object is set to null during an async await.
divinevideo/divine-mobile
Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.
divinevideo/divine-mobile
Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.
divinevideo/divine-mobile
Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).
Categories
Fix git pre-commit hook failures in Flutter projects when using git worktrees. Git Worktree Precommit Hook Flutter Failure is an agent skill from divinevideo/divine-mobile. Fix git pre-commit hook failures in Flutter projects when using git worktrees.
Git Worktree Precommit Hook Flutter Failure fits situations like: pre-commit hook with flutter analyze fails during git commit but passes when run manually; hook output shows Resolving dependencies... then immediately fails with no actual analysis errors; working in a git worktree (created via git worktree add).
Run `npx skills add divinevideo/divine-mobile --skill git-worktree-precommit-hook-flutter-failure -a claude-code`. Or copy the skill folder (.agents/skills/git-worktree-precommit-hook-flutter-failure in divinevideo/divine-mobile) into .claude/skills/git-worktree-precommit-hook-flutter-failure in your project. Claude Code loads it when a task matches its description.
Run `npx skills add divinevideo/divine-mobile --skill git-worktree-precommit-hook-flutter-failure -a codex`. Or copy the skill folder (.agents/skills/git-worktree-precommit-hook-flutter-failure in divinevideo/divine-mobile) into .agents/skills/git-worktree-precommit-hook-flutter-failure in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add divinevideo/divine-mobile --skill git-worktree-precommit-hook-flutter-failure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-worktree-precommit-hook-flutter-failure, .gemini/skills/git-worktree-precommit-hook-flutter-failure, .github/skills/git-worktree-precommit-hook-flutter-failure and .opencode/skills/git-worktree-precommit-hook-flutter-failure in your project.
Going by SKILL.md and its folder, Git Worktree Precommit Hook Flutter Failure needs the command-line tools its instructions call (flutter, git and dart).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Git Worktree Precommit Hook Flutter Failure is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1k tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Git Worktree Precommit Hook Flutter Failure: Git Worktree Setup (k8zdev/k8z, 155 stars), Core API Change (libnativeapi/nativeapi, 157 stars), Review (getsentry/sentry-dart, 873 stars) and Rebase Main (hyochan/flutter_calendar_carousel, 860 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
divinevideo (a GitHub organization) maintains it in divinevideo/divine-mobile, which has 265 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 7, 2026.
Source: divinevideo/divine-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.