-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (21 loc) · 1010 Bytes
/
install.sh
File metadata and controls
executable file
·29 lines (21 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# Installs the transcript-critic skill for Claude Code:
# 1. Copies SKILL.md to ~/.claude/skills/transcribe/
# 2. Adds permission rules to ~/.claude/settings.json so that
# /transcribe runs without interactive prompts
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SKILL_DIR="${HOME}/.claude/skills/transcribe"
SETTINGS_FILE="${HOME}/.claude/settings.json"
# --- 1. Install the skill ---
mkdir -p "$SKILL_DIR"
cp -f "$SCRIPT_DIR/SKILL.md" "$SKILL_DIR/SKILL.md"
echo "Installed SKILL.md to $SKILL_DIR/"
# --- 2. Add permissions to global settings ---
# Allow reading the analysis prompt and other files from this repository.
# Because /transcribe is a global skill that runs from any directory,
# this rule must be in the global ~/.claude/settings.json.
READ_RULE="Read(~/github.com/jftuga/transcript-critic/**)"
python3 "$SCRIPT_DIR/add_permission.py" "$SETTINGS_FILE" "$READ_RULE"
echo ""
echo "Installation complete. You can now use /transcribe in Claude Code."