-
Notifications
You must be signed in to change notification settings - Fork 7.5k
feat: add bundled lean preset with minimal workflow commands #2161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4eccd7f
feat: add bundled lean preset with minimal workflow commands
mnriem 442146c
refactor: address review — clean up unused imports, strengthen test a…
mnriem 00508dd
refactor: address review — fix constitution paths, add REINSTALL_COMM…
mnriem f6d350a
refactor: address review — explicit feature_directory paths, ZIP clea…
mnriem 9bfe082
refactor: address review — replace Unicode em dashes with ASCII, fix …
mnriem 88c413e
refactor: address review - align task format between tasks and implement
mnriem db308b2
refactor: address review - parse frontmatter instead of raw substring…
mnriem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,22 @@ | ||
| { | ||
| "schema_version": "1.0", | ||
| "updated_at": "2026-03-10T00:00:00Z", | ||
| "updated_at": "2026-04-10T00:00:00Z", | ||
| "catalog_url": "https://raw.githubusercontent.com/github/spec-kit/main/presets/catalog.json", | ||
| "presets": {} | ||
| "presets": { | ||
| "lean": { | ||
| "name": "Lean Workflow", | ||
| "id": "lean", | ||
| "version": "1.0.0", | ||
| "description": "Minimal core workflow commands - just the prompt, just the artifact", | ||
| "author": "github", | ||
| "repository": "https://github.com/github/spec-kit", | ||
| "bundled": true, | ||
| "tags": [ | ||
| "lean", | ||
| "minimal", | ||
| "workflow", | ||
| "core" | ||
| ] | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| description: Create or update the project constitution. | ||
| --- | ||
|
|
||
| ## User Input | ||
|
|
||
| ```text | ||
| $ARGUMENTS | ||
| ``` | ||
|
|
||
| ## Outline | ||
|
|
||
| 1. Create or update the project constitution and store it in `.specify/memory/constitution.md`. | ||
| - Project name, guiding principles, non-negotiable rules | ||
| - Derive from user input and existing repo context (README, docs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| description: Execute the implementation plan by processing all tasks in tasks.md. | ||
| --- | ||
|
|
||
| ## User Input | ||
|
|
||
| ```text | ||
| $ARGUMENTS | ||
| ``` | ||
|
|
||
| ## Outline | ||
|
|
||
| 1. Read `.specify/feature.json` to get the feature directory path. | ||
|
|
||
| 2. **Load context**: `.specify/memory/constitution.md` and `<feature_directory>/spec.md` and `<feature_directory>/plan.md` and `<feature_directory>/tasks.md`. | ||
|
|
||
| 3. **Execute tasks** in order: | ||
| - Complete each task before moving to the next | ||
| - Mark completed tasks by changing `- [ ]` to `- [x]` in `<feature_directory>/tasks.md` | ||
| - Halt on failure and report the issue | ||
|
|
||
| 4. **Validate**: Verify all tasks are completed and the implementation matches the spec. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| description: Create a plan and store it in plan.md. | ||
| --- | ||
|
|
||
| ## User Input | ||
|
|
||
| ```text | ||
| $ARGUMENTS | ||
| ``` | ||
|
|
||
| ## Outline | ||
|
|
||
| 1. Read `.specify/feature.json` to get the feature directory path. | ||
|
|
||
| 2. **Load context**: `.specify/memory/constitution.md` and `<feature_directory>/spec.md`. | ||
|
|
||
| 3. Create an implementation plan and store it in `<feature_directory>/plan.md`. | ||
| - Technical context: tech stack, dependencies, project structure | ||
| - Design decisions, architecture, file structure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| --- | ||
| description: Create a specification and store it in spec.md. | ||
| --- | ||
|
|
||
| ## User Input | ||
|
|
||
| ```text | ||
| $ARGUMENTS | ||
| ``` | ||
|
|
||
| ## Outline | ||
|
|
||
| 1. **Ask the user** for the feature directory path (e.g., `specs/my-feature`). Do not proceed until provided. | ||
|
|
||
| 2. Create the directory and write `.specify/feature.json`: | ||
| ```json | ||
| { "feature_directory": "<feature_directory>" } | ||
| ``` | ||
|
|
||
| 3. Create a specification from the user input and store it in `<feature_directory>/spec.md`. | ||
| - Overview, functional requirements, user scenarios, success criteria | ||
| - Every requirement must be testable | ||
| - Make informed defaults for unspecified details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| description: Create the tasks needed for implementation and store them in tasks.md. | ||
| --- | ||
|
|
||
| ## User Input | ||
|
|
||
| ```text | ||
| $ARGUMENTS | ||
| ``` | ||
|
|
||
| ## Outline | ||
|
|
||
| 1. Read `.specify/feature.json` to get the feature directory path. | ||
|
|
||
| 2. **Load context**: `.specify/memory/constitution.md` and `<feature_directory>/spec.md` and `<feature_directory>/plan.md`. | ||
|
|
||
| 3. Create dependency-ordered implementation tasks and store them in `<feature_directory>/tasks.md`. | ||
| - Every task uses checklist format: `- [ ] [TaskID] Description with file path` | ||
| - Organized by phase: setup, foundational, user stories in priority order, polish | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| schema_version: "1.0" | ||
|
|
||
| preset: | ||
| id: "lean" | ||
| name: "Lean Workflow" | ||
| version: "1.0.0" | ||
| description: "Minimal core workflow commands - just the prompt, just the artifact" | ||
| author: "github" | ||
| repository: "https://github.com/github/spec-kit" | ||
| license: "MIT" | ||
|
|
||
| requires: | ||
| speckit_version: ">=0.6.0" | ||
|
|
||
| provides: | ||
| templates: | ||
| - type: "command" | ||
| name: "speckit.specify" | ||
| file: "commands/speckit.specify.md" | ||
| description: "Lean specify - create spec.md from a feature description" | ||
| replaces: "speckit.specify" | ||
|
|
||
| - type: "command" | ||
| name: "speckit.plan" | ||
| file: "commands/speckit.plan.md" | ||
| description: "Lean plan - create plan.md from the spec" | ||
| replaces: "speckit.plan" | ||
|
|
||
| - type: "command" | ||
| name: "speckit.tasks" | ||
| file: "commands/speckit.tasks.md" | ||
| description: "Lean tasks - create tasks.md from plan and spec" | ||
| replaces: "speckit.tasks" | ||
|
|
||
| - type: "command" | ||
| name: "speckit.implement" | ||
| file: "commands/speckit.implement.md" | ||
| description: "Lean implement - execute tasks from tasks.md" | ||
| replaces: "speckit.implement" | ||
|
|
||
| - type: "command" | ||
| name: "speckit.constitution" | ||
| file: "commands/speckit.constitution.md" | ||
| description: "Lean constitution - create or update project constitution" | ||
| replaces: "speckit.constitution" | ||
|
|
||
| tags: | ||
| - "lean" | ||
| - "minimal" | ||
| - "workflow" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.