-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·91 lines (73 loc) · 2.68 KB
/
update.sh
File metadata and controls
executable file
·91 lines (73 loc) · 2.68 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
# set -x
set -e
source "$HOME/.claude/lib/lint.sh"
echo "Updating Claude Code..."
claude update
echo "Updating plugin marketplaces..."
claude plugin marketplace update
claude plugin marketplace update claude-plugins-official
echo "Installing lsp servers..."
claude plugin install typescript-lsp
# Ensure pnpm global bin directory is configured
if [ -z "$PNPM_HOME" ]; then
echo "Configuring pnpm global bin directory..."
pnpm setup
if [[ "$OSTYPE" == "darwin"* ]]; then
export PNPM_HOME="$HOME/Library/pnpm"
else
export PNPM_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/pnpm"
fi
export PATH="$PNPM_HOME:$PATH"
fi
echo "Installing skills helper..."
pnpm add -g skills
AI_AGENT_LIST=(codex github-copilot claude-code)
AI_AGENTS=$(printf -- '-a %s ' "${AI_AGENT_LIST[@]}")
echo ""
echo "Installing skills for: ${AI_AGENT_LIST[*]}"
echo ""
echo "Updating vercel agent-browser..."
pnpm add -g agent-browser
agent-browser install
pnpm dlx skills add vercel-labs/agent-browser \
-g \
--skill agent-browser \
--skill skill-creator \
$AI_AGENTS \
-y
echo "Updating vercel agent-skills..."
pnpm dlx skills add vercel-labs/agent-skills \
-g \
--skill vercel-composition-patterns \
--skill vercel-react-best-practices \
$AI_AGENTS \
-y
echo "Installing linear CLI and skills..."
brew tap joa23/linear-cli https://github.com/joa23/linear-cli
brew install linear-cli
# these are already part of this repo and will not be overwritten by the command. Further, we have done some optimizations to prevent permission prompts etc.
# echo ""
# echo "Installing linear skills..."
# if ! (cd "$HOME" && linear skills install --all); then
# echo ""
# echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
# echo " ❌ Linear skills installation failed."
# echo ""
# echo " Run the following to set up Linear CLI (https://github.com/joa23/linear-cli/tree/main?tab=readme-ov-file#authentication),"
# echo " then re-run this script:"
# echo ""
# echo " # 1. Authenticate (as Personal, not a Agent, accept the default port, do not set your GitHub username)"
# echo " linear auth login"
# echo ""
# echo " # 2. Initialize your project (select default team)"
# echo " linear init"
# echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
# exit 1
# fi
lint_and_fix "pnpm check-markdown"
echo ""
echo ""
echo "Installed skills for: ${AI_AGENT_LIST[*]}"
echo ""
echo "Done! You must restart Claude (or vscode) for the changes to take effect."