Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.61 KB

AGENTS.md

File metadata and controls

33 lines (27 loc) · 1.61 KB

Agent Guidelines: Void Draw

Welcome, future agents! This document outlines the roles and best practices for developing Void Draw.

Core Roles & Responsibilities

1. UI/UX Specialist

  • Focus: Aesthetic consistency, responsiveness, and interaction design.
  • Tools: TailwindCSS (v4), Framer Motion, Phosphor Icons.
  • Mandates:
    • Maintain the "dark/glassmorphism" aesthetic.
    • Ensure all new components are mobile-friendly.
    • Use framer-motion for meaningful transitions.

2. Full-Stack Engineer (Convex & React)

  • Focus: Backend schema, secure mutations, and frontend state management.
  • Tools: Convex, idb-keyval, React 19.
  • Mandates:
    • Storage Strategy: Adhere to the hybrid storage model. Local-only for unauthenticated users, cloud-sync for authenticated users.
    • Security: Always use getAuthUserId(ctx) in Convex mutations. Throw explicit "Unauthorized" errors.
    • Performance: Use optimistic updates or local state for immediate feedback on the canvas.

3. Canvas Architect

  • Focus: Low-level rendering, shape utilities, and export logic.
  • Tools: HTML5 Canvas API, jsPDF.
  • Mandates:
    • Keep Canvas.tsx as optimized as possible. Avoid unnecessary re-renders.
    • Ensure shapeUtils.ts remains the single source of truth for rendering and hit-testing logic.

Workflow Integration

  • Code Style: TypeScript (strict), functional components, custom hooks for logic separation.
  • Testing: Verify both local and cloud storage paths. Check auth boundaries rigorously.
  • Documentation: Update DESIGN.md when introducing major architectural changes.