feat: symlink settings.json globally, update bootstrap and readme
This commit is contained in:
40
BOOTSTRAP.md
40
BOOTSTRAP.md
@@ -70,7 +70,31 @@ ln -s /home/artanis/.cog/CLAUDE.md ~/.claude/CLAUDE.md
|
||||
|
||||
---
|
||||
|
||||
## Step 3 — Symlink skills globally
|
||||
## Step 3 — Symlink settings.json globally
|
||||
|
||||
`~/.claude/settings.json` should be a symlink to the Cog settings so hooks and permissions apply in every session.
|
||||
|
||||
Check what's there:
|
||||
|
||||
```bash
|
||||
ls -la ~/.claude/settings.json 2>/dev/null && echo "EXISTS" || echo "NOT FOUND"
|
||||
```
|
||||
|
||||
**If NOT FOUND:** create the symlink:
|
||||
```bash
|
||||
ln -s /home/artanis/.cog/.claude/settings.json ~/.claude/settings.json
|
||||
```
|
||||
|
||||
**If EXISTS and is already a symlink to the right place:** skip.
|
||||
|
||||
**If EXISTS and is a regular file:** replace it:
|
||||
```bash
|
||||
rm ~/.claude/settings.json && ln -s /home/artanis/.cog/.claude/settings.json ~/.claude/settings.json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 4 — Symlink skills globally
|
||||
|
||||
Create the commands directory and symlink all Cog skills into it:
|
||||
|
||||
@@ -93,7 +117,7 @@ done
|
||||
|
||||
---
|
||||
|
||||
## Step 4 — Verify
|
||||
## Step 5 — Verify
|
||||
|
||||
Run a quick sanity check:
|
||||
|
||||
@@ -101,6 +125,9 @@ Run a quick sanity check:
|
||||
# CLAUDE.md symlink resolves correctly
|
||||
readlink ~/.claude/CLAUDE.md
|
||||
|
||||
# settings.json symlink resolves correctly
|
||||
readlink ~/.claude/settings.json
|
||||
|
||||
# Skills are linked
|
||||
ls ~/.claude/commands/ | grep -E "personal|freelance|reflect|evolve"
|
||||
|
||||
@@ -110,19 +137,20 @@ git -C /home/artanis/.cog remote -v
|
||||
```
|
||||
|
||||
Expected:
|
||||
- `readlink` → `/home/artanis/.cog/CLAUDE.md`
|
||||
- First `readlink` → `/home/artanis/.cog/CLAUDE.md`
|
||||
- Second `readlink` → `/home/artanis/.cog/.claude/settings.json`
|
||||
- Skills listed
|
||||
- Repo clean, `origin` points to `https://gitea.bunny-wyvern.ts.net/artanis/Cog-Sync.git`
|
||||
|
||||
---
|
||||
|
||||
## Step 5 — Done
|
||||
## Step 6 — Done
|
||||
|
||||
Tell the user:
|
||||
|
||||
> Cog is set up. CLAUDE.md is active globally. Skills available: `/personal`, `/freelance`, `/reflect`, `/evolve`, `/history`, `/scenario`, `/housekeeping`, `/foresight`, `/explainer`, `/humanizer`.
|
||||
> Cog is set up. CLAUDE.md and settings.json are active globally. Skills available: `/personal`, `/freelance`, `/reflect`, `/evolve`, `/history`, `/scenario`, `/housekeeping`, `/foresight`, `/explainer`, `/humanizer`.
|
||||
>
|
||||
> Memory auto-syncs: pulls from Gitea on session start, pushes on session stop (when working inside `~/.cog`).
|
||||
> Memory auto-syncs in every session: pulls from Gitea on session start, pushes on session end.
|
||||
>
|
||||
> To add domains or reconfigure, open Claude Code in `~/.cog` and run `/setup`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user