Speckit updater
An unappealing collection of Claude Skills and resources.From the repository description
npx -y skills add Microck/ordinary-claude-skills --skill speckit-updaterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
8.0 KB, ~1.9k tokens by cl100k_base, as published. Nobody here has run it
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.
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
-Proceedflag - If declined, inform the user the update was cancelled
- Present the Markdown summary showing:
-
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
-Proceedflag to the user (this is an implementation detail) - If user approves (says "yes", "proceed", "install it", etc.), re-run with
-Proceedflag - If user declines, inform them the installation was cancelled
- Present a natural installation offer to the user, such as:
-
Execute approved action by re-running with
-Proceedflag: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
-Proceedflag 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
-Proceedflag) - Wait for your approval via chat conversation
- After approval: automatically re-invoke with
-Proceedflag 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.jsonwith 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-onlyshows 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) |
What ships with it: 180 files
1938.5 KB alongside SKILL.md, 28 of them executable
scripts/
- generate-fingerprints.ps1runs10.7 KB
- helpers/Get-UpdateConfirmation.ps1runs7.3 KB
- helpers/Invoke-ConflictResolutionWorkflow.ps1runs6.8 KB
- helpers/Invoke-PreUpdateValidation.ps1runs11.4 KB
- helpers/Invoke-RollbackWorkflow.ps1runs5.1 KB
- helpers/Show-UpdateReport.ps1runs6.3 KB
- helpers/Show-UpdateSummary.ps1runs6.9 KB
- modules/BackupManager.psm115.5 KB
- modules/ConflictDetector.psm139.2 KB
- modules/FingerprintDetector.psm114.1 KB
- modules/GitHubApiClient.psm120.3 KB
- modules/HashUtils.psm15.1 KB
- modules/ManifestManager.psm118.4 KB
- modules/MarkdownMerger.psm119.5 KB
- update-orchestrator.ps1runs44.3 KB
- update-wrapper.ps1runs2.6 KB
specs/
- 001-safe-update/DEPLOYMENT_CHECKLIST.md10.4 KB
- 001-safe-update/IMPLEMENTATION.md13.9 KB
- 001-safe-update/PHASE4_COMPLETE.md16.0 KB
- 001-safe-update/plan.md49.4 KB
- 001-safe-update/spec.md56.0 KB
- 002-fix-module-import-error/checklists/requirements.md3.7 KB
- 002-fix-module-import-error/plan.md8.1 KB
- 002-fix-module-import-error/quickstart.md10.3 KB
- 002-fix-module-import-error/research.md13.0 KB
- 002-fix-module-import-error/spec.md8.1 KB
- 002-fix-module-import-error/tasks.md12.2 KB
- 003-fix-module-import-error/checklists/requirements.md3.0 KB
- 003-fix-module-import-error/data-model.md23.3 KB
- 003-fix-module-import-error/plan.md14.9 KB
- 003-fix-module-import-error/quickstart.md16.1 KB
- 003-fix-module-import-error/research.md17.8 KB
- 003-fix-module-import-error/spec.md9.8 KB
- 003-fix-module-import-error/tasks.md17.7 KB
- 004-fix-nested-imports/backups/modules-20251020-135713/BackupManager.psm114.4 KB
- 004-fix-nested-imports/backups/modules-20251020-135713/ConflictDetector.psm113.2 KB
- 004-fix-nested-imports/backups/modules-20251020-135713/GitHubApiClient.psm18.6 KB
- 004-fix-nested-imports/backups/modules-20251020-135713/HashUtils.psm15.1 KB
- 004-fix-nested-imports/backups/modules-20251020-135713/ManifestManager.psm117.6 KB
- 004-fix-nested-imports/backups/modules-20251020-135713/VSCodeIntegration.psm19.8 KB
140 more files not listed here. See all 180 in the repository.