Skip to content

Add claude/README.md documenting layout and setup script#206

Draft
ikuwow wants to merge 2 commits into
mainfrom
claude-readme-layout-173
Draft

Add claude/README.md documenting layout and setup script#206
ikuwow wants to merge 2 commits into
mainfrom
claude-readme-layout-173

Conversation

@ikuwow

@ikuwow ikuwow commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Closes #173. Picks Option A from the issue (keep scripts/claude-code-setup.sh, add claude/README.md).

Why

A new session looking at ~/.claude/ will not see scripts/claude-code-setup.sh and defaults to ad-hoc claude mcp add invocations. The fix the issue identified was either physical relocation (B/C/D) or a navigation aid (A). Option A is the smallest disruption: every other location proposed in the issue breaks the claude/ ↔ ~/.claude/ mirror invariant or splits "claude-related" between two top-level paths, in exchange for moving one file. The cost-benefit favored navigation aid.

What

  • claude/README.md documents the per-file symlink table (with each deploy.sh rule's intent), the role of scripts/claude-code-setup.sh, and the MCP env-var convention (hardcoded non-secret values inline; ${VAR} only for secrets sourced from ~/.bash_profile.local).
  • AGENTS.md (symlinked from CLAUDE.md): corrects the inaccurate "claude/ directory is symlinked to ~/.claude/" line — the actual mapping is per-file. Also points new sessions at claude/README.md and the setup script.

Notes

  • The README's source table mirrors scripts/deploy.sh lines 63-74. Adding a new entry should update both — the README calls that out explicitly.
  • claude/plugins/config.json and claude/routines/*.md are intentionally listed as "not symlinked" — they are read from scripts/claude-code-setup.sh and persisted in the claude CLI's own state, not in ~/.claude/.

Verification

  • claude/README.md content cross-checked against scripts/deploy.sh lines 63-74 and the actual subdirectories present under claude/ (agents/, hooks/, plugins/, routines/, rules/, skills/, plus .mcp.json, settings.json, statusline-command.sh).
  • pre-commit run passes (lint hooks).
  • A fresh session that lands in claude/ reads the README and reaches scripts/claude-code-setup.sh without first attempting direct ~/.claude.json edits.

ikuwow and others added 2 commits June 7, 2026 14:57
Picks Option A from #173: keep scripts/claude-code-setup.sh where it
is, add a README that documents the per-file symlink map and points
new sessions at the setup script. Corrects the AGENTS.md statement
that previously claimed claude/ was symlinked as a directory.

Closes #173.

Co-authored-by: Claude Opus 4.6 <[email protected]>
The previous wording said "edit through scripts/claude-code-setup.sh"
which would mislead a future reader into thinking the file is
generated. The file is the symlinked registry the claude CLI reads;
hand-editing is the correct path. The setup script handles server
registration (a different concern, already explained in the next
section).

Co-authored-by: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reorganize claude/ layout: setup script placement and README

1 participant