lit-rendering
Skill1 starsChanged 56 days agoApache-2.0View on GitHub
Lit rendering and picker callback-shape guidance for editing and reviewing Lit components.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentic-workflowsSkill
- asking-questionsSkill
- branch-context-consumerSkill
- broSkill
- browser-accessSkill
- browser-controlSkill
- changeset-scopeSkill
- check-skill-updatesSkill
- chillSkill
- cleanup-unnecessary-variablesSkill
- code-reviewSkill
- decision-modelsSkill
- diagnoseSkill
- effect-principlesSkill
- evidence-firstSkill
- gh-stackSkill
- git-contextSkill
- github-development-rulesetsSkill
- github-repository-setupSkill
- grillingSkill
- handoffSkill
- herdr-workflowsSkill
- home-assistant-frontendSkill
- home-assistant-lazy-contextSkill
- home-assistant-list-componentsSkill
- home-assistant-lit-renderingSkill
- human-step-guideSkill
- import-external-skillSkill
- maintain-docsSkill
- opencode-effectSkill
- pitchfork-dev-serversSkill
- pkexec-rootSkill
- planSkill
- release-oxlint-rulesSkill
- remove-single-use-functionsSkill
- researchSkill
- retroSkill
- safe-process-signalsSkill
- session-coordinationSkill
- shared-workflowsSkill
- show-meSkill
- skill-prefixesSkill
- staged-implementationSkill
- task-focusSkill
- testingSkill
- to-questionnaireSkill
- types-enforce-tsSkill
- wranglerSkill
- writing-dot-skillsSkill
- writing-styleSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use this skill when reviewing or editing Lit rendering logic:
- Very specific: line 12
Prefer render-local derived values for UI-only structures (sections, options, grouped labels, display rows).
- Distinctive: line 14
Do not create render-local booleans, labels, classes, or wrapper variables unless they are reused, clarify a complex branch, or prevent …
- Very specific: line 15
Use memoizeOne only for pure transforms with explicit, narrow inputs.
- Very specific: line 16
Do not memoize using broad inputs (this, large mutable objects) when narrower inputs are available.
- Distinctive: line 17
Do not widen signatures with pass-through values when class/context access already exists.
- Distinctive: line 18
Do not add passthrough fields used only to thread values through helper calls.
- Very specific: line 19
Do not add @state fields or willUpdate only to cache render-derived picker data.
- Distinctive: line 20
Use lifecycle hooks for real update-phase behavior, not as a substitute for render-local composition.
- Distinctive: line 21
When replacing a component's built-in header with a custom conditional header, preserve the original header/title behavior on every branch …
- Distinctive: line 22
Do not add unnecessary comments or abstractions.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lit Rendering
Use this skill when reviewing or editing Lit rendering logic:
- Preserve runtime behavior and public API shape unless the user asked otherwise.
- Prefer render-local derived values for UI-only structures (
sections,options, grouped labels, display rows). - Compute derived render data once per render and reuse it across template call sites.
- Do not create render-local booleans, labels, classes, or wrapper variables unless they are reused, clarify a complex branch, or prevent repeated expensive/side-effectful work. For example, avoid
const params = this._params,const data = this._data, orconst selected = this._selectedwhen directthis._xyzaccess is just as clear and typechecks. - Use
memoizeOneonly for pure transforms with explicit, narrow inputs. - Do not memoize using broad inputs (
this, large mutable objects) when narrower inputs are available. - Do not widen signatures with pass-through values when class/context access already exists.
- Do not add passthrough fields used only to thread values through helper calls.
- Do not add
@statefields orwillUpdateonly to cache render-derived picker data. - Use lifecycle hooks for real update-phase behavior, not as a substitute for render-local composition.
- When replacing a component's built-in header with a custom conditional header, preserve the original header/title behavior on every branch that does not render the custom header.
- Do not add unnecessary comments or abstractions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

