mirror of
https://github.com/bevibing/tutor-skills.git
synced 2026-09-14 20:16:40 +08:00
a2c17b527d
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
30 lines
806 B
Bash
Executable File
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"
|