Remix.run Logo
nomel 5 hours ago

A post-checkout git hook can handle this unfortunate situation.

  mkdir -p ~/.githooks
  git config --global core.hooksPath ~/.githooks

  cat > ~/.githooks/post-checkout <<'EOF'
  #!/usr/bin/env bash
  if [ -d .agents/skills ] && [ ! -e .claude/skills ]; then
      mkdir -p .claude
      ln -s ../.agents/skills .claude/skills
  fi
  EOF

  chmod +x ~/.githooks/post-checkout
ahurmazda 3 hours ago | parent | next [-]

Won’t you have to do it recursively for all child directories?

verdverm 3 hours ago | parent | prev [-]

we shouldn't have to do this on a per-repo basis, Ant can choose to be a reasonable member of the ecosystem or not

nomel 3 hours ago | parent [-]

Sure, but I have work to do. ;)