From 2014c1470f9226d3e414ba47ca499fcc8c5cced2 Mon Sep 17 00:00:00 2001 From: Gunshiz Date: Fri, 5 Jun 2026 18:35:55 +0700 Subject: [PATCH] docs: add module structure documentation for the new Form feature to SKILL.md --- SKILL.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SKILL.md b/SKILL.md index b55ae65..d08410e 100644 --- a/SKILL.md +++ b/SKILL.md @@ -29,6 +29,12 @@ This document outlines all the modifications and setups performed during this se This successfully provides a fully responsive, easily configurable, and containerized Next.js Linktree application. +## 5. Form Module Structure +- **Public Form Viewer:** Located at `app/form/page.tsx` and `app/form/client.tsx`. This is where users see and submit the form. It renders questions and handles user input with validation. +- **Admin Form Builder:** Located at `app/form/admin/page.tsx` and `app/form/admin/client.tsx`. This interface allows administrators to create and edit questions, change form settings, and specify input types (Text, Textarea, Radio, Checkboxes). +- **Database Schema:** Defined in `db/schema/form.ts`, which contains definitions for `forms`, `questions`, `submissions`, and `answers`. +- **Server Actions:** Backend logic for managing the form (such as creating/updating questions and handling submissions) are located in `app/actions/form.ts`, `app/actions/questions.ts`, and `app/actions/submissions.ts`. + Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed. **Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.