AGENT SKILL

cpp-happy-check

Check if happy-cli is on the latest version

License 许可
MIT
所属仓库
cooneycw/skillc
最近更新
2026-11-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
cpp-happy-check
description
Check if happy-cli is on the latest version

03 SKILL.md 正文

<!-- GENERATED by claude-power-pack - scripts/codex-skill-sync.py; edit .claude/commands/cpp/happy-check.md instead -->

Happy CLI Version Check

Check if the installed happy-cli is on the latest version and report status.


Step 1: Get Installed Version

happy --version 2>&1 | grep -oP '(?<=happy version: )\S+' || echo "NOT_INSTALLED"

Step 2: Get Latest Version from GitHub

Use the GitHub API to get the latest release:

curl -s https://api.github.com/repos/slopus/happy-cli/releases/latest | grep -oP '"tag_name":\s*"v?\K[0-9.]+' || echo "FETCH_FAILED"

Step 3: Compare and Report

Compare the versions and output status:

If versions match:

Happy CLI Status: UP TO DATE
  Installed: {version}
  Latest:    {version}

If update available:

Happy CLI Status: UPDATE AVAILABLE
  Installed: {installed_version}
  Latest:    {latest_version}

To update: npm update -g happy-coder

If not installed:

Happy CLI Status: NOT INSTALLED

To install: npm install -g happy-coder

Step 4: Check Settings Status

Check if happy settings are valid:

cat ~/.happy/settings.json 2>/dev/null

Report if onboarding is incomplete:

  • If onboardingCompleted: false: Note that onboarding needs to be completed
  • If file missing: Note fresh install detected

Output Format

=== Happy CLI Status ===

Version: {status}
  Installed: {version}
  Latest:    {latest}

Settings: {status}
  Onboarding: {completed/incomplete}

{action items if any}

04 同仓库更多 Skills