From forge
Compare two systems side-by-side. Analyzes UI flows, logical architecture, data handling, security posture, and technical patterns between two running apps or two codebases. Use with --mode recon to crawl both UIs, or --mode code to compare codebases. Trigger on: compare systems, compare apps, side-by-side comparison, how does X differ from Y, compare these two, diff two systems.
npx claudepluginhub bishwas-py/forge --plugin forgeThis skill uses the workspace's default tool permissions.
Compare analyzes two systems and produces a structured differences report. It supports two modes:
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Compare analyzes two systems and produces a structured differences report. It supports two modes:
--mode recon (default) — Crawls both running UIs using Playwright, runs recon-style checks on each, then diffs the results.--mode code — Reads both codebases (no running server needed), compares architecture, logic flows, patterns, and structure./forge:compare http://localhost:3000 http://localhost:5173
/forge:compare http://localhost:3000 http://localhost:5173 --mode recon
/forge:compare /path/to/project-a /path/to/project-b --mode code
| Step | Tools | What happens |
|---|---|---|
| Crawl UIs | Playwright | Navigate both apps, capture pages, extract values |
| Compare data | Bash (curl, psql) | Hit APIs, query DBs for both systems |
| Read codebases | Glob, Read, Grep | Analyze architecture, patterns, conventions |
| Generate report | Write | Produce comparison report |
Detect targets for BOTH systems. For each system:
Print both targets side by side:
Compare targets:
System A: http://localhost:3000 (React + Express + MySQL)
System B: http://localhost:5173 (SvelteKit + FastAPI + Postgres)
Ask user to confirm.
Crawl both UIs simultaneously (or sequentially if resource-constrained). For each system:
Then compare the page maps:
Page Map Comparison:
Both: /, /login, /dashboard, /items, /items/:id
Only in A: /settings, /admin
Only in B: /analytics, /reports
For each page that exists in BOTH systems:
For pages unique to one system, document what exists and note the gap.
Run ${CLAUDE_SKILL_DIR}/../recon/scripts/security-scan.sh against both systems. Compare:
For shared API endpoints:
Write to recon-compare-YYYY-MM-DD.md:
# System Comparison Report
**Date**: YYYY-MM-DD
**System A**: http://localhost:3000 (React + Express + MySQL)
**System B**: http://localhost:5173 (SvelteKit + FastAPI + Postgres)
## Summary
| Aspect | System A | System B | Winner |
|--------|----------|----------|--------|
| Pages discovered | 12 | 15 | B |
| Security score | 7/10 | 9/10 | B |
| Accessibility | 6/10 | 8/10 | B |
| API endpoints | 24 | 18 | A |
| Form validation | strict | partial | A |
## Page Coverage
### Pages in both systems
[side-by-side analysis]
### Pages only in System A
[list with description]
### Pages only in System B
[list with description]
## UI Flow Differences
[detailed comparison of user journeys]
## API Differences
[endpoint-by-endpoint comparison]
## Security Posture
[header-by-header, CORS, cookies comparison]
## Data Handling
[how each system handles edge cases, validation, errors]
## Recommendations
[which patterns from each system should be adopted]
No running servers needed. Compares two codebases by reading files.
For each codebase:
Compare:
| Aspect | How |
|---|---|
| Directory structure | ls -R both projects, compare patterns |
| File organization | Components, routes, models, services, utils |
| Framework patterns | How each uses its framework (MVC, component-based, etc.) |
| State management | How data flows through each app |
| API design | REST vs GraphQL, naming conventions, auth patterns |
| Database schema | Migration files, models, relationships |
| Testing approach | Test frameworks, coverage patterns, test organization |
| Build & deploy | CI/CD, Docker, build scripts |
| Dependencies | Shared deps, unique deps, version differences |
Trace key flows through each codebase:
For each flow, document the path through the code (file → function → file) in both systems.
Write to recon-compare-YYYY-MM-DD.md with: