一键导入
okr-upgrade
Update okr-os to the latest version. Use when: "upgrade okr-os", "update okr skills", "get latest version", "okr-os update", "new version".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update okr-os to the latest version. Use when: "upgrade okr-os", "update okr skills", "get latest version", "okr-os update", "new version".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Friday Wins Celebration from Radical Focus. End the week by celebrating progress, recognizing focus, and gathering team feedback. Use when: "friday wins", "weekly celebration", "demo day", "wins session".
Monday Commitment Meeting — the Four-Square format from Radical Focus. Triggers: "monday meeting", "weekly commitments", "four-square", "check in on OKRs", "monday check-in", "weekly OKR review", "commitment meeting"
Generate a one-pager for new team members joining mid-quarter. Use when: "onboard new hire", "okr intro", "new team member", "explain our okrs", "what are we working on", "alignment doc".
Quarterly OKR setting session. Facilitates the Wodtke method from Radical Focus. Use when: "set okrs", "new quarter", "define objectives", "okr setting", "quarterly planning", "set key results", "start Q2", "start Q3", "new okrs", "what should we focus on", "quarterly goals".
First-time OKR onboarding. Sets up mission, strategy, and prerequisites. Use when: "setup okrs", "get started with okrs", "okr onboarding", "define our mission", "okr prerequisites", "first time okrs".
Generate the weekly OKR status email — Zynga-style from Radical Focus. Triggers: "status email", "weekly status", "okr update email", "write status"
| name | okr-upgrade |
| version | 0.1.0 |
| description | Update okr-os to the latest version. Use when: "upgrade okr-os", "update okr skills", "get latest version", "okr-os update", "new version". |
| allowed-tools | ["Read","Bash","AskUserQuestion"] |
_SCRIPT_DIR=$(cd "$(dirname "$(readlink ~/.claude/skills/okr-os 2>/dev/null || echo ~/.claude/skills/okr-os)")" && pwd)
echo "INSTALL_DIR: $_SCRIPT_DIR"
_CURRENT_VERSION=$(cat "$_SCRIPT_DIR/VERSION" 2>/dev/null || echo "unknown")
echo "CURRENT_VERSION: $_CURRENT_VERSION"
_IS_GIT=$(cd "$_SCRIPT_DIR" && git rev-parse --is-inside-work-tree 2>/dev/null || echo "false")
echo "IS_GIT_INSTALL: $_IS_GIT"
From preamble output:
IS_GIT_INSTALL: true — installed via git clone. Upgrade with git pull.IS_GIT_INSTALL: false — installed manually (copied files). Cannot auto-upgrade.
Tell user: "okr-os was installed manually (not via git clone). To upgrade,
download the latest version and re-run ./setup"cd "$_SCRIPT_DIR" && git fetch origin main 2>/dev/null
_REMOTE_VERSION=$(cd "$_SCRIPT_DIR" && git show origin/main:VERSION 2>/dev/null || echo "unknown")
echo "REMOTE_VERSION: $_REMOTE_VERSION"
_LOCAL_CHANGES=$(cd "$_SCRIPT_DIR" && git status --porcelain 2>/dev/null | wc -l | tr -d ' ')
echo "LOCAL_CHANGES: $_LOCAL_CHANGES"
If versions match: "You're already on the latest version (v$CURRENT_VERSION). No upgrade needed."
If local changes exist: warn via AskUserQuestion: "You have local changes to okr-os files. Upgrading will overwrite them." Options:
cd "$_SCRIPT_DIR" && git reset --hard origin/main
cd "$_SCRIPT_DIR" && ./setup
cd "$_SCRIPT_DIR" && git log --oneline "$_CURRENT_VERSION"..HEAD 2>/dev/null | head -20
Read CHANGELOG.md and extract the section between the old and new version. Present a summary: "Updated from v{old} to v{new}. Here's what changed:"
rm -f ~/.okr-os/.update-snooze 2>/dev/null || true
This skill pulls code from a remote git repository and executes a setup script. The setup script only creates symlinks and makes files executable. It does not run arbitrary code beyond that.
Users should verify the remote URL points to the official okr-os repository:
cd "$_SCRIPT_DIR" && git remote get-url origin
Brief and factual. State what version you're on, what's available, what changed. No sales pitch for upgrading. Just the facts.