Skip to content

openspec init won't create default spec-driven schema #665

@JimMoen

Description

@JimMoen

Version

$ openspec -V
1.1.1

as the document mention, run openspec init, and then:

$ openspec new change test
✖ Failed to create change 'test'

✖ Error: Unknown schema 'spec-driven'. Available:

⬆️ NO output after the "Available:". And then I ran:

$ openspec schema init spec-driven
Note: Schema commands are experimental and may change.
✔ Schema description: Custom workflow schema for spec-driven
✔ Select artifacts to include: proposal, specs, design, tasks
✔ Set as project default schema? No
✔ Created schema 'spec-driven'

Schema created at: /home/xxx

Artifacts: proposal, specs, design, tasks

Next steps:
  1. Edit /home/xxx
  2. Modify templates in the schema directory
  3. Use with: openspec new --schema spec-driven

Then:

$ openspec new change test
✔ Created change 'test' at openspec/changes/test/ (schema: spec-driven)

Perhaps after openspec init, it's necessary to automatically create the default schema spec-driven, or prompt the user to execute openspec schema init

And The documentation docs/getting-started.md does not mention the need for openspec schema init.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions