Skip to content

Conversation

@cometzero
Copy link

Summary

This PR adds a new --template-path option to the specify init command, allowing users to initialize projects from local template files instead of downloading from GitHub.

Problem

Previously, specify init always downloaded templates from GitHub, which required manual copying of template ZIP files when implementing or testing new agents. This created friction in the development workflow.

Solution

Add --template-path option to specify init that accepts both file and directory paths:

  • File path: Directly uses the specified ZIP file
  • Directory path: Searches for template files matching the pattern spec-kit-template-{ai}-{script}-*.zip

Usage

# Using a directory containing template files
specify init my-project --ai claude --script sh --template-path .genreleases

This change adds a new --template-path option to the specify init
command, allowing users to initialize projects from local template
files instead of downloading from GitHub.

The option accepts both file and directory paths:
- File path: directly uses the specified ZIP file
- Directory path: searches for template files matching the pattern
  spec-kit-template-{ai}-{script}-*.zip

Previously, specify init always downloaded templates from GitHub,
which required manual copying of template ZIP files when
implementing or testing new agents. This option enables developers
to use locally generated template files, streamlining the
development workflow for new agent implementations.

Signed-off-by: Chanho Park <parkch98@gmail.com>
@cometzero cometzero requested a review from localden as a code owner November 23, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant