git.update_references

Find and report references to moved or deleted files across Git repositories.

144|140|Updated Jul 28, 2024
One-click install
npx skills add https://github.com/causify-ai/helpers --skill git-update-references
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git.update_references
Source: https://github.com/causify-ai/helpers/tree/main/.claude/skills/git.update_references
Command: npx skills add https://github.com/causify-ai/helpers --skill git-update-references

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of finding and updating references to files that have been moved, renamed, or deleted across multiple Git repositories, ensuring consistency and reducing manual effort.

Core Features & Use Cases

  • Reference Discovery: Search for all references to specific files across various repositories and their control files.
  • Cross-Repository Scanning: Scan multiple repositories, excluding submodules and symlinks, to identify all relevant references.
  • Update Automation: Facilitate batch updating of references in multiple repositories after file location changes, improving codebase consistency.

Quick Start

Invoke the script with repository paths and search terms to locate references, then review or modify references as needed using the generated report.

Frequently Asked Questions about git.update_references

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find references to moved or deleted files across multiple Git repositories?

To find references to moved or deleted files across multiple Git repositories, you can scan your repositories to discover all relevant file links and generate a report. This process excludes submodules and symlinks to maintain search accuracy.

What is the best way to automate updating file references after a repository restructure?

The best way to automate updating file references after a repository restructure is by running a batch update script across your affected repositories. This identifies broken links and facilitates applying the necessary reference corrections automatically.

Can I scan multiple Git repositories for broken file links without including submodules?

Yes, you can scan multiple Git repositories for broken file links while automatically excluding submodules and symlinks. This ensures that your reference discovery process only targets the actual project files you control.

How do I track file reference changes in Git before committing large directory moves?

You can track file reference changes in Git before committing large directory moves by running a cross-repository scan with your search terms. This reports all existing references to the files you plan to move, helping you anticipate necessary updates.

Why do my Git scripts fail to update references across different projects?

Your Git scripts might fail to update references across different projects if they are not configured to handle cross-repository scanning or if they inadvertently traverse symlinks and submodules. Using a dedicated reference tracking script ensures consistent file link updates.

Does cross-repository reference scanning work with local repository paths?

Yes, cross-repository reference scanning works by invoking the script with local repository paths and your specific search terms. It then locates all matching references within those directories and outputs a report for review.