Demo city review

From mikeOnBreeze/cc-crossbeam · View interactive version

Demo city review is an AI agent skill from the GitHub repository mikeOnBreeze/cc-crossbeam. Local demo: City-side ADU plan review. Point this at a plan binder (PDF or pre-extracted PNGs) and a city name. It reviews the plans sheet-by-sheet against state and city code, then generates a draft corrections letter. Fire-and-forget — no human-in-the-loop pause. Triggers on: 'Review this ADU plan

How to use this skill

Skill file

Demo: City Plan Review

Run a city-side ADU plan review locally. You are a city plan checker reviewing an ADU permit submittal for code compliance.

How to Invoke

The user provides:

  1. Plan binder — either a PDF path or a directory of pre-extracted PNGs
  2. City name — e.g., "Placentia", "Buena Park", "Long Beach"
  3. (Optional) Project address

Example invocations:

Input Resolution

Determine what the user gave you:

If a directory of PNGs (e.g., pages-png/page-01.png, page-02.png, ...):

If a PDF file:

```

pdftoppm -png -r 200 "<input.pdf>" "<output-dir>/pages-png/page"

```

Output Directory

Create demo-output/city-review-<city>-<timestamp>/ in the workspace root. All output files go here.

Workflow

Phase 1: Sheet Manifest (~30-90 sec)

Follow the adu-targeted-page-viewer skill workflow:

  1. Read page 1 (cover sheet) visually. Extract the sheet index.
  2. If page count matches index count, map 1:1 in order.
  3. If mismatch, read title blocks to resolve (crop bottom-right 20% of each page, or use pre-cropped title blocks if available).
  4. Write sheet-manifest.json to the output directory.

Phase 2: Sheet-by-Sheet Review (~3-5 min)

Review sheets in parallel using subagents. Group by discipline:

Subagent A — Administrative + Architectural:

Subagent B — Site + Civil:

Subagent C — Elevations + Fire/Life Safety:

Launch all three concurrently. Each subagent reads the relevant PNGs and produces findings.

For each finding, record:

Write all findings to sheet_findings.json.

Phase 3: Code Verification (concurrent, ~60-90 sec)

Launch two parallel subagents:

3A — State Law Verification:

3B — City Rules:

Phase 4: Draft Corrections Letter (~2 min)

Merge all inputs and generate the corrections letter:

  1. For each finding, apply the filter:
  1. Write two outputs:
  1. Write review_summary.json — stats on items found, confidence breakdown, coverage

Phase 5: Present Results

After all phases complete, present to the user:

Key Rules

Test Data

Ready-to-use test data for demos:

| Test Set | City | Path |

|----------|------|------|

| 1232 N Jefferson | Placentia | test-assets/city-flow/mock-session/pages-png/ (15 pages, title blocks in ../title-blocks/) |

| Same project | Placentia | test-assets/01-extract-test/pages-png/ (15 pages, same project) |

Pre-built mock session data (for comparison): test-assets/city-flow/mock-session/sheet-manifest.json

Sub-Skills Referenced

| Skill | Location | Role |

|-------|----------|------|

| adu-targeted-page-viewer | adu-skill-development/skill/adu-targeted-page-viewer/ | PDF extraction + sheet manifest |

| california-adu | adu-skill-development/skill/california-adu/ | State law (28 reference files) |

| adu-city-research | .claude/skills/adu-city-research/ | Web research for non-onboarded cities |

| placentia-adu | adu-skill-development/skill/placentia-adu/ | Placentia-specific rules (onboarded) |

| buena-park-adu | adu-skill-development/skill/buena-park-adu/ | Buena Park-specific rules (onboarded) |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.