---
name: automated-architecture-spec-and-pr-review-companion
description: "Analyzes pull request diffs and module dependencies to draft architecture specs, design trade-off logs, and diagrams. Use when a pull request needs an architectural audit before review."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Terminal, Docs."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/automated-architecture-spec-and-pr-review-companion/"
  kind: workflow
  hermes:
    tags: ["architecture", "codereview", "git", "specs", "diagrams"]
    category: coding
    requires_toolsets: ["terminal", "file"]
---
# Summarize pull requests into architecture notes

Turn large PRs into design logs and diagrams for reviewers before merging

## When to use

Large pull requests and autonomous code changes can create architectural drift if reviewers cannot see the big picture. This bot inspects new branches, extracts high-level structural decisions, and drafts visual system specs and decision logs to help engineers review implementations before merging.

## Inputs

- `repository`: Repository that contains the pull request and branch to audit.
- `pull_request`: Pull request opened for review or requested for architectural audit.
- `branch_name` (optional): New branch whose diff should be inspected for structural changes.

## Steps

1. When something happens: Pull request opened for review (A pull request is opened for review or requested for architectural audit.)
2. Analyze diff and map dependency changes
3. Draft architecture review for approval

## Instructions

When a new pull request is opened or requested for architectural audit, run git diffs through the terminal and map module interactions. Generate a structured design log explaining why specific design trade-offs were selected. Before posting any review comments or updating repository documentation, request explicit engineer approval with the drafted summary and diagrams.

## Approvals

- Posting review comments to the pull request
- Updating repository documentation

## Output

Draft architecture review with dependency map, design log, and diagrams for engineer approval. (format: document)

## Source

Summarized in our own words from [Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design](https://news.ycombinator.com/item?id=49833867) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/automated-architecture-spec-and-pr-review-companion/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
