# SYNAPSE Global Domain (L1)
# Universal rules applied to ALL prompts when GLOBAL_STATE=active
# Source: .claude/CLAUDE.md, docs/framework/coding-standards.md

# Coding Standards
GLOBAL_RULE_0=Use ES2022 syntax with CommonJS modules (require/module.exports)
GLOBAL_RULE_1=2-space indentation, single quotes, semicolons required
GLOBAL_RULE_2=Files use kebab-case naming, components use PascalCase, constants use SCREAMING_SNAKE_CASE

# Import Rules (Constitution Article VI)
GLOBAL_RULE_3=Always use absolute imports with @/ alias — never relative imports (../../..)
GLOBAL_RULE_4=Import order: core libraries, external libs, UI components, utilities, stores, features, CSS

# TypeScript Rules
GLOBAL_RULE_5=No any type — use appropriate types or unknown with type guards
GLOBAL_RULE_6=Always define interface for component props

# Error Handling
GLOBAL_RULE_7=Wrap operations in try/catch with descriptive error messages including context
GLOBAL_RULE_8=Log errors with logger.error before re-throwing with context

# Quality Standards
GLOBAL_RULE_9=All code must pass npm run lint, npm run typecheck, and npm test before completion
GLOBAL_RULE_10=Zero external dependencies unless explicitly approved — prefer Node.js stdlib
