Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
pnpm dev # Start development server at http://localhost:3000 pnpm build # Production build pnpm lint # Run ESLint
This is a Next.js 14 (App Router) application that generates report card comments for Ontario Grade 6 teachers. Users select subjects, sections, and proficiency levels to either pull pre-written comments from a database or refine comments using OpenAI GPT.
app/components/subjects/ - Subject-specific form components (Math, Language, Science, LearningSkills)app/constants/ - Comment bank (commentBank.ts), subject definitions (subjects.ts), AI prompts (promptConfig.ts)app/utils/supabase/ - Supabase client factories (separate client/server implementations)app/api/chat/ - POST endpoint for GPT comment refinementapp/api/comments/ - DELETE endpoint for CRUD operationscomment_versions (user_id, version_name, id) └── subjects (version_id, subject_name, id) └── sections (subject_id, section_name, id) └── levels (section_id, level_name, comment, id)
submitForm.ts uses Strategy pattern (MathStrategy, LanguageStrategy, etc.) → pulls from commentBank.ts → updates TextContexthandleUseGPT() → POST /api/chat → OpenAI refines comment → updates TextContextTextContext - Shared comment text across componentsConfettiSwitch - Triggers celebration animation after GPT successAI prompts preserve token placeholders for pronoun substitution:
Character limits:
Required in
.env.local:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYtsconfig.json)next.config.mjs: typescript.ignoreBuildErrors: true)@/* maps to ./app/*