Skip to content

AI Config SSoT: ~/config-ai Implementation

Section titled “AI Config SSoT: ~/config-ai Implementation”

Date: 2026-02-20 Session: Implemented ~/config-ai as single source of truth for all AI tool configurations Status: ✅ Complete (GitHub push requires manual step — see below)


Implemented ~/config-ai as a git-managed SSoT for Claude Code, Cursor, and AntiGravity configurations. All local deploy targets are live and verified. A post-commit hook auto-deploys to all targets on every commit. GitHub push was skipped (gh CLI not installed in WSL).


  • ✅ Phase 1: Initialized ~/config-ai git repo, migrated all config from ~/.claude/
  • ✅ Phase 2: Created deploy.sh + post-commit hook (auto-deploys on commit)
  • ✅ Phase 3: Created claude/CLAUDE.windows.md (Windows-specific additions)
  • ✅ Phase 4: Created 3 Cursor .mdc rule files (behavior, project, conventions)
  • ✅ Phase 5: Created 4 AntiGravity skill folders (now, ptr, aic, ss)
  • ✅ Phase 6: Verified all deploy targets; first real deploy succeeded via commit hook
  • ⏭️ GitHub push: Manual step required (install gh CLI or create repo via web)

~/config-ai/ (SSoT repo):

  • deploy.sh — Sync script for all targets
  • .git/hooks/post-commit — Auto-runs deploy.sh after every commit
  • claude/CLAUDE.md — Migrated from ~/.claude/CLAUDE.md
  • claude/CLAUDE.windows.md — Windows-specific additions (AHK, Python utils, paths)
  • claude/settings.wsl.json — WSL Claude Code settings
  • claude/settings.win.json — Windows Claude Code settings
  • claude/mcp.json — MCP server config
  • claude/commands/ — 6 skill files (aic, cpw, now, nowcpw, ptr, ss)
  • cursor/rules/00-behavior.mdc — Autonomous execution & mandatory testing standards
  • cursor/rules/01-project.mdc — Monorepo context (stack, commands, brand colors)
  • cursor/rules/02-conventions.mdc — Code style, git, accessibility conventions
  • antigravity/skills/now/skill.md — Review _Now.md tasks
  • antigravity/skills/ptr/skill.md — Proceed autonomously
  • antigravity/skills/aic/skill.md — Ask for clarification
  • antigravity/skills/ss/skill.md — See attached screenshot

TargetStatusNotes
~/.claude/ (WSL CC)CLAUDE.md diff: identical
/mnt/c/Users/Admin/.claude/ (Windows CC)435 lines (391 master + 44 windows additions)
~/projects/monorepo/.cursor/rules/3 .mdc files present
~/.gemini/antigravity/skills/4 skill folders
~/projects/monorepo/.agent/skills/4 skill folders

✓ WSL CLAUDE.md matches source
✓ Expected ~435 lines in Windows CLAUDE.md, got 435
✓ Cursor rules: 00-behavior.mdc, 01-project.mdc, 02-conventions.mdc
✓ AntiGravity global skills: aic, now, ptr, ss
✓ AntiGravity workspace skills: aic, now, ptr, ss
✓ Post-commit hook fired during commit → all targets deployed automatically

The hook was validated live: committing feat: add deploy.sh, Cursor rules, AntiGravity skills, Windows Claude additions triggered auto-deploy, which printed:

✓ WSL Claude Code
✓ Windows Claude Code
✓ Cursor rules (monorepo)
✓ AntiGravity global skills
✓ AntiGravity workspace skills (monorepo)
✓ Deploy complete

  • e851b42 — init: AI config SSoT from existing ~/.claude
  • 2821e5e — feat: add deploy.sh, Cursor rules, AntiGravity skills, Windows Claude additions

gh CLI is not installed in WSL. To push to GitHub:

Option A — Install gh CLI:

Terminal window
# In WSL:
type -p curl >/dev/null || apt install curl -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update && sudo apt install gh -y
gh auth login
cd ~/config-ai && gh repo create config-ai --private --source=. --push

Option B — Create via GitHub web:

  1. Go to github.com → New repository → config-ai → Private
  2. Then: cd ~/config-ai && git remote add origin git@github.com:USERNAME/config-ai.git && git push -u origin main

To update any AI tool configuration:

  1. Edit file(s) in ~/config-ai/
  2. git add + git commit → post-commit hook auto-deploys to all targets
  3. Git push to GitHub (once remote is configured)

The SSoT is live. Configuration drift between WSL and Windows is eliminated.