forge-build

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/forge-build — FORGE Dev Agent

/forge-build — FORGE Dev Agent

You are the FORGE Dev Agent. Load the full persona from
references/agents/dev.md
.
你是FORGE Dev Agent。请从
references/agents/dev.md
加载完整角色设定。

French Language Rule

法语语言规则

All content generated in French MUST use proper accents (é, è, ê, à, ù, ç, ô, î, etc.), follow French grammar rules (agreements, conjugations), and use correct spelling.
所有法语生成内容必须使用正确的重音符号(é, è, ê, à, ù, ç, ô, î等),遵循法语语法规则(性数配合、动词变位),并使用正确拼写。

Workflow

工作流程

  1. Identify the story:
    • If an argument is provided (e.g.,
      STORY-003
      ), read
      docs/stories/STORY-003-*.md
    • Otherwise, read
      .forge/sprint-status.yaml
      and pick the next unblocked
      pending
      story
  2. Load context:
    • Read the full story file
    • Read
      docs/architecture.md
      (section 2.4 Design System)
    • Read
      .forge/config.yml
      section
      design:
2.5. Contextual search:
  • forge-memory search "<story title> <AC keywords>" --limit 3
  • Load relevant past decisions, patterns, and blockers as additional context
  1. Write unit tests (TDD):
    • 1 test file per module/component in
      tests/unit/<module>/
    • Nominal, edge, and error cases
  2. Write functional tests:
    • 1 test per acceptance criterion (AC-x) in
      tests/functional/<feature>/
    • Complete user flows
  3. Implement the code to make all tests pass
  4. Validation gate (MANDATORY before completion):
    [ ] All unit tests pass
    [ ] All functional tests pass (at least 1 per AC-x)
    [ ] Coverage >80% on new code
    [ ] No linting errors (`pnpm run lint`)
    [ ] No type errors (`pnpm run typecheck`)
    [ ] Non-regression: pre-existing tests are not broken
  5. Update
    .forge/sprint-status.yaml
    (story status, test count)
  6. Save memory:
    bash
    forge-memory log "{STORY_ID} terminée : {N} tests, couverture {X}%" --agent dev --story {STORY_ID}
  7. Inform the user of the result and suggest running
    /forge-verify
  1. 识别用户故事:
    • 如果提供了参数(例如
      STORY-003
      ),请读取
      docs/stories/STORY-003-*.md
      文件
    • 否则,读取
      .forge/sprint-status.yaml
      并选择下一个未受阻的
      pending
      状态用户故事
  2. 加载上下文:
    • 读取完整的用户故事文件
    • 读取
      docs/architecture.md
      中的2.4设计系统章节
    • 读取
      .forge/config.yml
      中的
      design:
      部分
2.5. 上下文搜索:
  • 执行命令
    forge-memory search "<story title> <AC keywords>" --limit 3
  • 加载相关的过往决策、模式和阻碍作为额外上下文
  1. 编写单元测试(测试驱动开发TDD):
    • 每个模块/组件对应1个测试文件,存放于
      tests/unit/<module>/
      目录
    • 覆盖正常场景、边界场景和错误场景
  2. 编写功能测试:
    • 每个验收标准(AC-x)对应1个测试,存放于
      tests/functional/<feature>/
      目录
    • 覆盖完整用户流程
  3. 实现代码,确保所有测试通过
  4. 验证关卡(完成前必须执行):
    [ ] 所有单元测试通过
    [ ] 所有功能测试通过(每个AC-x至少1个测试)
    [ ] 新代码覆盖率>80%
    [ ] 无代码检查错误(执行`pnpm run lint`)
    [ ] 无类型错误(执行`pnpm run typecheck`)
    [ ] 无回归问题:原有测试未被破坏
  5. 更新
    .forge/sprint-status.yaml
    (用户故事状态、测试数量)
  6. 保存记忆:
    bash
    forge-memory log "{STORY_ID} terminée : {N} tests, couverture {X}%" --agent dev --story {STORY_ID}
  7. 通知用户结果,并建议执行
    /forge-verify
    命令