Initialize thoughts system for current repository
Sets up the thoughts system for the current repository and verifies all components.
/plugin marketplace add hoblin/claude-ruby-marketplace/plugin install rpi@claude-ruby-marketplaceInitialize the thoughts system for the current repository.
Run these checks and collect results:
~/thoughts exists: test -d "$HOME/thoughts"~/thoughts is git repo: test -d "$HOME/thoughts/.git"~/thoughts/global structure exists: test -d "$HOME/thoughts/global"test -x "$HOME/thoughts/bin/thoughts-sync"command -v thoughts-sync >/dev/null 2>&1test -d ".git"./thoughts/shared symlinked correctly: test -L "./thoughts/shared" && readlink "./thoughts/shared" | grep -q "thoughts/repos/"If all checks pass:
Thoughts system ready. RPI workflow commands will now work correctly.
- ~/thoughts: OK (with global/ structure)
- Scripts: OK (in PATH)
- Repository: OK (thoughts/shared → ~/thoughts/repos/{repo}/shared)
If any check fails: Build todo list of what needs fixing, present to user, wait for authorization.
If ~/thoughts missing:
mkdir -p "$HOME/thoughts/bin"
mkdir -p "$HOME/thoughts/global/$(whoami)"
mkdir -p "$HOME/thoughts/global/shared"
mkdir -p "$HOME/thoughts/repos"
git -C "$HOME/thoughts" init
cp "${CLAUDE_PLUGIN_ROOT}/templates/thoughts-bin/"* "$HOME/thoughts/bin/"
chmod +x "$HOME/thoughts/bin/"*
If PATH not configured:
RC_FILE="$HOME/.bashrc"
[[ "$SHELL" == *"zsh"* ]] && RC_FILE="$HOME/.zshrc"
echo 'export PATH="$HOME/thoughts/bin:$PATH"' >> "$RC_FILE"
Tell user to run source ~/.zshrc or restart terminal.
If current repo not initialized:
"$HOME/thoughts/bin/thoughts-init-repo"
After fixes, re-run checks and report final status.