Gitnexus Refresh On Stale
Agent Buildinggitnexus-refresh-on-staleGitnexus Refresh On Stale is an Agent Skill for agent building published in the ML4ITS/TimeVQVAE repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Refresh GitNexus indexing and regenerate local GitNexus skills when repository status is stale. Use when `npx gitnexus status` reports stale/outdated index state, or when you need to sync newly generated `.claude/skills/gitnexus` into `.agents/skills/gitnexus` with overwrite behavior.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/ML4ITS/TimeVQVAE/blob/HEAD/.agents/skills/gitnexus-refresh-on-stale/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/gitnexus-refresh-on-stale, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
GitNexus Refresh On Stale
Run this skill from the repository root.
Workflow
- Check index status.
npx gitnexus status
- If status contains
stale(case-insensitive), run:
npx gitnexus analyze
- If
.claude/skills/gitnexusexists after analyze, replace.agents/skills/gitnexuswith it.
- Delete existing
.agents/skills/gitnexuswhen present. - Move
.claude/skills/gitnexusto.agents/skills/gitnexus.
- If status is not stale, do not run analyze.
Script
Use the bundled script for deterministic behavior:
bash .agents/skills/gitnexus-refresh-on-stale/scripts/refresh_gitnexus_skills.sh
The script performs all steps above and prints what it changed.