| name | go-kite |
| version | 1.0.0 |
| description | Audits an existing system's architecture across five dimensions — structure, observability, reliability, scalability, and security posture — and produces a prioritized HTML report with findings, capability gaps, and concrete improvement proposals. Uses repomix to pack the codebase, reads ADRs and CONTEXT.md when present, and opens the report in the browser. |
| when_to_use | Use when the user wants a strategic view of an existing system's health, a prioritized list of what to improve, or ideas for capabilities not yet built. Invoke after go-mole if the codebase is unfamiliar. Feeds into go-fox (for architectural revisions), go-wolf (for backend gaps), go-bear (for security gaps), and go-raven (for CI/CD gaps). |
go-kite — Architecture Health Audit
go-kite is the scout of the go-beast pack. It flies above the system, maps the terrain, and returns with a ranked report of what is healthy, what is fragile, and what is missing.
Quick start
User: "Review our architecture and tell me what we should improve."
→ invoke go-kite
→ pack codebase → read ADRs + CONTEXT.md → audit 5 dimensions → HTML report → browser
Workflow
1. Pack the codebase
Use repomix pack_codebase on the project root. If the repo is large, compress with compress: true. Store the output ID — all subsequent searches run against this packed output.
2. Load existing context
Before reading a single line of code, pull what the project already knows about itself:
If none of these exist, note the absence as a finding (Dimension 5: Missing context infrastructure).
3. Audit across five dimensions
For each dimension, run targeted searches with grep_repomix_output and read key files with read_repomix_output. Record findings with evidence (file:line references).
Dimension 1 — Structure & Modularity
Dimension 2 — Observability
Dimension 3 — Reliability
Dimension 4 — Scalability & Performance
Dimension 5 — Security Posture
4. Identify capability gaps
Beyond what is broken or fragile, ask what is absent:
Only flag gaps where the domain or existing code signals the need. Do not propose capabilities that are purely speculative.
5. Produce the HTML report
Write a self-contained HTML file to <tmpdir>/architecture-audit-<timestamp>.html. Resolve temp dir from $TMPDIR, fall back to /tmp, use %TEMP% on Windows. Open it with open <path> (macOS), xdg-open <path> (Linux), start <path> (Windows). Tell the user the absolute path.
The report uses Tailwind via CDN for layout and Mermaid via CDN for dependency graphs. Structure:
Executive summary (top of page)
- System name and inferred purpose (one sentence)
- Overall health score:
Healthy / Needs attention / At risk — each dimension gets a colored badge
- Top 3 recommendations (numbered, clickable anchors to the relevant card below)
Dimension cards (one section per dimension)
Each card contains:
- Status badge:
Good / Warning / Critical
- Findings: bulleted list with file:line evidence for every claim
- Mermaid diagram where the structure is graph-shaped (dependency graph, call flow) — omit if it adds no information
- Recommendations: numbered, actionable — each recommendation states what to do, why it matters, and which beast to invoke next (e.g., "→ invoke go-bear to harden auth")
Capability gaps section
One card per identified gap:
- Gap name
- Why it matters — what goes wrong without it (not a generic pitch)
- Recommendation strength:
Strong / Worth exploring / Speculative
- Suggested next step — which beast handles it, or what to build
ADR conflicts
If any finding contradicts an existing ADR, surface it in a separate "ADR Conflicts" section with a warning callout: "contradicts ADR-N — worth reopening because…"
Missing documentation
If CONTEXT.md, ADR.md, or STACK.md are absent, list them as findings with a one-line explanation of the cost (e.g., "No CONTEXT.md: AI assistants and new contributors cannot use consistent terminology").
6. Present and offer next steps
After opening the report, summarize in 3–5 sentences:
- The most critical finding and its risk
- The highest-value capability gap
- Which beast to invoke next
Then ask: "Which of these would you like to act on first?"
Rules
- Never fabricate findings. Every claim in the report must reference a specific file and line number from the packed codebase output.
- Do not re-litigate ADRs unless there is concrete evidence of friction (measured costs, recurring bugs, test failures). State this clearly when surfacing ADR conflicts.
- Do not propose capabilities that have no signal in the domain or existing code.
Speculative strength is the correct label when a finding is plausible but not evidenced — do not hide uncertainty under Worth exploring.
- Do not implement. go-kite audits and proposes. Hand off to the appropriate beast for execution.
Output
<tmpdir>/architecture-audit-<timestamp>.html — self-contained HTML report opened in browser
- Verbal summary (3–5 sentences) presented after the report opens, covering the critical finding, highest-value gap, and recommended next beast