SpecKit Safe Update
This skill provides safe update capabilities for GitHub SpecKit installations, preserving customizations while applying template updates.
Installation: Available via plugin (/plugin marketplace add NotMyself/claude-plugins then /plugin install speckit-updater) or manual Git clone. See README.md for details.
When to Use
- You need to update or install SpecKit templates while preserving project customizations.
- You want a safe approval flow around update, rollback, or version-specific SpecKit operations.
- The task is to operate the SpecKit updater conversationally instead of running raw commands blindly.
What to do when this skill is invoked
When the user invokes /speckit-updater, you should:
Run the update orchestrator script without any flags (conversational mode):
pwsh -NoProfile -Command "& 'C:\Users\bobby\.claude\skills\speckit-updater\scripts\update-wrapper.ps1'"
Parse the output for markers:
[PROMPT_FOR_APPROVAL] - Update scenario (existing SpecKit installation)
[PROMPT_FOR_INSTALL] - Fresh installation scenario (no .specify/ directory)
For Updates ([PROMPT_FOR_APPROVAL] marker found):
- Present the Markdown summary showing:
- Current version vs. available version
- Files to update/add/remove
- Conflicts detected (if any)
- Files preserved (customized)
- Backup location
- Custom commands
- Ask the user for approval to proceed with the update
- If approved, re-run with
-Proceed flag
- If declined, inform the user the update was cancelled
For Fresh Installations ([PROMPT_FOR_INSTALL] marker found):
- Present a natural installation offer to the user, such as:
- "SpecKit is not currently installed in this project. Would you like me to install it?"
- "I can install the latest SpecKit templates for you. This will create the .specify/ directory structure and download the templates from GitHub."
- Do NOT mention the
-Proceed flag to the user (this is an implementation detail)
- If user approves (says "yes", "proceed", "install it", etc.), re-run with
-Proceed flag
- If user declines, inform them the installation was cancelled
Execute approved action by re-running with -Proceed flag:
pwsh -NoProfile -Command "& 'C:\Users\bobby\.claude\skills\speckit-updater\scripts\update-wrapper.ps1' -Proceed"
Special cases:
- If user requests
-CheckOnly: run with that flag and show the report
- If user requests
-Rollback: run with that flag and confirm restoration
- If user requests specific
-Version: include that parameter
Commands
/speckit-updater
Updates SpecKit templates, commands, and scripts while preserving customizations.
Usage:
/speckit-updater - Interactive update/install with conversational approval workflow (recommended for Claude Code)
/speckit-updater -Proceed - Proceed with update/install after approval (used by Claude after user confirms)
/speckit-updater -CheckOnly - Check for updates without applying
/speckit-updater -Version v0.0.72 - Update to specific version
/speckit-updater -Force - Force overwrite SpecKit files (preserves custom commands)
/speckit-updater -Rollback - Restore from previous backup
/speckit-updater -Auto - DEPRECATED: Use conversational workflow instead (shows warning, maps to -Proceed)
Fresh Installation (No .specify/ directory):
- First invocation shows installation offer with
[PROMPT_FOR_INSTALL] marker
- Claude Code presents natural question to user (e.g., "Would you like me to install SpecKit?")
- User approves via conversational response (e.g., "yes", "proceed", "install it")
- Claude re-invokes with
-Proceed flag automatically (implementation detail hidden from user)
- Script creates
.specify/ structure, downloads templates, creates manifest
- Exit code 0 throughout (awaiting approval is not an error)
- Consistent with update flow: both use conversational approval workflow
Process:
- Validates prerequisites (Git installed, clean Git state, write permissions)
- Loads or creates manifest (.specify/manifest.json)
- Fetches target version from GitHub Releases API
- Compares file hashes to identify customizations
- Creates timestamped backup
- Applies selective updates preserving customized files
- Opens VSCode merge editor for conflicts (Flow A: one at a time)
- Automatically invokes /speckit.constitution for constitution updates
- Updates manifest with new version
- Manages backup retention (keeps last 5)
When you invoke this command, I will:
- Execute the update-orchestrator.ps1 script
- Parse output for markers (
[PROMPT_FOR_APPROVAL] for updates, [PROMPT_FOR_INSTALL] for fresh installations)
- For updates: Present Markdown summary of proposed changes
- For installations: Ask naturally if you want to install SpecKit (without mentioning
-Proceed flag)
- Wait for your approval via chat conversation
- After approval: automatically re-invoke with
-Proceed flag to execute
- Guide you through conflict resolution one file at a time (updates only)
- Open VSCode diff/merge tools as needed (updates only)
- Report results with detailed summary
Conversational Workflow: The skill uses a two-step approval process:
- Step 1: Outputs summary → script exits → waits for approval
- Step 2: After approval, Claude re-invokes with
-Proceed → applies updates
Requirements:
- Git installed and in PATH
- Internet connection for fetching updates from GitHub
- Write permissions to .specify/ and .claude/ directories
- Clean or staged Git working directory
The script is located at: {skill_path}/scripts/update-wrapper.ps1 (entry point) and {skill_path}/scripts/update-orchestrator.ps1 (main logic)
Entry point command:
pwsh -NoProfile -Command "& '{skill_path}/scripts/update-wrapper.ps1' [parameters]"
Note: Both PowerShell-style (-CheckOnly) and Linux-style (--check-only) flags are supported via the wrapper script.
Features
- Customization Preservation: Automatically detects and preserves user customizations using normalized file hashing
- Intelligent Conflict Resolution: Guides through conflicts one-at-a-time with 4 options: merge editor, keep mine, use new, skip
- Version Tracking: Maintains
.specify/manifest.json with file hashes, version info, and backup history
- Automatic Backups: Creates timestamped backups in
.specify/backups/ with automatic retention management
- Fail-Fast with Rollback: Automatically rolls back on any error, restoring pre-update state
- Dry-Run Mode:
--check-only shows exactly what would change without applying updates
- Constitution Integration: Notifies when constitution template has updates (run
/speckit.constitution)
- Custom Command Safety: User-created commands never overwritten, even with
--force
Architecture
Modules
- HashUtils: Normalized hashing (handles line endings, trailing whitespace, BOM)
- VSCodeIntegration: Context detection, Quick Pick, diff/merge editor integration
- GitHubApiClient: GitHub Releases API interaction (unauthenticated, 60 req/hour)
- ManifestManager: Manifest CRUD operations with caching
- BackupManager: Backup creation, restoration, and retention management
- ConflictDetector: File state analysis and conflict detection
Workflow
- Prerequisites validation (critical checks must pass, warnings allow continuation)
- Manifest loading/creation (safe default: assume all files customized if no manifest)
- GitHub API query for target version
- File state analysis (6 actions: add/remove/merge/preserve/update/skip)
- User confirmation with change preview
- Backup creation (timestamped, excludes backups directory)
- Selective file updates (fail-fast with automatic rollback)
- Conflict resolution (Flow A: one-at-a-time, VSCode merge editor)
- Manifest update (version, file hashes, customization flags)
- Backup cleanup (keep 5 most recent, requires confirmation)
- Detailed summary display
Exit Codes
| Code |
Meaning |
| 0 |
Success |
| 1 |
General error |
| 2 |
Prerequisites not met |
| 3 |
Network/API error |
| 4 |
Git error |
| 5 |
User cancelled |
| 6 |
Rollback required (automatic) |
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Source: sickn33/agentic-awesome-skills → skills/speckit-updater/SKILL.md
Also appears in: sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/speckit-updater/SKILL.md, sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/speckit-updater/SKILL.md
1---
2name: speckit-updater
3description: "SpecKit Safe Update"
4category: general-purpose
5source_repo: sickn33/agentic-awesome-skills
6source_path: "skills/speckit-updater/SKILL.md"
7source_url: https://github.com/sickn33/agentic-awesome-skills/blob/HEAD/skills/speckit-updater/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/sickn33/speckit-updater
10---
11
12
13# SpecKit Safe Update
14
15This skill provides safe update capabilities for GitHub SpecKit installations, preserving customizations while applying template updates.
16
17**Installation**: Available via plugin (`/plugin marketplace add NotMyself/claude-plugins` then `/plugin install speckit-updater`) or manual Git clone. See README.md for details.
18
19## When to Use
20- You need to update or install SpecKit templates while preserving project customizations.
21- You want a safe approval flow around update, rollback, or version-specific SpecKit operations.
22- The task is to operate the SpecKit updater conversationally instead of running raw commands blindly.
23
24## What to do when this skill is invoked
25
26When the user invokes `/speckit-updater`, you should:
27
281. **Run the update orchestrator script** without any flags (conversational mode):
29 ```powershell
30 pwsh -NoProfile -Command "& 'C:\Users\bobby\.claude\skills\speckit-updater\scripts\update-wrapper.ps1'"
31 ```
32
332. **Parse the output** for markers:
34 - **`[PROMPT_FOR_APPROVAL]`** - Update scenario (existing SpecKit installation)
35 - **`[PROMPT_FOR_INSTALL]`** - Fresh installation scenario (no .specify/ directory)
36
373. **For Updates** (`[PROMPT_FOR_APPROVAL]` marker found):
38 - **Present the Markdown summary** showing:
39 - Current version vs. available version
40 - Files to update/add/remove
41 - Conflicts detected (if any)
42 - Files preserved (customized)
43 - Backup location
44 - Custom commands
45 - **Ask the user for approval** to proceed with the update
46 - **If approved**, re-run with `-Proceed` flag
47 - **If declined**, inform the user the update was cancelled
48
494. **For Fresh Installations** (`[PROMPT_FOR_INSTALL]` marker found):
50 - **Present a natural installation offer** to the user, such as:
51 - "SpecKit is not currently installed in this project. Would you like me to install it?"
52 - "I can install the latest SpecKit templates for you. This will create the .specify/ directory structure and download the templates from GitHub."
53 - **Do NOT mention the `-Proceed` flag** to the user (this is an implementation detail)
54 - **If user approves** (says "yes", "proceed", "install it", etc.), re-run with `-Proceed` flag
55 - **If user declines**, inform them the installation was cancelled
56
575. **Execute approved action** by re-running with `-Proceed` flag:
58 ```powershell
59 pwsh -NoProfile -Command "& 'C:\Users\bobby\.claude\skills\speckit-updater\scripts\update-wrapper.ps1' -Proceed"
60 ```
61
62**Special cases:**
63- If user requests `-CheckOnly`: run with that flag and show the report
64- If user requests `-Rollback`: run with that flag and confirm restoration
65- If user requests specific `-Version`: include that parameter
66
67## Commands
68
69### /speckit-updater
70
71Updates SpecKit templates, commands, and scripts while preserving customizations.
72
73**Usage:**
74- `/speckit-updater` - Interactive update/install with conversational approval workflow (recommended for Claude Code)
75- `/speckit-updater -Proceed` - Proceed with update/install after approval (used by Claude after user confirms)
76- `/speckit-updater -CheckOnly` - Check for updates without applying
77- `/speckit-updater -Version v0.0.72` - Update to specific version
78- `/speckit-updater -Force` - Force overwrite SpecKit files (preserves custom commands)
79- `/speckit-updater -Rollback` - Restore from previous backup
80- `/speckit-updater -Auto` - DEPRECATED: Use conversational workflow instead (shows warning, maps to -Proceed)
81
82**Fresh Installation (No .specify/ directory):**
83- First invocation shows installation offer with `[PROMPT_FOR_INSTALL]` marker
84- Claude Code presents natural question to user (e.g., "Would you like me to install SpecKit?")
85- User approves via conversational response (e.g., "yes", "proceed", "install it")
86- Claude re-invokes with `-Proceed` flag automatically (implementation detail hidden from user)
87- Script creates `.specify/` structure, downloads templates, creates manifest
88- Exit code 0 throughout (awaiting approval is not an error)
89- Consistent with update flow: both use conversational approval workflow
90
91**Process:**
921. Validates prerequisites (Git installed, clean Git state, write permissions)
932. Loads or creates manifest (.specify/manifest.json)
943. Fetches target version from GitHub Releases API
954. Compares file hashes to identify customizations
965. Creates timestamped backup
976. Applies selective updates preserving customized files
987. Opens VSCode merge editor for conflicts (Flow A: one at a time)
998. Automatically invokes /speckit.constitution for constitution updates
1009. Updates manifest with new version
10110. Manages backup retention (keeps last 5)
102
103**When you invoke this command, I will:**
1041. Execute the update-orchestrator.ps1 script
1052. Parse output for markers (`[PROMPT_FOR_APPROVAL]` for updates, `[PROMPT_FOR_INSTALL]` for fresh installations)
1063. **For updates**: Present Markdown summary of proposed changes
1074. **For installations**: Ask naturally if you want to install SpecKit (without mentioning `-Proceed` flag)
1085. Wait for your approval via chat conversation
1096. After approval: automatically re-invoke with `-Proceed` flag to execute
1107. Guide you through conflict resolution one file at a time (updates only)
1118. Open VSCode diff/merge tools as needed (updates only)
1129. Report results with detailed summary
113
114**Conversational Workflow:** The skill uses a two-step approval process:
115- **Step 1**: Outputs summary → script exits → waits for approval
116- **Step 2**: After approval, Claude re-invokes with `-Proceed` → applies updates
117
118**Requirements:**
119- Git installed and in PATH
120- Internet connection for fetching updates from GitHub
121- Write permissions to .specify/ and .claude/ directories
122- Clean or staged Git working directory
123
124**The script is located at:** `{skill_path}/scripts/update-wrapper.ps1` (entry point) and `{skill_path}/scripts/update-orchestrator.ps1` (main logic)
125
126**Entry point command:**
127```powershell
128pwsh -NoProfile -Command "& '{skill_path}/scripts/update-wrapper.ps1' [parameters]"
129```
130
131**Note:** Both PowerShell-style (`-CheckOnly`) and Linux-style (`--check-only`) flags are supported via the wrapper script.
132
133## Features
134
135- **Customization Preservation**: Automatically detects and preserves user customizations using normalized file hashing
136- **Intelligent Conflict Resolution**: Guides through conflicts one-at-a-time with 4 options: merge editor, keep mine, use new, skip
137- **Version Tracking**: Maintains `.specify/manifest.json` with file hashes, version info, and backup history
138- **Automatic Backups**: Creates timestamped backups in `.specify/backups/` with automatic retention management
139- **Fail-Fast with Rollback**: Automatically rolls back on any error, restoring pre-update state
140- **Dry-Run Mode**: `--check-only` shows exactly what would change without applying updates
141- **Constitution Integration**: Notifies when constitution template has updates (run `/speckit.constitution`)
142- **Custom Command Safety**: User-created commands never overwritten, even with `--force`
143
144## Architecture
145
146### Modules
147- **HashUtils**: Normalized hashing (handles line endings, trailing whitespace, BOM)
148- **VSCodeIntegration**: Context detection, Quick Pick, diff/merge editor integration
149- **GitHubApiClient**: GitHub Releases API interaction (unauthenticated, 60 req/hour)
150- **ManifestManager**: Manifest CRUD operations with caching
151- **BackupManager**: Backup creation, restoration, and retention management
152- **ConflictDetector**: File state analysis and conflict detection
153
154### Workflow
1551. Prerequisites validation (critical checks must pass, warnings allow continuation)
1562. Manifest loading/creation (safe default: assume all files customized if no manifest)
1573. GitHub API query for target version
1584. File state analysis (6 actions: add/remove/merge/preserve/update/skip)
1595. User confirmation with change preview
1606. Backup creation (timestamped, excludes backups directory)
1617. Selective file updates (fail-fast with automatic rollback)
1628. Conflict resolution (Flow A: one-at-a-time, VSCode merge editor)
1639. Manifest update (version, file hashes, customization flags)
16410. Backup cleanup (keep 5 most recent, requires confirmation)
16511. Detailed summary display
166
167## Exit Codes
168
169| Code | Meaning |
170|------|---------|
171| 0 | Success |
172| 1 | General error |
173| 2 | Prerequisites not met |
174| 3 | Network/API error |
175| 4 | Git error |
176| 5 | User cancelled |
177| 6 | Rollback required (automatic) |
178
179## Limitations
180- Use this skill only when the task clearly matches the scope described above.
181- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
182- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
183
184---
185
186**Source:** [`sickn33/agentic-awesome-skills`](https://github.com/sickn33/agentic-awesome-skills) → `skills/speckit-updater/SKILL.md`
187
188**Also appears in:** `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/speckit-updater/SKILL.md`, `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/speckit-updater/SKILL.md`