claude is so complicated with setting up, being unflexible on purpose. i have to maunally hook a command to symlink my ~...

claude is so complicated with setting up, being unflexible on purpose. i have to maunally hook a command to symlink my ~/.agents/ folder, instead it reading it by default, like openai does.## Use skills from `~/.agents/skills`Claude Code reads personal skills from `~/.claude/skills`, not `~/.agents/skills`. A `SessionStart` hook links any new skills across automatically.### 1. Create the scriptRun `mkdir -p ~/.claude/hooks`, then save this as `~/.claude/hooks/link-agent-skills.sh`:```bash#!/usr/bin/env bash# Links any new skills from ~/.agents/skills into ~/.claude/skills.for d in ~/.agents/skills/*/; do name=$(basename "$d") [ "$name" = "code-review" ] && continue [ -e ~/.claude/skills/"$name" ] || ln -s "${d%/}" ~/.claude/skills/"$name"doneexit 0````code-review` is skipped because it has the same name as the built-in `/code-review`.### 2. Add the hookAdd this to `~/.claude/settings.json`. If a `hooks` key already exists, add `SessionStart` inside it.```json"hooks": { "SessionStart": ...

Read Original

Related