refactor: rename source dir to bin, reorganize templates, remove personal info

- Rename myclaude/ source directory → bin/
- Update all Python imports (myclaude.* → bin.*) and mock patch paths
- Update pyproject.toml: entry point and packages config
- Move workspace_template/ → templates/workspace/ for future extensibility
- Migrate .claude/skills/ to global ~/.claude/skills/ and remove local copies
- Remove SessionStart hook (sync-global.sh) from settings.local.json
- Remove unrelated script rename_funcs_to_snake.py
- Remove personal info (name, org, paths) from CLAUDE.md, README.md, settings
- Update .gitignore with standard Python/runtime exclusions
- Clean .DS_Store, __pycache__, .mypy_cache, .pytest_cache, .ruff_cache,
  .playwright-mcp runtime files
This commit is contained in:
Zhengshou Lai
2026-04-26 09:37:13 +08:00
parent 432b700265
commit ab597d1d02
42 changed files with 80 additions and 6524 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ import os
from pathlib import Path
from unittest.mock import patch
from myclaude.project_root import get_myclaude_project_root, get_workspace_root
from bin.project_root import get_myclaude_project_root, get_workspace_root
class TestGetMyclaudeProjectRoot:
@@ -24,7 +24,7 @@ class TestGetMyclaudeProjectRoot:
"""When not in a repo, fallback to ~/.myclaude."""
with patch.dict(os.environ, {}, clear=True):
with patch("pathlib.Path.cwd", side_effect=OSError):
with patch("myclaude.project_root._pyproject_names_myclaude", return_value=False):
with patch("bin.project_root._pyproject_names_myclaude", return_value=False):
result = get_myclaude_project_root()
assert result == Path.home() / ".myclaude"
@@ -67,7 +67,7 @@ class TestGetWorkspaceRoot:
"""When no env var and no project workspace, default to ~/workspace."""
with (
patch.dict(os.environ, {}, clear=True),
patch("myclaude.project_root.get_myclaude_project_root", return_value=tmp_path / ".myclaude"),
patch("bin.project_root.get_myclaude_project_root", return_value=tmp_path / ".myclaude"),
patch.dict(os.environ, {}, clear=True),
):
with patch.dict(os.environ, {}, clear=True):