Setup Claude Code skills from berlysia/dotfiles for web version in other projects. Creates .claude/settings.json with auto-update hook...
This Skill sets up Claude Code skills from berlysia/dotfiles repository in other projects with a single command.
.claude/settings.json with SessionStart hook (if not exists)~/.claude/ immediatelyRead .claude/settings.json to check current state:
Create .claude/settings.json with this content:
{
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{
"type": "command",
"command": "curl -fsSL https://raw.githubusercontent.com/berlysia/dotfiles/master/scripts/install-skills.sh | bash"
}
]
}
]
}
}
Important: Use exact JSON structure with proper nesting.
If .claude/settings.json already exists, guide user to manually add SessionStart hook:
To enable auto-update, add this to your .claude/settings.json:
{
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{
"type": "command",
"command": "curl -fsSL https://raw.githubusercontent.com/berlysia/dotfiles/master/scripts/install-skills.sh | bash"
}
]
}
]
}
}
After creating or updating settings.json, run installation:
curl -fsSL https://raw.githubusercontent.com/berlysia/dotfiles/master/scripts/install-skills.sh | bash
This installs skills to ~/.claude/skills/ right away.
Check that skills were installed:
ls ~/.claude/skills/
Expected output: List of skill directories.
Tell user:
/skill-name commandsAfter installation, these skills will be available:
/semantic-commit - Complex commit splitting and semantic commit generation/react-hooks - React hooks best practices and optimization/codex:review - Code review via Codex plugin/logic-validation - Logic consistency validation/optimizing-claude-md - CLAUDE.md quality analysis/skill-builder - Guided skill creationcurl command fails:
git clone https://github.com/berlysia/dotfilesSettings.json syntax error:
Skills not appearing:
~/.claude/skills/ directory existsUser: "Setup Claude skills from your dotfiles"