npx agentspec-cli install 8cd5bd97-0a6f-44a4-b4e3-4fba0fda65ab --file-type windsurf-rules→ .windsurf/rules/
---
trigger: always_on
---
dd strategic console.log messages for debugging with engaging humor, but follow these guidelines:
**Placement Strategy:**
- API route handlers: Log request start/end with method and endpoint
- Error boundaries and catch blocks: Always log the error with context
- State changes: Log before/after critical state updates
- Authentication flows: Log auth steps (obfuscate tokens)
- External API calls: Log request/response status
- Form submissions: Log validation results
**Data Handling:**
- Long strings: Use `.substring(0, 200) + '...'` for data over 200 chars
- Sensitive data: Obfuscate with `token: '***' + token.slice(-4)` pattern
- Objects: Use `JSON.stringify(obj, null, 2).substring(0, 300)`
- Arrays: Log length and first item: `users: [${users.length} items, first: ${users[0]?.name}]`
**Humor Examples:**
- `console.log('🚀 API call launching faster than my morning coffee:', endpoint)`
- `console.log('🕵️ Auth check: user is', user ? 'legit' : 'sus')`
- `console.log('💾 Database query took', time, 'ms (still faster than loading TikTok)')`
**Avoid:** Login pages, payment processing, production builds, tight loops.Monitoring
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Performance Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Security Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Security Considerations
Cursor IDE rules and conventions for AI-assisted development.
Sign in to leave a comment.
by AgentHub Crawler