项目文件夹

文件
Federico Bartoli a63f54b8ab Rename stale swe-skills references to agent-skills
The repository was renamed from swe-skills to agent-skills but
internal references were never updated. This caused:
- session-start.sh to silently fail (path using-swe-skills/ did
  not exist; the directory is using-agent-skills/)
- slash commands to invoke non-existent swe-skills: namespace
- docs and setup guides to point at the old clone URL

Rename all occurrences across 14 files: commands, CLAUDE.md,
README tree, docs/, and hooks/.
2026-02-23 12:02:07 +01:00

21 行
689 B
Bash
可执行文件

#!/bin/bash
# agent-skills session start hook
# Injects the using-agent-skills meta-skill into every new session
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SKILLS_DIR="$(dirname "$SCRIPT_DIR")/skills"
META_SKILL="$SKILLS_DIR/using-agent-skills/SKILL.md"
if [ -f "$META_SKILL" ]; then
CONTENT=$(cat "$META_SKILL")
# Output as JSON for Claude Code hook consumption
cat <<EOF
{
"priority": "IMPORTANT",
"message": "agent-skills loaded. Use the skill discovery flowchart to find the right skill for your task.\n\n$CONTENT"
}
EOF
else
echo '{"priority": "INFO", "message": "agent-skills: using-agent-skills meta-skill not found. Skills may still be available individually."}'
fi