lwc-3-decisions

Log LWC architectural decisions on Communication, State, and Responsibility before coding.

4|Updated May 6, 2026
One-click install
npx skills add https://github.com/tucario/Tucario-LWC-Toolkit --skill lwc-3-decisions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lwc-3-decisions
Source: https://github.com/tucario/Tucario-LWC-Toolkit/tree/main/.claude/skills/lwc-3-decisions
Command: npx skills add https://github.com/tucario/Tucario-LWC-Toolkit --skill lwc-3-decisions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Soft-prompt the LWC author with three load-bearing architectural questions before they create or substantially edit a Lightning Web Component — Communication, State, Responsibility. Always elaborates why each question matters with concrete what-goes-wrong examples, then asks. Skipping is allowed but logged in the response so the team has an audit trail of the call.

Core Features & Use Cases

  • Soft-prompt guided walk-through of the three decisions before coding.
  • Elaborates why each decision matters and provides concrete examples of common pitfalls.
  • Logs skips and decisions to produce an audit trail for future reviews.
  • Triggers when creating or editing LWC code and when contract changes (props, events, data flow) occur.
  • Supports re-use with a dedicated "lwc-architect" escalation path when needed.

Quick Start

Before you touch any LWC code, invoke the 3-decisions soft-prompt to surface and log the architectural choices.

Frequently Asked Questions about lwc-3-decisions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decide LWC component boundaries and state management before coding?

LWC architectural decisions involve consciously evaluating communication patterns, state management, and component responsibility before coding. Addressing these three areas early prevents hidden conflicts and establishes a traceable audit trail for future maintenance.

What goes wrong if I skip architecture planning for Lightning Web Components?

Skipping architecture planning for Lightning Web Components leads to hidden conflicts in data flow and communication patterns. Without consciously deciding responsibility and state management, component trees become difficult to maintain and refactor safely.

How do I document LWC architectural decisions for future audit trails?

Document LWC architectural decisions by logging choices around communication, state, and responsibility. Using a guided soft-prompt to elaborate on these decisions creates an audit trail that tracks even skipped choices for future maintenance reviews.

When do I need to review LWC communication and data flow patterns?

You need to review LWC communication and data flow patterns when creating new components, refactoring existing ones, or changing contract properties and events. Evaluating these shifts prevents architectural regressions across the component tree.

Can I skip certain architectural decisions when refactoring Lightning Web Components?

You can skip architectural decisions when refactoring Lightning Web Components, but the skip is explicitly logged in the response. This soft-skip approach ensures your team retains an audit trail of the call even when a decision is bypassed.