Git.update references

From causify-ai/helpers · View interactive version

Git.update references is an AI agent skill from the GitHub repository causify-ai/helpers. Update references in other Git repos to files moved, renamed, or deleted here

How to use this skill

Skill file

Goal

and update all references to them in the other Git repos

Workflow

Find Changed Files

using a command line:

```bash

> invoke git_files --branch --only-print-files

```

Search for References

helpers_root)

```bash

search_repo() {

local repo_path=$1

local search_term=$2

(cd "$repo_path" && {

# Get submodule paths to exclude

submodules=$(git config --file .gitmodules --name-only --get-regexp path 2>/dev/null | sed 's/.*path=//' | tr '\n' '|' | sed 's/|$//')

if [ -n "$submodules" ]; then

git ls-files | grep -v "^($submodules)" | while read -r file; do

[ ! -L "$file" ] && echo "$file"

done | xargs grep "$search_term" 2>/dev/null

else

git ls-files | while read -r file; do

[ ! -L "$file" ] && echo "$file"

done | xargs grep "$search_term" 2>/dev/null

fi

})

}

```

.claude/skills/cfile.rules.md

Update References

Verification

updated in every repo

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.