Skip to content

feat(init): /gstack init — brownfield + greenfield onboarding#54

Open
Ty-Robb wants to merge 1 commit intogarrytan:mainfrom
Ty-Robb:feat/gstack-init-greenfield
Open

feat(init): /gstack init — brownfield + greenfield onboarding#54
Ty-Robb wants to merge 1 commit intogarrytan:mainfrom
Ty-Robb:feat/gstack-init-greenfield

Conversation

@Ty-Robb
Copy link

@Ty-Robb Ty-Robb commented Mar 14, 2026

Description

Introduces the /gstack init command, 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 init is run in a directory with project files (package.json, Gemfile, go.mod, etc.):

  • Auto-detects the tech stack and framework
  • 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)

When /gstack init is run in an empty directory:

  • Prompts the user for what they want to build and their preferred stack
  • Executes the appropriate scaffolding command (e.g., npx 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

Files Changed

File Change
init/SKILL.md New skill — combined brownfield + greenfield init
review/checklists/default.md New universal stack-agnostic review checklist

Closes #52.

@Ty-Robb Ty-Robb changed the title feat(init): add greenfield mode — scaffold new projects from scratch feat(init): /gstack init — brownfield + greenfield onboarding Mar 14, 2026
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
@Ty-Robb Ty-Robb force-pushed the feat/gstack-init-greenfield branch from e26ad99 to cf428e9 Compare March 14, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant