hf.track-reindex-needed
Signals when a codebase needs reindexing after Git changes.
Install
mkdir -p .claude/skills/hf-track-reindex-needed && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13024" && unzip -o skill.zip -d .claude/skills/hf-track-reindex-needed && rm skill.zipInstalls to .claude/skills/hf-track-reindex-needed
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
hf.track-reindex-neededKey capabilities
- →Monitor Git commands
- →Detect git operations that change the working tree
- →Create a marker directory
- →Create a 'needs-reindex' file
How it works
The script captures the command input, checks if it's a Git operation that modifies the working tree, and if so, creates a 'needs-reindex' file in a project-specific temporary directory.
Inputs & outputs
When to use hf.track-reindex-needed
- →Triggering context reindexing
- →Detecting git changes requiring update
About this skill
hf.track-reindex-needed
#!/bin/bash
# Hook: Mark that claude-context reindexing may be needed after git operations
# that bring in new or different code.
# Fires on PostToolUse for Bash.
set -euo pipefail
INPUT=$(cat)
COMMAND=$(echo "$INPUT" | jq -r '.tool_input.command // empty')
if [ -z "$COMMAND" ]; then
exit 0
fi
# Detect git operations that change the working tree
if echo "$COMMAND" | grep -qE 'git\s+(pull|merge|checkout|switch|rebase|cherry-pick|stash\s+pop|stash\s+apply)'; then
PROJECT_DIR="${CLAUDE_PROJECT_DIR:-$(pwd)}"
MARKER_DIR="/tmp/claude-code-markers/$(echo -n "$PROJECT_DIR" | md5)"
mkdir -p "$MARKER_DIR"
touch "$MARKER_DIR/needs-reindex"
fi
When not to use it
- →When Git operations are not being performed
- →When reindexing is not desired after Git changes
- →When the `jq` command is not available
Prerequisites
Limitations
- →Only detects specific Git commands
- →Relies on the `jq` utility for parsing input
- →The marker file is created in a temporary directory
How it compares
This script automatically flags a project for reindexing after specific Git actions, eliminating the need for manual tracking of code changes that might require reindexing.
Compared to similar skills
hf.track-reindex-needed side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| hf.track-reindex-needed (this skill) | 0 | 5mo | Review | Beginner |
| github-scanning | 0 | 5mo | No flags | Intermediate |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| openspec-onboard | 10 | 6mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by T-rav
View all by T-rav →You might also like
github-scanning
gc-da11yn
GitHub data collection patterns for workflow agents. Covers search query construction by intent, date range handling, repository scope narrowing, preferences.md integration, cross-repo intelligence, parallel stream collection model, and auto-recovery for empty results. Use when building agents that
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management