#!/bin/bash # install.sh — Install resume-tailor skill to Claude Code # Works from a cloned repo or via: curl -fsSL /install.sh | bash set -e REPO_URL="https://github.com/nishilbhave/ats-resume-tailor.git" SKILL_DIR="$HOME/.claude/skills/resume-tailor" AGENT_DIR="$HOME/.claude/agents" # Detect if running from a cloned repo or piped from curl if [ -f "SKILL.md" ] && [ -d "agents" ]; then SRC_DIR="." CLEANUP=false else echo "Fetching ats-resume-tailor..." SRC_DIR=$(mktemp -d) git clone --depth 1 "$REPO_URL" "$SRC_DIR" 2>/dev/null CLEANUP=true fi echo "Installing resume-tailor skill..." # Create dirs mkdir -p "$SKILL_DIR/agents" mkdir -p "$SKILL_DIR/references" mkdir -p "$AGENT_DIR" # Copy skill files cp "$SRC_DIR/SKILL.md" "$SKILL_DIR/SKILL.md" cp "$SRC_DIR/references/agent-flow.md" "$SKILL_DIR/references/agent-flow.md" # Copy agent files cp "$SRC_DIR/agents/gap-analyzer.md" "$AGENT_DIR/resume-gap-analyzer.md" cp "$SRC_DIR/agents/bullet-rewriter.md" "$AGENT_DIR/resume-bullet-rewriter.md" cp "$SRC_DIR/agents/ats-scorer.md" "$AGENT_DIR/resume-ats-scorer.md" cp "$SRC_DIR/agents/cover-writer.md" "$AGENT_DIR/resume-cover-writer.md" cp "$SRC_DIR/agents/diff-generator.md" "$AGENT_DIR/resume-diff-generator.md" cp "$SRC_DIR/agents/interview-prep.md" "$AGENT_DIR/resume-interview-prep.md" cp "$SRC_DIR/agents/jd-comparator.md" "$AGENT_DIR/resume-jd-comparator.md" # Also copy agents into skill dir for reference cp "$SRC_DIR/agents/"*.md "$SKILL_DIR/agents/" # Clean up temp dir if we cloned if [ "$CLEANUP" = true ]; then rm -rf "$SRC_DIR" fi echo "" echo " resume-tailor installed successfully" echo "" echo " Skill: $SKILL_DIR" echo " Agents: $AGENT_DIR" echo "" echo " Usage — open Claude Code in any directory and run:" echo "" echo " /resume tailor Full analysis + tailored resume" echo " /resume gap Gap analysis only" echo " /resume ats ATS score only" echo " /resume cover Cover letter (3 variants)" echo " /resume interview Interview prep" echo " /resume compare Compare against multiple JDs" echo ""