From d3d0aab687d7c21424ec27d16f8c83064e5a01ad Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 24 Feb 2026 14:20:28 +0000 Subject: [PATCH] story-kit: create 116_story_story_kit_init_command_scaffolds_a_new_project --- ...116_story_story_kit_init_command_scaffolds_a_new_project.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.story_kit/work/1_upcoming/116_story_story_kit_init_command_scaffolds_a_new_project.md b/.story_kit/work/1_upcoming/116_story_story_kit_init_command_scaffolds_a_new_project.md index fa4d1d9..741d0fc 100644 --- a/.story_kit/work/1_upcoming/116_story_story_kit_init_command_scaffolds_a_new_project.md +++ b/.story_kit/work/1_upcoming/116_story_story_kit_init_command_scaffolds_a_new_project.md @@ -31,6 +31,9 @@ Currently `scaffold_story_kit()` in `server/src/io/fs.rs`: - [ ] Writes `specs/tech/STACK.md` as a blank template with section headings (Core Stack, Coding Standards, Quality Gates, Libraries) and placeholder instructions — NOT content about Story Kit itself - [ ] Runs `git init` if the directory is not already a git repo - [ ] Makes an initial commit with the scaffolded files (only on fresh `git init`, not into an existing repo) +- [ ] Unit tests for `scaffold_story_kit()` that run against a temp directory and verify: all expected directories exist, all expected files exist with correct content, `.gitkeep` files are present in work dirs, template specs contain placeholder headings (not Story Kit content), `project.toml` has valid default agent config, `.mcp.json` is valid JSON with correct endpoint +- [ ] Test that scaffold is idempotent — running it twice on the same directory doesn't overwrite or duplicate files +- [ ] Test that scaffold into an existing git repo does not run `git init` or create an initial commit ## Out of Scope