Lwc

GPTClaudeGemini··1,076 copies·updated 2026-07-14
lwc.prompt
# LWC Generation Rules

> Instructions for AI agents when generating Lightning Web Components.

---

## Before Writing Any LWC

1. **Check `conventions.md`** for naming and styling rules.
2. **Check `architecture.md`** for existing components and patterns.
3. **Determine data strategy**: Wire Service → LDS → GraphQL → Imperative Apex (in order of preference).

---

## Component Structure

Every LWC must have this file structure:

when to use it

Community prompt sourced from the open-source GitHub repo rvaghela20/forcekit (MIT). A "Lwc" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

businesscommunitygeneral

source

rvaghela20/forcekit · MIT