codex/skills/xit/SKILL.md
Use when a repo has `.xit/` or the user asks for xit: translate git-like intents to non-interactive `xit` CLI commands (`status/diff/log --cli`, add/commit/branch/merge/cherry-pick), avoid the TUI, and do not use git unless explicitly requested.
npx skillsauth add tkersey/dotfiles xitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use xit instead of git when either is true:
.xit/ directory exists in this repo (including in a parent directory).If the repo is not a xit repo and the user didn’t ask for xit, do not force this skill.
xit (it launches the TUI).--cli for status, diff, diff-added, and log (their default is TUI).xit config); use xit config list|add|rm ... instead.--cli whenever it’s available; check xit <cmd> --help if unsure.xit is available: command -v xit.
xit.git; ask how they want to proceed.xit status --cli (it should discover .xit/ from subdirectories).| Intent | xit | Notes |
| --- | --- | --- |
| status | xit status --cli | Text output for agents. |
| diff (working tree) | xit diff --cli | Changes not added to index. |
| diff --cached | xit diff-added --cli | Index vs last commit. |
| add / stage | xit add <path> | Stage file contents. |
| unstage | xit unadd <path> | Like git reset HEAD <path>. |
| restore (work dir) | xit restore <path> | Discard local changes for a path. |
| rm --cached | xit untrack <path> | Stop tracking but keep the file. |
| rm | xit rm <path> | Stop tracking and delete the file. |
| commit | xit commit -m "msg" | Use a quoted message. |
| log | xit log --cli | Text output for agents. |
| branch list / create / delete | xit branch list / xit branch add <name> / xit branch rm <name> | |
| switch / checkout | xit switch <name-or-oid> | Updates index + working dir. |
| merge | xit merge <branch-or-oid> | Patch-based merge by default. |
| cherry-pick | xit cherry-pick <oid> | Apply an existing commit. |
For a more complete mapping and workflows, see references/cli.md.
xit status --clixit diff --clixit diff-added --clixit status --clixit diff --clixit add <paths...>xit diff-added --clixit commit -m "<message>"xit merge <branch-or-oid> or xit cherry-pick <oid>.xit status --cli and xit diff --cli.xit add <resolved-paths...> then xit diff-added --cli.xit merge --continue or xit cherry-pick --continue.xit merge --abort or xit cherry-pick --abort.xit reset <ref-or-oid> (like git reset --mixed).xit reset-dir <ref-or-oid> (like git reset --hard).xit reset-add <ref-or-oid> (like git reset --soft).xit remote add|rm|list ...xit fetch <remote>xit merge refs/remotes/<remote>/<branch> (choose <branch> by inspecting refs or xit log --cli after fetch)xit push <remote> <branch>xit rm <path> (deletes file), xit restore <path> / xit reset-dir <ref-or-oid> (discard local changes), or xit push ... -f / xit push <remote> :<branch> (force push / delete remote branch).xit untrack <path> when the user wants to stop tracking but keep the file.git inside a .xit repo unless the user explicitly requests git.xit --help and xit <cmd> --help.xit patch on|off|all.tools
Convert markdown plans into beads with dependencies using br CLI. Use when creating task graphs, polishing beads before implementation, or bridging planning to agent swarm execution.
development
Orchestrate Codex skill optimization during active sessions through $cas goal control, $shadow single-session evidence, $tune diagnosis/refinement briefs, and the skill-optimizer custom subagent. Trigger for $opt, skill optimization loops, session-driven skill tuning, meta-skill audits, or explicit validated skill edits. Do not use for general code optimization, product optimization, or performance tuning.
development
Run a targeted fresh-eyes blunder pass over code, specs, plans, adjudications, closure gates, skill edits, or negative-evidence ledgers. Trigger when asked to reread with fresh eyes, find obvious bugs, catch mistakes/oversights/omissions, check for embarrassing misses, or perform a second independent blunder pass before closure. Do not use as a substitute for implementation, adjudication, or verification; use it as the final falsification/check pass for those workflows.
development
Explicitly shadow, tail, watch, follow, monitor, supervise, or companion exactly one Codex session id/path through `$seq`, then apply a named target skill as an interpretation/reporting/proposal/action lens until the watched session stops.