Skip to content

chore: move Claude Code config to version control #108

@vredchenko

Description

@vredchenko

Summary

Move unversioned Claude Code configuration from workspace root to smartem-devtools/claude-code/ and symlink back. Additionally, add CLI commands to verify and repair workspace setup.

Current State

~/dev/ERIC/                    # workspace root (not a git repo)
├── CLAUDE.md                  # unversioned (copy)
├── claude-config/             # symlink ✓
├── .claude/
│   ├── settings.local.json    # created by CLI
│   └── skills/                # EMPTY (bug: wrong paths in config)

Target State

smartem-devtools/claude-code/
├── CLAUDE.md                  # versioned
├── ARCHITECTURE.md            # versioned
├── shared/skills/             # versioned skills
└── ...

~/dev/ERIC/
├── CLAUDE.md → repos/.../smartem-devtools/claude-code/CLAUDE.md
├── claude-config → repos/.../smartem-devtools/claude-code/
├── .claude/
│   ├── settings.local.json
│   └── skills/
│       ├── database-admin → .../claude-code/shared/skills/database-admin
│       ├── devops → ...
│       └── ...

Benefits

  • Claude Code config becomes version controlled
  • Changes are trackable and reviewable
  • Shared across team via smartem-workspace CLI setup
  • check command can verify and repair setup

Implementation

  1. ✅ Move files to smartem-devtools/claude-code/ (done previously)
  2. ✅ Create claude-config symlink (done in CLI)
  3. ⬜ Fix skill paths in repos.json (missing claude-code/ prefix)
  4. ⬜ Change CLAUDE.md from copy to symlink
  5. ⬜ Implement smartem-workspace check [--fix] command
  6. ⬜ Implement smartem-workspace sync command

CLI Commands (New)

# Verify workspace setup
smartem-workspace check
smartem-workspace check --scope claude
smartem-workspace check --scope repos

# Repair issues
smartem-workspace check --fix

# Pull latest from remotes
smartem-workspace sync
smartem-workspace sync --dry-run

Tracked in PR #109

Metadata

Metadata

Assignees

No one assigned

    Labels

    adminProject maintenance, dependency updates, or housekeepingsmartem-devtools:claudeClaude Code configuration, skills, and prompts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions