# architecture-review

Adopt this skill: https://proskills.md/skills/other/omergocmen-vibe-coder-kit-agent-skills-architecture-review

Page: https://proskills.md/skills/other/omergocmen-vibe-coder-kit-agent-skills-architecture-review
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: .agent/skills/architecture-review/SKILL.md
size: 5940
upstream: https://github.com/omergocmen/vibe-coder-kit/blob/main/.agent/skills/architecture-review/SKILL.md

````text
---
name: architecture-review
description: >
  Before committing to an implementation plan, run this skill to stress-test
  the proposed architecture. Catches over-engineering, circular dependencies,
  missing failure modes, security gaps, and scalability cliffs — before any
  code is written. Acts as a "second eye" on the plan.
---

<!--
  TÜRKÇE AÇIKLAMA
  ───────────────
  Bu skill, bir implementasyon planı kod yazılmadan önce "ikinci göz" olarak
  stres testine tabi tutar. Aşırı mühendislik, döngüsel bağımlılıklar, eksik
  hata senaryoları, güvenlik açıkları ve ölçeklenebilirlik sorunlarını erken tespit eder.
  Yanlış temele inşa etmenin maliyeti çok yüksektir — bu skill o maliyeti sıfıra indirir.

  NE ZAMAN: Plan hazırlandıktan SONRA, kod yazmaya başlamadan ÖNCE. Zorunludur.
  ÇIKTI:    🔴 Blocker / 🟡 Warning / 🔵 Note listesi + Approved/Revisions Required kararı.
-->

# Architecture Review Skill

## When to Trigger

- After `writing-plans` produces an implementation plan, *before* `executing-plans`
- When a significant refactor is proposed
- When adding a new external service or integration
- When the team is debating between two approaches
- When something "feels off" about a design but you can't articulate why

## Step-by-Step Process

### 1. Load the Plan

Read the implementation plan (typically `implementation_plan.md` or the artifact from `writing-plans`).

Extract:
- Components being built
- Data flow between components
- External dependencies
- Assumptions the plan makes

### 2. Run the Checklists

Work through each checklist section. For every "No" or "Unclear" answer, flag it as a finding.

---

#### A. Complexity Check
- [ ] Is this the simplest solution that could work?
- [ ] Are there off-the-shelf solutions (libraries, services) that cover 80%+ of this?
- [ ] Does each component have a single, clear responsibility?
- [ ] Would a junior developer understand this in 30 minutes?

#### B. Coupling & Cohesion
- [ ] Can each module be tested in isolation?
- [ ] Are there circular dependencies? (A needs B needs A)
- [ ] Is data ownership clear? (only one place writes to each piece of state)
- [ ] Is the public API surface minimal? (don't expose what doesn't need to be exposed)

#### C. Data & State
- [ ] Is the source of truth for each piece of data clearly defined?
- [ ] What happens if the datastore goes down?
- [ ] Is there any global mutable state? If so, is it justified?
- [ ] Are database migrations planned for any schema changes?

#### D. Failure Modes
- [ ] What happens when each external service is unavailable?
- [ ] Are there retry mechanisms with backoff for network calls?
- [ ] Are there timeouts on all I/O operations?
- [ ] Is there a circuit breaker if a downstream dependency degrades?
- [ ] What does a partial failure look like to the user?

#### E. Security
- [ ] Is all user input validated and sanitized?
- [ ] Are secrets managed via env vars / secrets manager (not hardcoded)?
- [ ] Is authentication and authorization clearly separated?
- [ ] Are there any SQL injection / XSS / CSRF vectors?
- [ ] Does the principle of least privilege apply to service accounts?

#### F. Scalability
- [ ] What is the expected load in 6 months? Does the design handle it?
- [ ] Are there any obvious N+1 query problems?
- [ ] Is any caching planned? Is the invalidation strategy defined?
- [ ] Are background jobs used for anything that could block the request cycle?

#### G. Observability
- [ ] Is structured logging planned?
- [ ] Are there metrics/health endpoints?
- [ ] Will errors surface in a monitoring tool (not just logs)?
- [ ] Is there a way to trace a request end-to-end?

