feat(init): /gstack init — brownfield + greenfield onboarding#54
Open
Ty-Robb wants to merge 1 commit intogarrytan:mainfrom
Open
feat(init): /gstack init — brownfield + greenfield onboarding#54Ty-Robb wants to merge 1 commit intogarrytan:mainfrom
Ty-Robb wants to merge 1 commit intogarrytan:mainfrom
Conversation
Introduces the /gstack init command, which onboards any project to gstack in a single command. It detects whether the directory is an existing codebase (Brownfield) or a fresh start (Greenfield), and handles both. Brownfield Mode (existing project): - Auto-detects the tech stack from project files - Extracts test/build commands from config files and CI workflows - Generates .gstack.json - Scaffolds a universal review checklist if none exists Greenfield Mode (empty directory): - Prompts the user for what they want to build and their preferred stack - Executes the appropriate scaffolding command (e.g. create-next-app, cargo init) - Creates an AGENTS.md with stack-specific AI coding conventions - Falls through to brownfield logic for .gstack.json and checklist generation
e26ad99 to
cf428e9
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Introduces the
/gstack initcommand, which onboards any project to gstack in a single command. It automatically detects whether the directory is an existing codebase or a fresh start, and handles both.Brownfield Mode (existing project)
When
/gstack initis run in a directory with project files (package.json,Gemfile,go.mod, etc.):.gstack.jsonGreenfield Mode (empty directory)
When
/gstack initis run in an empty directory:npx create-next-app,cargo init)AGENTS.mdwith stack-specific AI coding conventions.gstack.jsonand checklist generationFiles Changed
init/SKILL.mdreview/checklists/default.mdCloses #52.