Reference
RAGit Agent Skill
Canonical skill source for running RAGit safely in agent workflows
use-ragit is the repository-managed canonical skill source for operating RAGit inside Codex, while keeping the main rules reusable for Claude and Gemini through shared reference files.
What It Solves
- Resolve the correct runtime before the first RAGit command
- Check repository readiness with
status --format json - Route agent intent to the right command
- Keep
query,context pack,memory recall,memory wrap,memory promote, andhooks installfrom being mixed up - Enforce
--dry-runbefore mutating commands
Command Selection
- Use
statusfor the first readiness check. - Use
doctoronly after a failure or when you need structured diagnostics. - Use
describebefore first-time command integration. - Use
queryfor raw retrieval hits. - Use
context packfor a prompt-sized, goal-bounded handoff packet. - Use
memory recallto resume active work from working memory. - Use
memory wrapto preserve session continuity. - Use
memory promoteonly for stable, searchable knowledge. - Use
hooks installonly when automatic post-commit or post-merge ingest is explicitly requested.
Codex Install Path
Canonical source in this repository:
skills/use-ragitRecommended Codex install target:
${CODEX_HOME:-$HOME/.codex}/skills/use-ragitTypical symlink flow:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
ln -s "/absolute/path/to/ragit/skills/use-ragit" \
"${CODEX_HOME:-$HOME/.codex}/skills/use-ragit"If you prefer not to symlink, copy the folder instead.
Shared References For Claude And Gemini
Claude and Gemini do not need a separate v1 wrapper pack. Reuse the same rules by pointing project instructions to these files:
skills/use-ragit/references/command-routing.mdskills/use-ragit/references/memory-discipline.mdskills/use-ragit/references/payload-patterns.mdskills/use-ragit/references/interop.md
That keeps command routing, safety rules, and memory discipline aligned across agents while leaving only metadata and trigger wording product-specific.