#### H. Operability
- [ ] Can this be deployed without downtime?
- [ ] Is there a rollback plan if the deployment goes wrong?
- [ ] Are environment differences (dev/staging/prod) documented?

---

### 3. Classify Findings

For each "No" or "Unclear" found above, classify it:

| Class | Meaning | Action |
|-------|---------|--------|
| 🔴 Blocker | Must fix before implementation | Revise plan |
| 🟡 Warning | Should address, can proceed carefully | Add a task to backlog |
| 🔵 Note | Nice to have, low risk | Document and move on |

### 4. Produce the Review Report

Her zaman ayrı bir dosyaya yaz — **plan dosyasını kirletme**:
```
.agent/reviews/architecture-review-<plan-slug>.md
```

Eğer bu review'dan önemli bir mimari karar çıktıysa, ek olarak `knowledge-base-update` skill'ini kullanarak `decision` tipiyle knowledge base'e de ekle — `project-context-primer` oradan okuyacak.

```markdown
# Architecture Review — <plan name>
**Date:** <YYYY-MM-DD>
**Reviewer:** Agent

## Verdict
<Approved | Approved with conditions | Revisions required>

## 🔴 Blockers
### 1. <Finding title>
**Checklist item:** Failure Modes — timeout on I/O
**Issue:** The email service call has no timeout. If SendGrid hangs, the entire request thread blocks.
**Recommendation:** Wrap in a 5-second timeout; use a background job queue for non-critical emails.

## 🟡 Warnings
### 1. <Finding title>
...

## 🔵 Notes
### 1. <Finding title>
...

## Summary
<Overall health of the architecture in 2-3 sentences.>
```

### 5. Gate: Proceed or Revise?

