Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions core/claude-code-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
"description": "Claude Code integration configuration for SmartEM workspace",
"claudeConfig": {
"skills": [
{ "name": "database-admin", "path": "claude-code/shared/skills/database-admin" },
{ "name": "database", "path": "claude-code/shared/skills/database" },
{ "name": "devops", "path": "claude-code/shared/skills/devops" },
{ "name": "technical-writer", "path": "claude-code/shared/skills/technical-writer" },
{ "name": "tech-writer", "path": "claude-code/shared/skills/tech-writer" },
{ "name": "git", "path": "claude-code/shared/skills/git" },
{ "name": "github", "path": "claude-code/shared/skills/github" },
{ "name": "ascii-art", "path": "claude-code/shared/skills/ascii-art" },
{ "name": "playwright-skill", "path": "claude-code/smartem-frontend/skills/playwright-skill" }
{ "name": "playwright", "path": "claude-code/smartem-frontend/skills/playwright" }
],
"defaultPermissions": {
"allow": [
Expand Down
2 changes: 1 addition & 1 deletion packages/smartem-workspace/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "smartem-workspace"
version = "0.6.0"
version = "0.6.1"
description = "CLI tool to automate SmartEM multi-repo workspace setup"
readme = "README.md"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/smartem-workspace/smartem_workspace/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""SmartEM workspace setup CLI tool."""

__version__ = "0.6.0"
__version__ = "0.6.1"
30 changes: 30 additions & 0 deletions packages/smartem-workspace/smartem_workspace/commands/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,27 @@ def run_claude_checks(workspace_path: Path, claude_config: ClaudeCodeConfig) ->
else:
results.append(CheckResult(".claude/skills directory", "ok", "Present"))

expected_skill_names = {skill.name for skill in claude_config.claudeConfig.skills}
for skill in claude_config.claudeConfig.skills:
skill_link = skills_dir / skill.name
skill_target = devtools_path / skill.path
results.append(check_symlink(skill_link, skill_target, f"skill: {skill.name}"))

if skills_dir.exists():
for entry in skills_dir.iterdir():
if entry.name in expected_skill_names:
continue
if entry.is_symlink() and not entry.exists():
results.append(
CheckResult(
f"skill: {entry.name}",
"warning",
"Broken symlink (stale)",
fixable=True,
fix_data={"remove_broken_symlink": str(entry)},
)
)

settings_path = workspace_path / ".claude" / "settings.local.json"
if settings_path.exists():
results.append(check_json_valid(settings_path, "settings.local.json"))
Expand Down Expand Up @@ -407,6 +423,20 @@ def apply_fixes(workspace_path: Path, reports: list[CheckReport]) -> tuple[int,
console.print(f" [red]Failed to create directory: {e}[/red]")
failed += 1

elif "remove_broken_symlink" in fix_data:
broken_path = Path(fix_data["remove_broken_symlink"])
try:
if broken_path.is_symlink() and not broken_path.exists():
broken_path.unlink()
console.print(f" [green]Removed broken symlink: {broken_path.name}[/green]")
fixed += 1
else:
console.print(f" [yellow]Skipped (no longer broken): {broken_path.name}[/yellow]")
failed += 1
except OSError as e:
console.print(f" [red]Failed to remove broken symlink: {e}[/red]")
failed += 1

elif "link" in fix_data and "target" in fix_data:
link_path = Path(fix_data["link"])
target_path = Path(fix_data["target"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
"description": "Claude Code integration configuration for SmartEM workspace",
"claudeConfig": {
"skills": [
{ "name": "database-admin", "path": "claude-code/shared/skills/database-admin" },
{ "name": "database", "path": "claude-code/shared/skills/database" },
{ "name": "devops", "path": "claude-code/shared/skills/devops" },
{ "name": "technical-writer", "path": "claude-code/shared/skills/technical-writer" },
{ "name": "tech-writer", "path": "claude-code/shared/skills/tech-writer" },
{ "name": "git", "path": "claude-code/shared/skills/git" },
{ "name": "github", "path": "claude-code/shared/skills/github" },
{ "name": "ascii-art", "path": "claude-code/shared/skills/ascii-art" },
{ "name": "playwright-skill", "path": "claude-code/smartem-frontend/skills/playwright-skill" }
{ "name": "playwright", "path": "claude-code/smartem-frontend/skills/playwright" }
],
"defaultPermissions": {
"allow": [
Expand Down
2 changes: 1 addition & 1 deletion packages/smartem-workspace/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading