Imported from fthbzkrt129/Fit-check-v2 (
apps/web/AGENTS.md). Install upstream withnpx skills add fthbzkrt129/Fit-check-v2 --skill web. Copyright stays with the author.
LLM Wiki Agent Guide
Mission
Maintain the apps/web part of this repository as a persistent, compounding project memory workflow connected to the second brain.
Read First
At the start of each session working in apps/web, read in this order:
../../second-brain/wiki/overview.md../../second-brain/wiki/index.md- recent relevant entries in
../../second-brain/wiki/log.md - directly relevant wiki pages
- raw source files only when necessary
- then the relevant files under
apps/web
Suggested Skill Usage
- Session baslangicinda once
using-superpowerskullan. - Is belirsizse, karar gerekiyorsa veya birden fazla dogru yol varsa erken asamada
sequential-thinkingkullan. - Yeni feature, davranis degisikligi veya tasarim gerektiren islerde
brainstormingile basla. - Onayli bir tasarim/spec varsa uygulama adimlarini netlestirmek icin
writing-planskullan. - Plan hazirsa ve uygulama cok adimliysa
subagent-driven-developmentiyi varsayilandir. - Bug, test failure veya beklenmeyen davranista
systematic-debuggingkullan. - Feature veya bugfix implementasyonundan hemen once
test-driven-developmentdusun. - Session kapanisinda
wrap-upkullan. - Guncel framework, Next.js, React, Supabase veya SDK dokumani gerekiyorsa
context7kullan. - UI akisi, browser davranisi veya form/sayfa dogrulamasi gerekiyorsa
playwright-mcpkullan. - SQL, migration, auth, storage, edge function veya schema islerinde
supabaseMCP kullan. - Buyuk cikti, cok dosyali analiz veya uzun komut sonucu gerekiyorsa
context-modekullan.
Skill Orchestration Flow
Local Skill Priority
- Once proje-yerel skill'leri tercih et:
apps/web/.agents/skills/. - Proje-yerel skill yoksa global skill'lere dus.
- Skill isimleri dekorasyon degildir; uygun tetikleyici varsa once skill'i yukle, sonra aksiyon al.
- Birden fazla skill uyuyorsa once surec skill'i, sonra domain skill'i kullan.
- Surec skill'leri:
brainstorming,writing-plans,systematic-debugging,test-driven-development,wrap-up. - Domain skill'leri:
next-best-practices,nextjs-app-router-patterns,nextjs-best-practices,nextjs-react-typescript,nextjs-supabase-auth,react-testing-patterns,supabase,code-review-and-quality.
Intent Router
ne yaptik,ozetle,durum ne: once mevcut chat/proje durumunu ozetle; kod degistirme.feature ekle,davranisi degistir,akisi kur:brainstorming->writing-plans->test-driven-development-> implementasyon -> dogrulama.bug var,hata var,calismiyor,neden:systematic-debugging-> gerekirsesequential-thinking-> kok neden kaniti ->test-driven-development-> minimal fix -> dogrulama.UI,tasarim,sayfa,component,responsive:brainstorming-> uygun frontend/design skill -> implementasyon ->playwright-mcpile browser dogrulama.Next.js,App Router,server action,routing,metadata: yerel Next.js skill'i -> gerekirsecontext7-> implementasyon ->typecheck/build.React,hook,state,component pattern:nextjs-react-typescriptveya ilgili React skill -> gerekirsereact-testing-patterns.test yaz,coverage,unit test,regression:test-driven-development->react-testing-patterns-> hedefli test komutu.Supabase,auth,RLS,migration,storage,edge function:supabaseskill -> Supabase MCP -> gerekirsenextjs-supabase-auth-> DB/app dogrulama.review,kontrol et,kalite: code review modunda bulgulari once yaz; gerekirsecode-review-and-qualitykullan.wrap up,oturumu kapat,bugunluk kapat:wrap-upakisini calistir ve durable memory guncelle.
Canonical Pipelines
Startup Pipeline
using-superpowerskuralini uygula.- Bu dosyadaki
Read Firstsiralamasini izle. - Intent'i siniflandir ve
Intent Routeruzerinden skill zincirini sec. - Gereksiz tool cagirma; ama uygun skill varsa atlama.
Feature Pipeline
brainstormingile amac, sinirlar ve kabul kriterlerini netlestir.- Kullanici onayindan sonra
writing-plansile kucuk uygulanabilir adimlara bol. - Implementasyondan hemen once
test-driven-developmentkullan. - Next.js/React/Supabase dokunuluyorsa ilgili yerel domain skill'ini yukle.
- Degisikligi minimal tut, mevcut pattern'leri koru.
- Uygun komutlarla dogrula:
test,typecheck,build.
Bugfix Pipeline
systematic-debuggingile semptomu yeniden uret veya kanitla.- Kok nedeni kanitlanmadan fix yazma.
- Regression riski varsa once failing test ekle.
- Minimal fix uygula.
- Ilgili testleri ve gerekiyorsa
typecheck/buildcalistir.
UI Verification Pipeline
- UI degisikliginde once tasarim niyetini netlestir.
- Mevcut tasarim sistemini bozma; sadece hedeflenen alani iyilestir.
- Desktop ve mobile gorunumleri
playwright-mcpile dogrula. - Console error ve kritik network hatalarini kontrol et.
Supabase Pipeline
- Supabase islerinde once
supabaseskill'i ve gerekiyorsa Supabase MCP kullan. - DDL icin migration tercih et; rastgele raw SQL ile kalici schema degisikligi yapma.
- RLS, auth session, cookie ve server/client boundary etkilerini kontrol et.
- DB degisikliginden sonra types veya ilgili app kodu gerekiyorsa guncelle.
Quality Gate
- Kod degistiyse uygun scriptleri kontrol et; olmayan script uydurma.
- Tercih sirasi: hedefli test ->
npm run test --prefix apps/web->npm run typecheck --prefix apps/web->npm run build --prefix apps/web. - Buyuk cikti bekleniyorsa raw shell yerine
context-modekullan. - Tamamlandi demeden once dogrulama sonucunu raporla.
Default Operation Order
Debug Pipeline
- Trigger on intents such as
debug et,hata var,bug var,neden bozuluyor,root cause bul, orincele ve çöz - Start with the canonical process chain:
using-superpowers->find-skills->systematic-debugging - If the issue is multi-layered, ambiguous, or requires tradeoff analysis, add
sequential-thinking - Do not propose or apply a fix before the root cause is evidenced clearly
- Once root cause is confirmed, move to
writing-plansor a minimal explicit fix plan - If behavior will change or regression risk exists, use
test-driven-developmentbefore implementation - If the outcome is reusable operational knowledge, convert it into a runbook entry
- If the result changes durable project memory, update the relevant wiki pages plus
overview,index, andlog
Ingest
- Classify the raw source if needed
- Create or update the source page
- Update affected concept, entity, theme, map, and overview pages
- Update the index
- Log the ingest
Query
- Search the wiki first
- Read source pages second
- Read raw files only if evidence is missing
- Cite wiki pages inline
- Save durable answers to
../../second-brain/wiki/analyses/when useful - Log durable query outputs
Lint
- Check navigation, contradictions, stale claims, missing pages, and source gaps
- Save durable lint outputs as analysis or map pages when useful
- Log the lint pass
Wrap-Up
- Trigger on session-close intent such as
wrap up,done for now, orbugunluk kapat - Run the canonical chain:
wrap-up->obsidian-markdown-> raw wrap-up -> NotebookLM ->erp-wiki-orchestrator-> durable wiki updates - Audit git state with
git status --shortandgit diff --stat - Run quality checks separately for root
package.jsonandapps/web/package.json - Record missing scripts as
not available - Write raw wrap-up under
../../second-brain/raw/wrap-ups/usingobsidian-markdown - Write companion wrap-up source page under
../../second-brain/wiki/sources/ - Upload the raw wrap-up file to NotebookLM notebook
Virtualize(ae930df0-0cc0-4899-8843-963bee33fcf3) - If upload fails, log the blocker explicitly in both the raw wrap-up and
../../second-brain/wiki/log.md - First choice for durable memory updates is
erp-wiki-orchestrator - When needed, trigger
erp-wiki-ingestor,erp-decision-capturer,erp-runbook-extractor, anderp-wiki-normalizer - Apply
obsidian-markdownto durable wiki page writes and refresh the vault index withobsidian-cliwhen available - Update affected
project,runbooks,overview,index, andlog - If wrap-up needs a quick memory scan before writing durable pages, use
obsidian-bases json-canvasis not currently available in this repo, so visualization is optional and should only be added if that skill/tool is introduced later
Schema
Update schema files only when the user explicitly changes the operating model.
Never Modify
- durable source content in
../../second-brain/raw/ - log history except by appending new entries
- canonical pages destructively when a merge, redirect, or deprecation note is more appropriate
Logging Rule
After every meaningful ingest, query, lint, schema, or wrap-up, append a matching entry to ../../second-brain/wiki/log.md.
Working Style
- prefer durable synthesis over one-off summaries
- preserve uncertainty honestly
- record contradictions explicitly
- keep the wiki interlinked and navigable
- use skills as a practical operating guide, not as decorative labels