Files
Skills/install.sh
T
Brummel 26e9630496 refactor: drop dev-cycle-profile.yml for conventions + CLAUDE.md facts
The profile was never parsed — it was prose the skill bodies told the model to read, so most slots were dead, constant across every project, or fiction (the whole pipeline block, including the "tdd is opt-in" claim, was enforced by nothing).

Split it in two: constants become fixed conventions named directly by the skills (new docs/conventions.md), and the few genuinely per-project facts move to each project's CLAUDE.md under '## Skills plugin: project facts'. tdd/fieldtest/docwriter are now always available; the only behavioural toggle left is spec auto-sign.

Delete docs/profile-schema.md and templates/project-profile.yml; add docs/conventions.md and a project-facts section to templates/CLAUDE.md.fragment; rewrite all SKILL/agent prose and the pipeline/design/migration/README/INSTALL docs accordingly.
2026-06-13 16:30:02 +02:00

57 lines
1.6 KiB
Bash
Executable File

#!/usr/bin/env bash
# Install the skills plugin globally into ~/.claude/.
#
# Each top-level directory that contains a SKILL.md is treated as
# a skill. For each such <name>, creates symlinks:
# ~/.claude/skills/<name> -> <repo>/<name>
# ~/.claude/agents/<name> -> <repo>/<name>/agents (if that dir exists)
#
# Idempotent — existing symlinks pointing to this repo are left
# alone; existing entries that point elsewhere are reported and
# skipped.
set -euo pipefail
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CLAUDE_SKILLS="$HOME/.claude/skills"
CLAUDE_AGENTS="$HOME/.claude/agents"
mkdir -p "$CLAUDE_SKILLS" "$CLAUDE_AGENTS"
link_one() {
local src="$1"
local dst="$2"
if [ -L "$dst" ]; then
local existing
existing="$(readlink "$dst")"
if [ "$existing" = "$src" ]; then
echo "ok $dst -> $src"
return 0
fi
echo "skip $dst already symlinked to $existing"
return 0
fi
if [ -e "$dst" ]; then
echo "skip $dst exists and is not a symlink"
return 0
fi
ln -s "$src" "$dst"
echo "link $dst -> $src"
}
for d in "$REPO_DIR"/*/; do
[ -d "$d" ] || continue
[ -f "$d/SKILL.md" ] || continue
name="$(basename "$d")"
link_one "${d%/}" "$CLAUDE_SKILLS/$name"
if [ -d "$d/agents" ]; then
link_one "${d%/}/agents" "$CLAUDE_AGENTS/$name"
fi
done
echo
echo "Install complete."
echo "Next: add a '## Skills plugin: project facts' section to each"
echo "project's CLAUDE.md (template: $REPO_DIR/templates/CLAUDE.md.fragment)."