/nanopm:pm-upgradefrom nanopm
Upgrades nanopm to the latest version. Detects install type, runs upgrade, shows changelog. Handles inline upgrade prompts when UPGRADE_AVAILABLE appears in skill preambles.
Ships in nanopm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Multi-host portability rules. When invoking
AskUserQuestion:
- The
headerfield MUST be a short noun phrase (≤ 12 characters). Mistral Vibe rejects longer headers withstring_too_long. Pick from:Start,Target,Scope,Audience,Methodology,Feature,Question.- The
optionslist MUST have at least 2 items. Vibe rejects empty/single-option calls. For free-text input, always provide ≥ 2 framing options (e.g.Yes, here's the input/Skip) — never callask_user_questionwithoptions: [].
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || \
source .nanopm/lib/nanopm.sh 2>/dev/null || \
{ echo "ERROR: nanopm not installed. Run: curl -fsSL https://raw.githubusercontent.com/nmrtn/nanopm/main/setup | bash"; exit 1; }
nanopm_preamble
This section is followed by all skill preambles when they detect UPGRADE_AVAILABLE {old} {new} in the preamble output.
Check if auto-upgrade is configured:
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
_AUTO=$(nanopm_config_get "auto_upgrade")
echo "AUTO_UPGRADE=${_AUTO:-false}"
If AUTO_UPGRADE=true: skip AskUserQuestion. Log "Auto-upgrading nanopm v{old} → v{new}..." and proceed to Step 2.
Otherwise, ask via AskUserQuestion:
If "Yes, upgrade now": proceed to Step 2.
If "Always keep me up to date":
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_config_set "auto_upgrade" "true"
Tell user: "Auto-upgrade enabled — future updates will install automatically." Then proceed to Step 2.
If "Not now": write snooze state with escalating backoff. Then continue with the originally invoked skill without upgrading.
_SNOOZE="$HOME/.nanopm/update-snoozed"
_REMOTE_VER="{new}"
_CUR_LEVEL=0
if [ -f "$_SNOOZE" ]; then
_SV=$(awk '{print $1}' "$_SNOOZE")
if [ "$_SV" = "$_REMOTE_VER" ]; then
_CUR_LEVEL=$(awk '{print $2}' "$_SNOOZE")
case "$_CUR_LEVEL" in *[!0-9]*) _CUR_LEVEL=0 ;; esac
fi
fi
_NEW_LEVEL=$(( _CUR_LEVEL + 1 ))
[ "$_NEW_LEVEL" -gt 3 ] && _NEW_LEVEL=3
echo "$_REMOTE_VER $_NEW_LEVEL $(date +%s)" > "$_SNOOZE"
Tell user the snooze duration: level 1 → "next reminder in 24h"; level 2 → "48h"; level 3 → "1 week".
If "Never ask again":
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_config_set "update_check_disabled" "1"
rm -f "$HOME/.nanopm/update-snoozed"
Tell user: "Update checks disabled. Re-enable with: nanopm_config_set update_check_disabled 0 in your shell."
_LOCAL_REPO=""
# Check if we're inside the nanopm source repo
if [ -f "$(git rev-parse --show-toplevel 2>/dev/null)/pm-upgrade/SKILL.md" ] 2>/dev/null; then
_LOCAL_REPO=$(git rev-parse --show-toplevel)
fi
# Check common clone locations
[ -z "$_LOCAL_REPO" ] && [ -f "$HOME/Code/nanopm/pm-upgrade/SKILL.md" ] && \
_LOCAL_REPO="$HOME/Code/nanopm"
echo "LOCAL_REPO=${_LOCAL_REPO:-none}"
_OLD_VER=$(cat ~/.nanopm/VERSION 2>/dev/null || echo "unknown")
echo "OLD_VERSION=$_OLD_VER"
If LOCAL_REPO is set (git install):
cd "$_LOCAL_REPO"
git pull origin main
bash setup
If LOCAL_REPO is not set (curl / vendored install):
curl -fsSL https://raw.githubusercontent.com/nmrtn/nanopm/main/setup | bash
If the upgrade fails, tell the user: "Upgrade failed. Your current version (v{old}) is still active. Check your network connection or run the setup script manually."
rm -f ~/.nanopm/last-update-check
rm -f ~/.nanopm/update-snoozed
Fetch the changelog from GitHub:
_CHANGELOG=$(curl -fsSL --max-time 5 \
"https://raw.githubusercontent.com/nmrtn/nanopm/main/CHANGELOG.md" 2>/dev/null || echo "")
echo "$_CHANGELOG"
Find the section for the new version in the changelog. Summarize as 4-6 bullets grouped by theme (new skills, improvements, fixes). Don't list every line — focus on user-facing changes.
Format:
nanopm v{new} — upgraded from v{old}!
What's new:
- [bullet 1]
- [bullet 2]
...
After showing what's new, continue with the originally invoked skill (if this was an inline upgrade triggered by UPGRADE_AVAILABLE). If invoked standalone as /pm-upgrade, done.
When invoked directly as /pm-upgrade:
source ~/.nanopm/lib/nanopm.sh
_CHECK=$(nanopm_update_check)
echo "CHECK: $_CHECK"
If UPGRADE_AVAILABLE {old} {new} in output: follow Steps 1-6 above.
If no UPGRADE_AVAILABLE output: tell the user "You're already on the latest version (v{current})."
STATUS: DONE
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
nanopm, upgrade, auto-update, inline-prompt, package-manager
npx claudepluginhub nmrtn/nanopm --plugin nanopm26 skills in this plugin
/pm-add-feedbackThe single ingestion door for raw user signal. Accepts a file path, pasted text (--paste), or a connector source (Granola, Dovetail, Google Drive, tickets), archives it verbatim under .nanopm/raw/<type>/<id> before extraction, applies a Mom-Test discovery filter to pull problems + verbatim quotes, then runs the learning loop: Pass 1 grounds EXISTING opportunities (append verbatim, propose a provenance upgrade toward evidence-backed), Pass 2 surfaces NEW strategy-coherent opportunities. Every grounded/created opportunity is bidirectionally linked to its raw source, and the run ends with a machine-readable run-summary. One batched human confirmation before writes; headless (viewer) runs fall back to write-then-review with ⚠ low-confidence./pm-archiveArchive one entity (opportunity, solution, objective, competitor, or persona) with a polished, contextual reason sentence. Argument: <type>/<slug> (e.g. opportunity/cold-start-context or solution/inline-viewer-pane). User context: the raw reason and kind — 'implemented: ...', 'dropped: ...', 'absorbed: ...' for opportunities/solutions; 'completed: ...', 'abandoned: ...' for objectives; 'defunct: ...', 'pivoted: ...', 'irrelevant: ...' for competitors; 'outgrown: ...', 'dropped: ...' for personas./pm-brainstormJam with Nano, your expert CPO. An informal, context-loaded thinking partner for product ideas, user problems, and what-to-build-next — Nano knows your company context and current objectives, no gate, no PRD. Sessions are named and resumable via your host's native session resume.Other plugins' skills for the same job