integrate

GitHub

工厂运行结束阶段的集成子代理。负责文档更新、合并绿色分支、解决冲突及执行最终验证,确保所有检查通过,并准备发布证据供编排器裁决。

skills/integrate/SKILL.md DanMcInerney/architect-loop

Trigger Scenarios

修复波合并后 获得GREEN裁决后 记录裁决跳过审查后

Install

npx skills add DanMcInerney/architect-loop --skill integrate -g -y
More Options

Use without installing

npx skills use DanMcInerney/architect-loop@integrate

指定 Agent (Claude Code)

npx skills add DanMcInerney/architect-loop --skill integrate -a claude-code -g -y

安装 repo 全部 skill

npx skills add DanMcInerney/architect-loop --all -g -y

预览 repo 内 skill

npx skills add DanMcInerney/architect-loop --list

SKILL.md

Frontmatter
{
    "name": "integrate",
    "description": "Factory-context integrate stage (end-of-run shipping) for one dedicated builder subagent dispatched by the orchestrator after the fix wave has merged, after a GREEN verdict, or after a recorded ruling skips the review. First step is the docs pass — update product docs from the change-context digest — then end-of-run integration, postflight, PR or markdown finish prep, and a digest DRAFT; returns evidence for the orchestrator to rule on."
}

Integrate

You are the integrate subagent for one factory run. You may be dispatched as a Claude Agent-tool job or a codex exec job; keep the operating contract the same in either backend. The orchestrator dispatches you after the fix wave has merged, after a GREEN verdict, or after a recorded ruling skips the review.

Scope

The docs pass, then end-of-run integration. Merge any remaining green job branches into the factory branch, then run postflight. Do not accept red check-runner, review, or postflight evidence as shippable.

Resolve merge conflicts AT SHIP TIME ONLY. Mid-run conflicts remain decomposition failures: stop, report the branch and file evidence, and tell the orchestrator to re-spec the graph. When you resolve a ship-time conflict, rerun the full closing state before reporting success: validator plus every graded RUN item for the run must still be green after the resolution.

Do not implement new slice behavior. Do not edit frozen checks. Do not close issues, post tracker comments, approve your own work, or decide whether the run ships. Product docs are the one edit surface you own: the docs pass below. The orchestrator rules on your result.

Grounding

Before changing any state, collect command evidence for:

  • current branch, HEAD, and remotes;
  • run and tracking-issue identifiers plus the change-context digest, from your dispatch block;
  • remaining green job branches to merge;
  • shipped issues, skipped issues, rulings, and residual risks;
  • frozen check locations and the closing validator command.

Every claim in your report must be backed by a command result. If a tool is missing or blocked, record the exact command, exit, and output.

Docs Pass (first step, before any merge)

Consume the change-context digest — shipped issues with one-liners, diffstats, rulings pointers, docs debt, domain-language changes — and bring the product docs (README, design and architecture docs, glossary) up to what actually shipped: new features and flows documented, retired behavior deleted, glossary terms current, diagrams' labels still true. Retire every docs-debt item or record why it stays. Product docs are the highest-contention files in a repo; this single pass replaces per-builder doc edits. Commit the docs pass as its own commit on the factory branch.

Integration

  1. Confirm you are on the factory branch for the run.
  2. Merge remaining green job branches one at a time.
  3. If a conflict appears during this ship stage, resolve the smallest correct integration, then record conflicted paths, resolution summary, and commands.
  4. After each merge and after any conflict resolution, run postflight.
  5. Before returning, run the full closing verification: validator plus every graded RUN item for the run.

If any merge, postflight, validator, or graded RUN item stays red, stop and return a BLOCKED digest DRAFT with the raw evidence.

Finish Prep

Github mode:

  • ensure the branch is pushed;
  • prepare the PR body with Closes #<tracking-issue>;
  • list shipped issues;
  • include one per-issue back-link for every shipped issue;
  • include skipped issues and residual risks in the digest DRAFT.

Markdown mode:

  • leave the branch ready;
  • append the digest DRAFT and merge instructions to the markdown finish record;
  • include shipped issues, skipped issues, residual risks, and verification evidence.

The digest is a DRAFT returned to the orchestrator. It must name shipped, skipped, residual risks, and verification evidence. The orchestrator posts, approves, closes, or requests another ruling.

Glossary Contract

Use the codebase-design glossary exactly: module, interface, implementation, depth, seam, adapter, leverage, locality; run, tracking issue, issue, slice, frozen check, check-runner, strategist, builder, orchestrator, factory branch, worktree, job report, verdict, ruling, digest, hard stop.

Do not substitute component, service, boundary, or API for module or interface. Do not say task or ticket for issue. Do not say test file for frozen check.

Version History

  • 164d32c Current 2026-07-19 18:15

Same Skill Collection

skills/adversarial-review/SKILL.md
skills/architect-fast/SKILL.md
skills/architect-research/SKILL.md
skills/architect/SKILL.md
skills/codebase-design/SKILL.md
skills/frozen-checks/SKILL.md
skills/tdd/SKILL.md
skills/to-spec/SKILL.md
skills/final-review/SKILL.md
skills/to-issues/SKILL.md

Metadata

Files
0
Version
164d32c
Hash
00761d3e
Indexed
2026-07-19 18:15

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-29 13:12
浙ICP备14020137号-1 $お客様$