The journey
Stage 1 — Name the package and describe its role
You decide to add a new package to the monorepo and describe its purpose. The agent activates new-package, asks for the package name and a brief description, and checks whether any existing packages in the repo serve as the closest structural analogue.
You: Name the package precisely — using the project’s naming convention (kebab-case, domain-qualified, etc.). Describe the package’s role in one sentence: what it does and who uses it. If the agent suggests looking at an existing package as a template, confirm whether that package is actually the right model or just the closest match.
Stage 2 — Scaffold and wire
The agent produces the package skeleton: directory structure, package.json (or equivalent), AGENTS.md, build configuration, and test directory. It populates the AGENTS.md with the package name, a description, and the correct build and test commands.
You: Review the scaffolded package at the G-review gate. The two things most likely to be wrong: the AGENTS.md still has placeholder text, and the test command points to the wrong root. Both are easy to catch and easy to fix at this gate; neither is easy to fix after other packages have extended the scaffolded pattern.
Stage 3 — First commit and CI verification
After the review gate passes, the agent commits the scaffold, pushes the branch, and verifies that CI runs the new package’s tests correctly.
You: Watch the CI run complete. If the new package’s tests don’t appear in the CI output, the test wiring is incomplete — the CI configuration doesn’t know about the new package. Add the explicit CI step if needed. The most common cause: the CI config uses a hard-coded list of packages rather than a glob.