with one click
update-framework
// Samuel version update workflow. Use when upgrading to a new Samuel version, migrating framework configurations, or applying upstream template changes while preserving local customizations.
// Samuel version update workflow. Use when upgrading to a new Samuel version, migrating framework configurations, or applying upstream template changes while preserving local customizations.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | update-framework |
| description | Samuel version update workflow. Use when upgrading to a new Samuel version, migrating framework configurations, or applying upstream template changes while preserving local customizations. |
| license | MIT |
| metadata | {"author":"samuel","version":"1.0","category":"workflow"} |
| Trigger | Action |
|---|---|
| New version announced | Full update |
| Want new language/framework skills | Selective update |
| Monthly maintenance | Check for updates |
| New team member needs latest | Verify version parity |
| Security advisory | Urgent update |
1. Check Current Version
└── Read CLAUDE.md version
↓
2. Fetch Latest Version
└── Clone/download latest
↓
3. Compare Versions
└── What's new? Breaking changes?
↓
4. Identify Customizations
└── What have you modified?
↓
5. Plan Update Strategy
└── Full replace vs. selective merge
↓
6. Execute Update
└── Backup, copy, merge
↓
7. Verify Update
└── Check files, validate
# Find current version in CLAUDE.md
grep "Current Version" CLAUDE.md
# Check when CLAUDE.md was last modified
ls -la CLAUDE.md
# List installed skills (language guides and framework skills)
ls .claude/skills/
# List installed workflows
ls .claude/skills/
CLAUDE.mdCLAUDE.mdCLAUDE.md.claude/memory/*.claude/tasks/*Files that are typically customized:
CLAUDE.md (always project-specific)CLAUDE.md (project conventions)Files that are typically NOT customized:
.claude/skills/*-guide/SKILL.md).claude/skills/<framework>/SKILL.md)# Clone latest version to temporary directory
git clone --depth 1 https://github.com/ar4mirez/samuel.git .ai-update-temp
# Check latest version
grep "Current Version" .ai-update-temp/CLAUDE.md
# Update subtree
git subtree pull --prefix=.ai-template \
https://github.com/ar4mirez/samuel.git main --squash
# View what's new
cat .ai-update-temp/CHANGELOG.md | head -100
# Compare versions
echo "Current: $(grep 'Current Version' CLAUDE.md)"
echo "Latest: $(grep 'Current Version' .ai-update-temp/CLAUDE.md)"
## Update Summary: v1.5.0 → v1.6.0
### New Files (safe to add):
- .claude/skills/new-framework/SKILL.md
- .claude/skills/new-workflow.md
### Modified Files (review recommended):
- CLAUDE.md (guardrails updated)
- .claude/skills/code-review.md (new checks)
### Your Customizations (will preserve):
- CLAUDE.md (project-specific)
- CLAUDE.md (project-specific)
- .claude/memory/* (decision logs)
- .claude/tasks/* (PRDs and tasks)
### Breaking Changes:
- None (or list if any)
Best when:
Process:
Best when:
Process:
Best when:
Process:
Based on:
# 1. Create backup directory
mkdir -p .ai-backup
# 2. Backup CLAUDE.md (if customized)
cp CLAUDE.md .ai-backup/
# 3. Backup project-specific files
cp CLAUDE.md .ai-backup/ 2>/dev/null || true
cp CLAUDE.md .ai-backup/ 2>/dev/null || true
cp CLAUDE.md .ai-backup/ 2>/dev/null || true
cp -r .claude/memory .ai-backup/ 2>/dev/null || true
cp -r .claude/tasks .ai-backup/ 2>/dev/null || true
# 4. Copy new template files
cp .ai-update-temp/CLAUDE.md ./
cp -r .ai-update-temp/.claude ./
# 5. Restore project-specific files
cp .ai-backup/project.md .claude/ 2>/dev/null || true
cp .ai-backup/patterns.md .claude/ 2>/dev/null || true
cp .ai-backup/state.md .claude/ 2>/dev/null || true
cp -r .ai-backup/memory/* .claude/memory/ 2>/dev/null || true
cp -r .ai-backup/tasks/* .claude/tasks/ 2>/dev/null || true
# 6. If you had CLAUDE.md customizations, merge them
# (AI will help with this step)
# 7. Clean up
rm -rf .ai-update-temp
rm -rf .ai-backup
# Add only new language guide skills
cp -r .ai-update-temp/.claude/skills/new-language-guide/ .claude/skills/
# Add only new framework skills
cp -r .ai-update-temp/.claude/skills/new-framework/ .claude/skills/
# Add only new workflows
cp .ai-update-temp/.claude/skills/new-workflow.md .claude/skills/
If you've customized CLAUDE.md:
Diff the files:
diff CLAUDE.md .ai-update-temp/CLAUDE.md
Identify your customizations (usually in specific sections)
AI will help merge:
CLAUDE.mdCLAUDE.mdCLAUDE.md.claude/memory/*.claude/tasks/*# Check version
grep "Current Version" CLAUDE.md
# List all skills (language guides and framework skills)
echo "=== Skills ==="
ls .claude/skills/
echo "=== Workflows ==="
ls .claude/skills/
# Verify project files exist
echo "=== Project Files ==="
ls -la CLAUDE.md CLAUDE.md CLAUDE.md 2>/dev/null
# Count memory files
echo "=== Memory Files ==="
ls .claude/memory/ 2>/dev/null | wc -l
Start a new AI session and verify:
User Request:
@.claude/skills/update-framework/SKILL.md
Update to the latest version of Samuel
AI Will:
User Request:
@.claude/skills/update-framework/SKILL.md
Check what's new in the latest version (don't update yet)
AI Will:
User Request:
@.claude/skills/update-framework/SKILL.md
I only want to add the new React and Next.js framework skills.
Keep everything else as-is.
AI Will:
User Request:
@.claude/skills/update-framework/SKILL.md
Verify my installation matches version 1.6.0 that the team is using.
AI Will:
User Request:
@.claude/skills/update-framework/SKILL.md
Update to latest. I have custom guardrails in CLAUDE.md that I need to keep.
AI Will:
| Workflow | Relationship |
|---|---|
| initialize-project | For first-time installation |
| cleanup-project | Remove unused guides after update |
| generate-agents-md | Regenerate AGENTS.md after update |
| document-work | Document the update decision |
For detailed migration steps, conflict resolution examples, and troubleshooting procedures, see: