본문으로 건너뛰기
cccskills
무료GitHub에 공개

nw-update

Queues a deferred self-update of nwave-ai. Writes a PendingUpdateFlag that the SessionStart hook replays on the next Claude Code launch, so the current session is not interrupted. Falls back to manual instructions when the package manager cannot be detected.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

NW-UPDATE: Queue Deferred nWave Self-Update

Wave: CROSS_WAVE | Agent: Main Instance (self) | Command: /nw-update

Overview

/nw-update records a PendingUpdateFlag on disk. The actual upgrade is performed by the SessionStart hook on the next Claude Code launch, so the user can keep working in the current session and apply the new version whenever they restart.

You (the main Claude instance) run this command directly — no subagent delegation. Do NOT attempt to upgrade nwave-ai in the current session.

Behavior Flow

Step 1: Resolve target version

  1. If the user passed an argument ($ARGUMENTS), treat it as the target version after stripping a leading v.
  2. Otherwise read the latest version discovered by the periodic update check from the global config (update_check.latest_available):
python3 -c "
import sys, os
sys.path.insert(0, os.path.expanduser('~/.claude/lib/python'))
from des.adapters.driven.config.des_config import DESConfig
print(DESConfig().update_check_latest_available or '')"
  1. If no argument AND no discovered version (empty output): ask the user for the target version explicitly. Do not guess.

Step 2: Detect the package manager and its binary

Invoke the detector and resolve the PM binary absolute path in a single Bash call.

This runs under whatever python3 the shell provides, which is NOT the interpreter nwave-ai was installed under — so sys.executable is the wrong anchor for detection. Use resolve_nwave_pm, which prefers the value the installer recorded at install time (install.package_manager in the global config) and only falls back to live path detection:

python3 -c "
import sys, os
sys.path.insert(0, os.path.expanduser('~/.claude/lib/python'))
import shutil
from pathlib import Path
from des.adapters.driven.config.des_config import DESConfig
from des.adapters.driven.package_managers.package_manager_detector import (
    resolve_nwave_pm,
)
pm = resolve_nwave_pm(DESConfig().installed_package_manager, Path(sys.executable))
binary = shutil.which(pm) if pm in ('pipx', 'uv') else ''
print(f'{pm}|{binary or \"\"}')"

Parse the output as pm|binary_abspath.

Step 3: Handle non-auto-updatable PM

If pm == "unknown" OR pm == "pip" OR binary_abspath is empty:

(detect_pm returns pip only when forced via NWAVE_INSTALLER=pip; pip installs are not auto-updatable through the deferred-upgrade flow, so they take the manual path alongside unknown.)

  1. Do NOT call PendingUpdateService.request_update.
  2. Print the manual fallback and stop:
nwave-ai was not installed via an auto-updatable package manager.
Please upgrade manually:

  uv tool install nwave-ai@latest && nwave-ai install
    — or —
  pipx upgrade nwave-ai && nwave-ai install
    — or, if you installed with pip —
  pip install -U nwave-ai && nwave-ai install

Then restart Claude Code.

Step 4: Queue the pending update

Call the driving port PendingUpdateService.request_update:

Reuse the pm and binary already resolved in Step 2 — do NOT re-detect from sys.executable here (that interpreter is not the install anchor). Construct DESConfig() directly; there is no DESConfig.load().

python3 -c "
import sys, os
sys.path.insert(0, os.path.expanduser('~/.claude/lib/python'))
from des.application.pending_update_service import PendingUpdateService
from des.adapters.driven.config.des_config import DESConfig

pm = '${PM}'
binary = '${PM_BINARY}'
target = '${TARGET_VERSION}'

config = DESConfig()
# PM adapter is only used by apply(); request_update() does not invoke it.
svc = PendingUpdateService(config=config, pm=None)  # type: ignore[arg-type]
svc.request_update(pm=pm, pm_binary_abspath=binary, target_version=target)
print(f'queued:{pm}:{target}')"

Substitute ${PM} and ${PM_BINARY} with the Step 2 values, and ${TARGET_VERSION} with the Step 1 value (no leading v).

Step 5: Confirm to the user

On success, print:

Update to vX.Y.Z queued. It will be applied the next time you restart Claude Code.
Package manager: <pipx|uv>  (<binary_abspath>)

Error Handling

ConditionResponse
No target version provided and none discoveredAsk the user for an explicit version
PM detection returns unknownPrint manual fallback (Step 3), do not write flag
shutil.which(pm) returns emptySame as unknown — print fallback
request_update raisesSurface the exception, do not claim success

Progress Tracking

This command is synchronous and fast (< 1s). Do not create a task list; print progress inline.

Success Criteria

  • Target version resolved (explicit arg, discovered, or asked)
  • PM detected and PM binary absolute path obtained
  • Either pending-update flag written OR manual fallback printed
  • User sees confirmation of the queued version and PM used

Examples

Example 1: Discovered version, pipx install

/nw-update

Reads update_check.latest_available = "1.4.2", detects pipx at /home/alex/.local/bin/pipx, queues flag, prints: Update to v1.4.2 queued. It will be applied the next time you restart Claude Code.

Example 2: Explicit version, uv install

/nw-update 1.5.0

Detects uv at /home/alex/.cargo/bin/uv, queues flag for 1.5.0.

Example 3: Unknown PM

/nw-update 1.4.2

Detector returns unknown (e.g. pip venv install). Prints manual fallback instructions and exits without writing the flag.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Review dimensions for validating agent quality - template compliance, safety, testing, and priority validation

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6212026년 9월 16일 업데이트

Review dimensions for validating agent quality - template compliance, safety, testing, and priority validation

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6212026년 9월 16일 업데이트

Review dimensions for acceptance test quality - happy path bias, GWT compliance, business language purity, coverage completeness, walking skeleton user-centricity, priority validation, observable behavior assertions, traceability coverage, and walking skeleton boundary proof

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6212026년 9월 16일 업데이트

Detailed 5-phase workflow for creating agents - from requirements analysis through validation and iterative refinement

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6212026년 9월 16일 업데이트

5-layer testing approach for agent validation including adversarial testing, security validation, and prompt injection resistance

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6212026년 9월 16일 업데이트

Architectural style selection decision matrices, trade-off analysis, structural enforcement rules, and combination patterns. Load when choosing or evaluating architecture styles.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6212026년 9월 16일 업데이트

nWave-ai의 스킬 모두 보기

이 스킬의 문제 신고