Files
Choi wontak a2c17b527d feat: add tutor skill and restructure repo for both skills
Reorganize repo to house both tutor-setup (vault generator) and tutor
(interactive quiz) skills under skills/ directory. Rewrite install/uninstall
scripts to handle both skills with per-skill overwrite prompts. Replace
README with unified English documentation covering the full learning cycle.

- git mv skill/ → skills/tutor-setup/ (preserves history)
- Add skills/tutor/ with SKILL.md and references/quiz-rules.md
- Rewrite install.sh and uninstall.sh to loop over both skills
- Rewrite README.md with workflow diagrams, phase tables, and usage guide
2026-02-24 01:35:24 +09:00

30 lines
806 B
Bash
Executable File

#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SKILLS=("tutor-setup" "tutor")
for skill in "${SKILLS[@]}"; do
SKILL_DIR="$HOME/.claude/skills/$skill"
if [ -d "$SKILL_DIR" ]; then
echo "$skill skill already exists at $SKILL_DIR"
printf "Overwrite? (y/N): "
read -r answer
if [ "$answer" != "y" ] && [ "$answer" != "Y" ]; then
echo "Skipping $skill."
continue
fi
fi
mkdir -p "$SKILL_DIR/references"
cp "$SCRIPT_DIR/skills/$skill/SKILL.md" "$SKILL_DIR/"
cp "$SCRIPT_DIR/skills/$skill/references/"* "$SKILL_DIR/references/"
echo "Installed $skill to $SKILL_DIR"
done
echo ""
echo "Done! Usage in Claude Code:"
echo " /tutor-setup — Generate a StudyVault from documents or code"
echo " /tutor — Start an interactive quiz session"