KeiSeiKit-1.0/_bridges/windsurf.tmpl
Parfii-bot ea68954919 feat(bridges): import 11 tool-bridge templates from PROJECT-D
- Copy 11 .tmpl files from PROJECT-D (agents-md, cursorrules,
  cursor-mdc, copilot, windsurf, junie, continue, gemini,
  aider-conventions, aider-conf, replit) into _bridges/
- Add _bridges/README.md with template→output-path table
- Placeholders are {{PROJECT_NAME}} + {{PROJECT_DESCRIPTION}};
  templates unchanged — content verified per RULE 0.4 upstream
2026-04-21 14:29:46 +08:00

32 lines
893 B
Cheetah

---
trigger: always_on
---
# {{PROJECT_NAME}} — Windsurf Rules
{{PROJECT_DESCRIPTION}}
## Constructor Pattern
1 file = 1 class = 1 responsibility. Function >30 lines = split. File >200 lines = decompose.
## Core Rules
- No patching — fix root cause, not symptoms
- Don't rewrite working code without reason
- Single Source of Truth — types, routes, enums in ONE place
- Types/interfaces BEFORE implementation
- Tests WITH code, never "later"
## Project Context
- Architecture decisions: see `DECISIONS.md`
- Project rules: see `CLAUDE.md`
- Current priorities: see `TODO.md`
## Forbidden
- Mixins, abstract factories, DI containers
- Rewriting working code without reason
- Committing .env, credentials, API keys
- Adding abstractions for one-time operations
## Session Protocol
- Read `DECISIONS.md` before making architectural choices
- Document new decisions in `DECISIONS.md`