- If there are any 🔴 **Blockers**: stop. Share the report with the user and revise the plan before any code is written.
- If there are only 🟡/**🔵**: proceed, but ensure warnings are tracked as tasks.

## Rules

- **Be specific, not generic.** "You should add error handling" is useless. "The `fetchUser()` call on line 42 of the plan has no 404 handling" is a review.
- **Don't block on stylistic preferences.** Blockers are objective risks, not taste.
- **Never approve a plan with an undefined failure mode for a critical path.**
- **If you can't understand part of the plan, that is itself a finding** — clarity is a requirement.
````

## File: README.md
upstream: https://github.com/omergocmen/vibe-coder-kit/blob/main/README.md

````text
<div align="center">

# ⚡ Vibe Coder Kit

**AI Destekli Profesyonel Yazılım Geliştirme Agent Framework'ü**

*AI kod asistanını disiplinli, süreç odaklı bir geliştirme ekibine dönüştürün.*

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![OpenCode Compatible](https://img.shields.io/badge/OpenCode-Compatible-purple.svg)](https://opencode.ai)
[![PRs Welcome](https://img.shields.io/badge/PRs-Welcome-brightgreen.svg)](#katkıda-bulunmak)

</div>

---

## 🎯 Vibe Coder Kit Nedir?

Vibe Coder Kit, AI kod asistanlarını (ör. [OpenCode](https://opencode.ai)) yapılandırılmış, süreç odaklı bir geliştirme ekibine dönüştüren **yapılandırma odaklı bir agent framework'üdür**. Anlık prompt yazmak yerine, şunlara sahip olursunuz:

- 🤖 **4 Uzman Agent Personalası** — Tasarımcı, Frontend Geliştirici, Backend Geliştirici, DevOps
- 🛠️ **12 Kanıtlanmış Skill** — Fikir üretiminden kriz yönetimine yapılandırılmış iş akışları
- 📏 **3 Kural Seti** — Kod hijyeni, kalite ve güvenlik standartları
- 🧠 **Kalıcı Bilgi Tabanı** — Oturumlar arası bilgi paylaşımı, tekrarlanan hataları önler

> **"Çalışıyor" ≠ "Bitti".** Testler geçiyor + temiz kod + dokümantasyon güncel = bitti.

---

## ✨ Öne Çıkan Özellikler

### 🎭 Agent Personalaları

| Agent | İsim | Uzmanlık Alanı |
|-------|------|---------------|
| 🎨 **Tasarımcı** | Aria | UI/UX, motion design, tasarım sistemleri, erişilebilirlik |
| 💻 **Frontend** | Felix | React/Vue, CSS mimarisi, performans, Core Web Vitals |
| ⚙️ **Backend** | Bora | API tasarımı, veritabanları, auth, güvenlik, mikroservisler |
| 🚀 **DevOps** | Deva | Docker, CI/CD, cloud altyapı, izleme, kriz yönetimi |

<!-- Her agent, kendi alanında senior seviye uzman olarak tasarlanmıştır. Detaylı bilgi için .agent/agents/ dizinine bakabilirsiniz. -->

### 🛠️ Skill'ler (Yapılandırılmış İş Akışları)

| Skill | Ne Zaman Kullanılır | Ne Yapar |
|-------|---------------------|----------|
| `project-context-primer` | Her oturum başında *(zorunlu)* | Proje bağlamını, kararları ve tuzakları yükler |
| `prompt-enhancer` | Belirsiz veya eksik istekler | Kapsamı netleştirir, eksik boyutları tamamlar |
| `brainstorming` | Yeni özellik veya proje fikirleri | Sokratik yöntemle rafine eder → scope dokümanı üretir |
| `writing-plans` | Scope onayından sonra | Checkpoint'li implementasyon planı oluşturur |
| `architecture-review` | Kod yazmaya başlamadan önce | Planı stres testine tabi tutar, riskleri işaretler |
| `test-driven-execution` | Her özellik implementasyonunda | Test önce, kod sonra yaklaşımı uygular |
| `code-review` | Her commit öncesinde | Pre-commit checklist + geri bildirim yanıtlama |
| `github` | Tüm git işlemlerinde | Conventional commits, branch yönetimi, PR iş akışı |
| `knowledge-base-update` | Önemli bir şey öğrenildiğinde | Oturumlar arası kalıcı bilgi depolama |
| `documentation-sync` | Önemli kod değişikliklerinden sonra | Dokümantasyon ve kodun uyumunu sağlar |
| `dependency-audit` | Release öncesi / aylık rutin | Güvenlik açıklarını ve eski paketleri tarama |
| `incident-response` | Production sorunlarında | Triyaj → içerme → düzeltme → post-mortem |

<!-- Skill'ler bağımsız olarak kullanılabilir, ancak tam verim için önerilen sırayla çalıştırılmalıdır. -->

### 📏 Kurallar (Zorunlu Standartlar)

| Kural | Amacı |
|-------|-------|
| `code-hygiene` | Yorum stili, debug log temizliği, hassas veri yönetimi |
| `code-quality` | Aşırı mühendislik yapmadan DRY, soyutlama eşiği |
| `safety` | Yıkıcı komut onayı, rollback planları |

<!-- Kurallar öneri değil, zorunluluktur. Agent bu kuralları her görevde uygular. -->

---

## 🚀 Kurulum ve Kullanım

Vibe Coder Kit'i iki şekilde kullanabilirsiniz: **mevcut projenize entegre ederek** veya **yeni bir proje olarak başlatarak**.

### Yöntem 1: Mevcut Projenize Entegre Etme (Önerilen)

Mevcut bir projeniz varsa, sadece agent yapılandırma dosyalarını projenize kopyalayın:

```bash
# 1. Repoyu indirin (geçici bir klasöre)
git clone https://github.com/omergocmen/vibe-coder-kit.git /tmp/vibe-coder-kit

# 2. .agent dizinini projenize kopyalayın
cp -r /tmp/vibe-coder-kit/.agent /projenizin/yolu/

# 3. OpenCode yapılandırma dosyasını kopyalayın
cp /tmp/vibe-coder-kit/opencode.json /projenizin/yolu/

# 4. AGENTS.md dosyasını kopyalayın (OpenCode bunu otomatik okur)
cp /tmp/vibe-coder-kit/AGENTS.md /projenizin/yolu/

# 5. Geçici dosyaları temizleyin
rm -rf /tmp/vibe-coder-kit

# 6. Proje dizinine gidin
cd /projenizin/yolu
```

**Windows (PowerShell) kullanıcıları:**

```powershell
# 1. Repoyu indirin
git clone https://github.com/omergocmen/vibe-coder-kit.git "$env:TEMP\vibe-coder-kit"

# 2. .agent dizinini projenize kopyalayın
Copy-Item -Recurse "$env:TEMP\vibe-coder-kit\.agent" "C:\projenizin\yolu\.agent"

# 3. Yapılandırma dosyalarını kopyalayın
Copy-Item "$env:TEMP\vibe-coder-kit\opencode.json" "C:\projenizin\yolu\"
Copy-Item "$env:TEMP\vibe-coder-kit\AGENTS.md" "C:\projenizin\yolu\"

# 4. Geçici dosyaları temizleyin
Remove-Item -Recurse "$env:TEMP\vibe-coder-kit"
```

### Yöntem 2: Yeni Proje Olarak Başlatma

Sıfırdan yeni bir proje başlatıyorsanız, repoyu doğrudan klonlayıp üzerine inşa edin:

```bash
# Repoyu klonlayın
git clone https://github.com/omergocmen/vibe-coder-kit.git benim-projem
cd benim-projem

# Artık .agent/, opencode.json ve AGENTS.md hazır
# Kendi kodunuzu bu dizin yapısının üzerine ekleyin
```

### İndirdikten Sonra Ne Yapmalısınız?

1. **[OpenCode](https://opencode.ai) kurun** — Henüz kurmadıysanız:
   ```bash
   # npm ile global kurulum
   npm install -g opencode
   
   # veya doğrudan çalıştırın
   npx opencode
   ```

2. **Proje dizininde OpenCode'u başlatın:**
   ```bash
   cd /projenizin/yolu
   opencode
   ```

3. **İlk oturumda** OpenCode otomatik olarak `AGENTS.md` dosyasını okuyacak ve `project-context-primer` skill'ini çalıştıracaktır. Agent size proje hakkında sorular soracak ve bağlamı yükleyecektir.

4. **Bilgi tabanını başlatın** — İlk oturumda `.agent/knowledge/INDEX.md` dosyası oluşturulur. Bundan sonra tüm kararlar, kurallar ve tuzaklar otomatik olarak kaydedilir.

### Yapıyı Özelleştirme

Projenize özel özelleştirmeler yapabilirsiniz:

- **Agent personalarını düzenleyin:** `.agent/agents/` dizinindeki dosyaları projenizin ihtiyacına göre değiştirin
- **Yeni skill ekleyin:** `.agent/skills/yeni-skill/SKILL.md` oluşturun
- **Kuralları sıkılaştırın:** `.agent/rules/` dizinindeki dosyaları düzenleyin
- **Gereksiz agent'ları kaldırın:** Örneğin sadece backend geliştirme yapıyorsanız, `designer.md` ve `frontend-dev.md` dosyalarını silebilirsiniz

<!-- Her projenin ihtiyacı farklıdır. Framework'ü projenize göre özelleştirmekten çekinmeyin. -->

---

## 📁 Proje Yapısı

```
vibe-coder-kit/
├── AGENTS.md                          # Oturum başlatma talimatları (OpenCode tarafından otomatik okunur)
├── opencode.json                      # OpenCode yapılandırma dosyası
├── .agent/
│   ├── agents/                        # Uzman personaları
│   │   ├── designer.md                # Aria — UI/UX ve motion design
│   │   ├── frontend-dev.md            # Felix — Frontend mühendisliği
│   │   ├── backend-dev.md             # Bora — Backend ve sistemler
│   │   └── devops.md                  # Deva — Altyapı ve operasyonlar
│   ├── skills/                        # Yapılandırılmış iş akışları
│   │   ├── project-context-primer/    # Oturum başlatma (zorunlu)
│   │   ├── prompt-enhancer/           # İstek netleştirme
│   │   ├── brainstorming/             # Sokratik tasarım rafinasyonu
│   │   ├── writing-plans/             # İmplementasyon planlama
│   │   ├── architecture-review/       # Plan stres testi
│   │   ├── test-driven-execution/     # TDD iş akışı
│   │   ├── code-review/               # Commit öncesi inceleme
│   │   ├── github/                    # Git işlemleri ve commit'ler
│   │   ├── knowledge-base-update/     # Kalıcı bellek
│   │   ├── documentation-sync/        # Dokümantasyon senkronizasyonu
│   │   ├── dependency-audit/          # Güvenlik taraması
│   │   └─
````
