Summary
On Windows 11, lean-spec init completes successfully in a fresh project, but the next command fails:
npx.cmd lean-spec create jira-issue-worklog-ingestion
Error:
Error: Invalid template format
Environment
- Windows 11
- PowerShell
- Python 3.14.3
- Node v24.14.0
- npm / npx 11.9.0
Reproduction
$env:Path = "C:\Tools\node;" + $env:Path
node -v
npm.cmd -v
npx.cmd -v
npx.cmd lean-spec init
npx.cmd lean-spec create jira-issue-worklog-ingestion
Verified setup
The environment is working correctly before running LeanSpec:
node -v => v24.14.0
npm.cmd -v => 11.9.0
npx.cmd -v => 11.9.0
lean-spec init also reports successful initialization and creates the expected project structure, including:
specs/
.lean-spec/config.json
.lean-spec/templates/
Expected behavior
lean-spec create jira-issue-worklog-ingestion should create a new spec successfully.
Actual behavior
It fails with:
Error: Invalid template format
Likely area
This appears to be related to the generated default template or template configuration created during init.
Additional info
I can provide:
.lean-spec/config.json
- contents of
.lean-spec/templates/
- output of
npx.cmd lean-spec templates
- output of
npx.cmd lean-spec validate
Summary
On Windows 11,
lean-spec initcompletes successfully in a fresh project, but the next command fails:Error:
Environment
Reproduction
Verified setup
The environment is working correctly before running LeanSpec:
lean-spec initalso reports successful initialization and creates the expected project structure, including:specs/.lean-spec/config.json.lean-spec/templates/Expected behavior
lean-spec create jira-issue-worklog-ingestionshould create a new spec successfully.Actual behavior
It fails with:
Likely area
This appears to be related to the generated default template or template configuration created during
init.Additional info
I can provide:
.lean-spec/config.json.lean-spec/templates/npx.cmd lean-spec templatesnpx.cmd lean-spec validate