agentleFS
timmo001timmo001/skills/lit-rendering/SKILL.md

lit-rendering

Skill1 starsChanged 56 days agoApache-2.0View on GitHub

Lit rendering and picker callback-shape guidance for editing and reviewing Lit components.

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
  1. Distinctive:

    Use this skill when reviewing or editing Lit rendering logic:

    line 9
  2. Very specific:

    Prefer render-local derived values for UI-only structures (sections, options, grouped labels, display rows).

    line 12
  3. Distinctive:

    Do not create render-local booleans, labels, classes, or wrapper variables unless they are reused, clarify a complex branch, or prevent …

    line 14
  4. Very specific:

    Use memoizeOne only for pure transforms with explicit, narrow inputs.

    line 15
  5. Very specific:

    Do not memoize using broad inputs (this, large mutable objects) when narrower inputs are available.

    line 16
  6. Distinctive:

    Do not widen signatures with pass-through values when class/context access already exists.

    line 17
  7. Distinctive:

    Do not add passthrough fields used only to thread values through helper calls.

    line 18
  8. Very specific:

    Do not add @state fields or willUpdate only to cache render-derived picker data.

    line 19
  9. Distinctive:

    Use lifecycle hooks for real update-phase behavior, not as a substitute for render-local composition.

    line 20
  10. Distinctive:

    When replacing a component's built-in header with a custom conditional header, preserve the original header/title behavior on every branch …

    line 21
  11. Distinctive:

    Do not add unnecessary comments or abstractions.

    line 22

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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, or const selected = this._selected when direct this._xyz access is just as clear and typechecks.
  • Use memoizeOne only 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 @state fields or willUpdate only 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.