Chuyển đến nội dung
Skillpedia
Lập trình chung48k · #5840

speckit-updater

Skill này làm gì

Trợ lý này giúp cập nhật SpecKit an toàn, một bộ công cụ dành cho GitHub. Nó đảm bảo các tùy chỉnh của bạn được giữ nguyên khi áp dụng bản cập nhật.

Khi nào nên dùng

  • ✓Khi bạn cần cập nhật SpecKit và giữ lại các chỉnh sửa của mình.
  • ✓Khi bạn cài đặt SpecKit lần đầu trong một dự án.
  • ✓Khi bạn muốn mọi cập nhật SpecKit đều được thực hiện khi bạn đã đồng ý.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/speckit-updater/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/speckit-updater/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có muốn cập nhật SpecKit trong dự án của tôi không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Trợ lý chạy một script kiểm tra cập nhật, hiển thị những gì sẽ thay đổi và xin phép bạn trước khi áp dụng thay đổi hoặc cài đặt SpecKit.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Supporting material availability

This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:

Ask for the original supporting material or an existing installation before using a step that depends on these paths; this catalog does not identify a verified download source for them. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the user’s authorized scope; report any dependent step as unavailable.

SpecKit Safe Update

This skill provides safe update capabilities for GitHub SpecKit installations, preserving customizations while applying template updates.

Installation: Before adding any marketplace or manual clone, inspect the exact plugin revision and every bundled file, report scripts and network or filesystem behavior, and ask for explicit user approval. Do not install a moving branch directly into an active agent directory.

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:

  1. Run the update orchestrator script without any flags (conversational mode):

    pwsh -NoProfile -File "<skill_path>/scripts/update-wrapper.ps1"
    
  2. Parse the output for markers:

    • [PROMPT_FOR_APPROVAL] - Update scenario (existing SpecKit installation)
    • [PROMPT_FOR_INSTALL] - Fresh installation scenario (no .specify/ directory)
  3. 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
  4. 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
  5. Execute approved action by re-running with -Proceed flag:

    pwsh -NoProfile -File "<skill_path>/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

…

Câu hỏi thường gặp

Điều gì xảy ra nếu tôi đã chỉnh sửa?

Trợ lý phát hiện các chỉnh sửa của bạn và cố gắng giữ lại chúng trong quá trình cập nhật, đồng thời cho biết những tệp nào đã được giữ.

Tôi có thể chọn một phiên bản SpecKit cụ thể không?

Có, bạn có thể yêu cầu cập nhật lên một phiên bản cụ thể nếu cần.

Bản sao lưu là gì?

Trước khi cập nhật, trợ lý tạo bản sao lưu của các tệp hiện có. Nếu có gì sai, bạn có thể khôi phục phiên bản trước đó.

Chi tiết

Mô tả gốc của tác giả

SpecKit Safe Update

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5840
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự