Check if the spec-kit plugin templates and methodology have been updated in the upstream github/spec-kit repository. Use when the user wants to sync with upstream, says "check for updates", "sync spec-kit", "update templates", or wants to ensure they are using the latest spec-kit methodology.
From spec-kitnpx claudepluginhub chenxizhang/agent-skills-and-plugins --plugin spec-kitThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
You are checking whether the upstream github/spec-kit repository has been updated since this plugin's templates were last synchronized. This helps you stay current with the latest Spec-Driven Development methodology.
This plugin's skills were derived from the spec-kit repository (commit 94ba857b78074024f095b08b45802e17d2bff653). The upstream repository evolves ā templates improve, new commands are added, and the methodology is refined.
The sync mechanism stores metadata in .speckit/upstream.json to track when you last checked for updates.
Read .speckit/upstream.json if it exists:
{
"source": "github.com/github/spec-kit",
"source_sha": "[last known upstream commit SHA]",
"last_synced": "[date]",
"plugin_version": "[plugin version]"
}
If the file doesn't exist, report: "No sync metadata found. Run /spec-kit:init to initialize sync tracking."
Check the upstream repository for recent changes. Use one of these methods (in order of preference):
Method 1: Via GitHub API (if internet access is available)
Fetch the latest commit info from the upstream repository:
https://api.github.com/repos/github/spec-kit/commits/mainhttps://api.github.com/repos/github/spec-kit/releases/latestParse the response to get:
Method 2: Via git (if upstream is reachable)
git ls-remote https://github.com/github/spec-kit.git HEAD
Method 3: Offline (if no internet access) Report that internet access is needed to check for updates and provide manual check instructions.
Compare the current state with the stored metadata:
Spec-Kit Update Status
======================
Plugin version: [current version]
Last synced: [date from upstream.json, or "never"]
Known upstream SHA: [SHA from upstream.json]
Current upstream SHA: [SHA from GitHub API]
Latest release: [version tag from GitHub API]
Determine the update status:
If updates are available, provide a summary of what changed. Check the CHANGELOG or commit messages from the upstream repository:
https://api.github.com/repos/github/spec-kit/commits?since=[last_synced_date]&per_page=20Group changes by category:
templates/commands/Format the report:
Updates Available in github/spec-kit
=====================================
Time since last sync: [N days/weeks]
Commits since sync: [N]
Notable Changes:
š [new command or template]
š [updated template]
š§ [methodology change]
Changed Files:
templates/commands/specify.md ā updated
templates/commands/plan.md ā updated
templates/spec-template.md ā updated
For full details: https://github.com/github/spec-kit/commits/main
Based on what changed, provide specific update guidance:
If new commands were added (e.g., a new templates/commands/xyz.md appeared):
Action: New skill available
The upstream spec-kit has a new command: [command name]
To add this skill to your local plugin, contact your plugin maintainer
or follow the migration guide at:
https://github.com/github/spec-kit/blob/main/docs/upgrade.md
Plugin source: [path to plugin directory]
If existing templates were updated:
Action: Template updates available
Your local skills may have outdated methodology. Key changes:
[List specific changes]
Option 1: Update this project's templates
The .speckit/ templates can be refreshed by running /spec-kit:init
(Note: this only updates the .speckit/ templates, not the plugin skills)
Option 2: Update the plugin skills
Contact your plugin maintainer to get updated SKILL.md files,
or update them manually from:
https://github.com/github/spec-kit/tree/main/templates/commands
If no changes:
ā
Your spec-kit plugin is up to date!
Last checked: [today's date]
Upstream SHA: [SHA]
Update .speckit/upstream.json with today's check date:
{
"source": "github.com/github/spec-kit",
"source_sha": "[latest SHA or existing SHA if check failed]",
"last_synced": "[today's date]",
"last_checked": "[today's date]",
"plugin_version": "2.0.0"
}
If upstream SHA changed and user acknowledged the update, update source_sha to the new value.
If you want to manually sync with the latest upstream:
For project templates (.speckit/ directory):
/spec-kit:init to regenerate templates from the built-in skill definitions.speckit/*.md templates to match the current skill versionFor skill methodology (the SKILL.md files in the plugin):
skills/ directoryFor completely fresh sync:
94ba857b78074024f095b08b45802e17d2bff653| Field | Value |
|---|---|
| Repository | https://github.com/github/spec-kit |
| Commands reference | https://github.com/github/spec-kit/tree/main/templates/commands |
| Changelog | https://github.com/github/spec-kit/blob/main/CHANGELOG.md |
| Releases | https://github.com/github/spec-kit/releases |
| Upgrade guide | https://github.com/github/spec-kit/blob/main/docs/upgrade.md |