AgentSkillsCN

self-update

将 AGI Agent Kit 更新至 NPM 的最新版本。

SKILL.md
--- frontmatter
name: self-update
description: Update the AGI Agent Kit to the latest version from NPM
version: 1.0.0

Self-Update Skill

Updates the AGI Agent Kit framework components (skills, agents, workflows) to the latest published version.

When to Use

  • When a new version of @techwavedev/agi-agent-kit is available
  • When you want to sync your local installation with the latest templates
  • After the user asks to "update", "upgrade", or "get latest skills"

How It Works

  1. Check Current Version: Reads .agi.json for installed version (if present)
  2. Fetch Latest: Runs npm view @techwavedev/agi-agent-kit version
  3. Update: Re-runs init with --pack=full to overlay new templates

Quick Commands

bash
# Check installed version
cat .agi.json 2>/dev/null || echo "No version metadata found"

# Check latest NPM version
npm view @techwavedev/agi-agent-kit version

# Update to latest (re-init with full pack)
npx @techwavedev/agi-agent-kit@latest init --pack=full

Update Script

Use the provided script for a guided update:

bash
python3 skills/self-update/scripts/update_kit.py

What Gets Updated

ComponentUpdated?Notes
Skills✅ YesAll skills from templates
Agents✅ Yes.agent/ directory
Workflows✅ Yes.agent/workflows/
Skill Creator✅ Yesskill-creator/
AGENTS.md✅ YesOverwrites with latest
User's .env❌ NoNever touched
User's directives❌ NoPreserved

Notes

  • The update process overwrites skill scripts. If you've customized them, back up first.
  • Your .env and custom directives are always preserved.
  • After updating, run /checkup to verify everything is working.