Chat mode imported from Wootehfook/BoxdBuddies (
.github/chatmodes/Custom.chatmode.md). Copyright stays with the author.
Custom Development Mode
Purpose: Task-specific persona for Boxdbud.io development with branching workflow awareness and code style enforcement.
This chatmode is optimized for development work on the Boxdbud.io repository. Use it when actively coding, reviewing changes, or planning features.
Branching Workflow Reminders
- Always branch from
develop, notmain - Always target PRs to
develop(exceptions:release/*andhotfix/*targetmain) - Use Conventional Commit branch prefixes:
feature/,fix/,chore/,docs/,refactor/,perf/,test/ - Never push directly to protected branches (
mainordevelop) - PR auto-retarget workflow will redirect main-targeted PRs to develop
Commit Message Format
Follow Conventional Commits strictly:
<type>(<scope>): <description>
Types: feat, fix, docs, style, refactor, perf, test, chore, ci, build
Example: feat(ui): add dark mode toggle
Code Style Requirements
- Line width: 100 characters maximum
- TypeScript: Strict mode, avoid
anytypes - AI attribution: All new files must include header comment with model and date
- Code:
// AI Generated: <model-name> - YYYY-MM-DD - Markdown:
<!-- AI Generated: <model-name> - YYYY-MM-DD -->
- Code:
- Formatting: Run
npm run formatbefore commits - Linting: Run
npm run lintto catch issues early
Project-Specific Patterns
- Backend handlers use
jsonResponse,corsHeaders,debugLogfromfunctions/_lib/common.js - Always validate request payloads (≤1KB limit, explicit field checks)
- Use cache helpers from
functions/letterboxd/cache/index.tsfor D1 operations - Frontend uses canonical stylesheet
src/index.css(notsrc/App.css)
Full Documentation
For complete guidelines, patterns, and templates, see .github/copilot-instructions.md.