← 返回
未分类 中文

GStack Dev Workflow

Structured development workflow inspired by Garry Tan's gstack. Use when the user wants to build a feature, start a project, do a code review, or ship code w...
受Garry Tan的gstack启发的一套结构化开发工作流程。适用于用户想要构建功能、启动项目、进行代码审查或发布代码等场景。
jahonn jahonn 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 520
下载
💾 0
安装
1
版本
#latest

概述

Dev Workflow — Structured Development Sprint

A 6-phase development process that turns a vague idea into shipped code. Each phase has a clear role, a defined output, and feeds into the next. Run phases sequentially or skip ahead when context is clear.

Phases

#PhaseRoleOutput
------------------------
1ThinkYC Office Hours CoachDESIGN.md
2PlanEng ManagerPLAN.md
3BuildImplementerCode + Tests
4ReviewStaff EngineerReview Report
5TestQA LeadBug Report + Fixes
6ShipRelease EngineerPR / Deploy

How to Use

Full Sprint (recommended for new features)

# Start from scratch
"I want to build X" → run all 6 phases

# Or ask me:
"Run dev-workflow on [feature description]"

I will walk through each phase, spawning a focused subagent per phase with the right model and prompt.

Partial Sprint

Skip phases when you already have context:

  • "Skip think, I have DESIGN.md" → start from Plan
  • "Just review and ship this branch" → run Review → Test → Ship
  • "I need a design review" → run Phase 2 (Plan) only

Single Phase

Any phase can run standalone:

  • /think — Reframe the problem, challenge assumptions, write DESIGN.md
  • /plan — Architecture, data flow, test strategy, write PLAN.md
  • /build — Implement from PLAN.md
  • /review — Code review with auto-fix for obvious issues
  • /test — Browser testing, regression tests, bug reports
  • /ship — Sync, test, push, open PR

Phase Details

Phase 1: Think (YC Office Hours)

Goal: Reframe the problem before writing code.

Spawn a subagent (Sonnet) with the Think prompt from references/prompts.md. It will:

  1. Ask 6 forcing questions about the real pain, not the feature request
  2. Challenge the framing — "You said X but you actually need Y"
  3. Generate 3 implementation approaches with effort estimates
  4. Recommend the narrowest wedge to ship tomorrow
  5. Write DESIGN.md with the distilled product vision

Key rule: Listen to the pain, not the feature request. The user says "daily briefing app" but means "personal chief of staff AI."

Phase 2: Plan (Eng Manager)

Goal: Lock architecture before building.

Spawn a subagent (Sonnet) with the Plan prompt. It reads DESIGN.md and produces PLAN.md containing:

  1. Architecture diagram (ASCII)
  2. Data flow and state machines
  3. File structure and module boundaries
  4. Test strategy and failure modes
  5. Milestone breakdown (what ships first)

Key rule: No code until the plan is approved. Challenge scope ruthlessly.

Phase 3: Build (Implementer)

Goal: Write code from PLAN.md.

Use the main session or spawn a subagent (Haiku for simple, Sonnet for complex). It reads PLAN.md and:

  1. Implements each milestone in order
  2. Writes tests alongside code (aim for >80% coverage)
  3. Commits atomically per milestone
  4. Updates PLAN.md with implementation notes

Key rule: Follow the plan. If the plan is wrong, update PLAN.md first, then code.

Phase 4: Review (Staff Engineer)

Goal: Find bugs that pass CI but blow up in production.

Spawn a subagent (Sonnet) with the Review prompt. It:

  1. Reads the diff against main/develop
  2. Catches logic errors, race conditions, edge cases
  3. Auto-fixes obvious issues (formatting, unused imports)
  4. Flags completeness gaps and security concerns
  5. Writes a review report

Key rule: Be paranoid. Assume the code will be hit by edge cases tomorrow.

Phase 5: Test (QA Lead)

Goal: Test like a user, not like a developer.

Spawn a subagent (Sonnet) with the Test prompt. It:

  1. Opens the app in a real browser (use browser tool)
  2. Clicks through every user flow
  3. Tests edge cases and error states
  4. Reports bugs with reproduction steps
  5. Auto-fixes and generates regression tests

Key rule: The user doesn't read code. Click the buttons. Break things.

Phase 6: Ship (Release Engineer)

Goal: One command to production.

Run in main session:

  1. Sync with remote (git pull/rebase)
  2. Run full test suite
  3. Audit test coverage
  4. Push and open PR
  5. Update project docs

Key rule: If tests fail, don't ship. Fix first.

Model Selection

PhaseModelWhy
-------------------
ThinkSonnetNeeds judgment to reframe problems
PlanSonnetArchitecture decisions need reasoning
BuildHaiku/SonnetSimple features → Haiku, complex → Sonnet
ReviewSonnetBug detection needs deep analysis
TestSonnetBrowser interaction needs context
ShipHaikuMechanical execution

Parallel Sprints

For large projects, run multiple sprints on different branches:

  1. Create feature branches for each sprint
  2. Spawn subagents per branch
  3. Each subagent works in isolation
  4. Review and merge sequentially

Max practical parallelism: 3-5 sprints (limited by context management).

Output Files

All phase outputs go to the project root:

  • DESIGN.md — Product vision from Think phase
  • PLAN.md — Architecture and milestones from Plan phase
  • Review reports are written to stdout (capture in conversation)
  • Test reports are written to stdout

Clean up output files after shipping if not needed long-term.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 09:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 327,034
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,752
ai-agent

Deep Research Agent

jahonn
深度研究和分析代理,适用于任何主题。当用户需要研究主题、分析竞争对手、评估技术、比较工具、进行调研等情形时使用。
★ 2 📥 1,426