Commit Graph

3 Commits

Author SHA1 Message Date
sowmya.sriram
9a0494073d
feat: split and improve widget renderer guidance for CLT skill
Split widget-rendition.md: extract meta directives (forEach/forItem/if)
into a focused references/widget-meta-directives.md so the iteration and
conditional rules can grow independently.

widget-rendition.md now owns workflow, layout, and styling. Layout
primitives are anchored on the base-lightning-types tile/* schemas.
Styling principles are anchored on the AXL playground tutorial 02
(button variants), Salesforce HIG conventions, and the schemas'
own enums.

Add three widget renderer examples adapted from playground tutorials
04/05/07: single-object profile (root binding), list-of-products
(root forEach + nested forEach over a per-item array), and
conditional-rendering (if on the meta object, including if + forEach
combined). Tutorials are wired into workflow step 5 and the
Reference File Index.

Slim SKILL.md: collapse five overlapping widget-routing instructions
into a single Step 4 fork; standardize trigger keywords on widget /
mosaic / fragment; drop the structurally-wrong "STOP before step 1"
header (widget needs schema.json from steps 1-2 first); add a
Reference File Index pointing at widget-rendition.md.

Tighten the conditional-rendering rule to require a strict
lightning__booleanType schema property. Strings, numbers, and nullable
fields are not supported as if expressions.

gitignore: ignore .agents/, .claude/, skills-lock.json (skills CLI
install artifacts) and .claude/ (per-user Claude Code state).
2026-05-21 13:40:00 +05:30
sowmya.sriram
2d26b24d0e
feat: improve widget renderer guidance in generating-custom-lightning-type skill
- Add hard gate at top of Generation Workflow to redirect widget requests to widget-rendition.md before any planning
- Reorder step 4 so widget pattern appears before custom LWC pattern, with explicit decision gate
- Clarify custom LWC pattern is only for non-widget use cases
- Add checklist item asserting widget renderer must use tile/mosaic UEM tree not a custom LWC
- Add forEach/forItem and conditional rendering sections with examples to widget-rendition.md
- Add step 5 decision logic: single-object schema skips root forEach; collection schema wraps repeating block
- Fix conflicting forEach default assumption; defer root-level iteration decision to step 5
- Add container-vs-child forEach example to prevent misplacing meta directive on container block
2026-05-08 19:59:29 +05:30
sowmya-sriram
5d33d63d48
feat: @W-22259678@ changes with clt ref to mosaic rendition guidance (#190)
* changes with clt ref to mosaic rendition

* updated widget rendition guidance

* removed new line characters from description.

* added back version metadata
2026-05-05 16:01:31 +05:30