agentleFS
scroixscroix/nodel-skills/skills/nodel-frontend/SKILL.md

nodel-frontend

Skill2 starsChanged 5 months agoMITView on GitHub

Build or modify Nodel node dashboards with content/index.xml, CSS, JavaScript, and Nodel XSL components. Use for dashboard layouts, controls, action and event bindings, responsive styling, and browser-side behavior. Do not use for generic web apps, script.py recipe logic, live-host REST operations, or Nodel platform source changes.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 6 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create or update content/index.xml, keeping custom CSS and JavaScript optional.

    line 13
  2. Distinctive:

    Start with the minimal dashboard below and bind components to the node's real action and event names.

    line 14
  3. Distinctive:

    Read the component reference before choosing tags or relying on an attribute.

    line 15
  4. Distinctive:

    Read the pattern guide when composing a complete dashboard, adding custom styling, or handling dynamic behavior.

    line 16
  5. Very specific:

    Remove the css or js attribute when the corresponding file does not exist.

    line 51
  6. Very specific:

    Keep the v1/index.xsl processing instruction.

    line 55
  7. Distinctive:

    Use the stock component tags and attributes instead of assuming arbitrary HTML passes through.

    line 56
  8. Very specific:

    Use <image source='...'>, not <img>.

    line 58
  9. Very specific:

    Place <input> directly under <header>.

    line 59
  10. Very specific:

    Put <row> elements directly under <footer>.

    line 60
  11. Very specific:

    Do not listen for a nodel-event DOM event.

    line 62
  12. Very specific:

    Use event to display node state and action to send a value.

    line 66
  13. Very specific:

    Use join when the action and event share a name.

    line 67
  14. Very specific:

    Use data for dynamic option or button collections emitted by the node.

    line 68
  15. Very specific:

    Use showevent and showvalue for conditional visibility.

    line 69
  16. Very specific:

    Read references/components.md when selecting a component, checking supported children, or confirming attributes, sizing, bindings, and …

    line 73
  17. Very specific:

    Read references/patterns.md when assembling full dashboards, admin locks, dynamic controls, responsive layouts, confirmation flows, or …

    line 74
  18. Distinctive:

    Check the page at phone and desktop widths when the layout is responsive.

    line 80
  19. Distinctive:

    Treat XML/XSL errors and browser-console errors as implementation failures.

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Nodel Frontend Development

Build and revise the XML dashboards served from a Nodel node's content directory.

Workflow

  1. Inspect the node's actions, events, and existing content files before choosing controls.
  2. Create or update content/index.xml, keeping custom CSS and JavaScript optional.
  3. Start with the minimal dashboard below and bind components to the node's real action and event names.
  4. Read the component reference before choosing tags or relying on an attribute.
  5. Read the pattern guide when composing a complete dashboard, adding custom styling, or handling dynamic behavior.
  6. Render the page against a running Nodel node and check the browser console as well as the node console.

File Layout

nodes/My Node/
├── script.py
├── nodeConfig.json
└── content
    ├── index.xml
    ├── css
    │   └── custom.css
    └── js
        └── custom.js

Minimal Dashboard

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="v1/index.xsl"?>
<pages title='Dashboard' css='css/custom.css' js='js/custom.js'>
  <page title='Main'>
    <row>
      <column xs='12' sm='6'>
        <title>Power</title>
        <button action='Power' arg='On'>Turn On</button>
        <status event='Power'>Current power</status>
      </column>
    </row>
  </page>
</pages>

Remove the css or js attribute when the corresponding file does not exist.

Critical Renderer Constraints

  • Keep the v1/index.xsl processing instruction. Nodel transforms the XML through that stylesheet.
  • Use the stock component tags and attributes instead of assuming arbitrary HTML passes through.
  • Lay out pages with the Bootstrap 3 twelve-column grid (xs, sm, md, and lg).
  • Use <image source='...'>, not <img>. Always provide source, including for event-backed images.
  • Place <input> directly under <header>; the built-in rendered input type is checkbox.
  • Put <row> elements directly under <footer>.
  • Setting core on <pages> skips custom CSS and JavaScript loading.
  • Do not listen for a nodel-event DOM event. The renderer updates bound elements directly; observe the property it changes when custom JavaScript must react.

Binding Conventions

  • Use event to display node state and action to send a value.
  • Use join when the action and event share a name.
  • Use data for dynamic option or button collections emitted by the node.
  • Use showevent and showvalue for conditional visibility. Some layout components also support event and value.

References

  • Read references/components.md when selecting a component, checking supported children, or confirming attributes, sizing, bindings, and renderer caveats.
  • Read references/patterns.md when assembling full dashboards, admin locks, dynamic controls, responsive layouts, confirmation flows, or custom CSS and JavaScript.

Completion Check

  • Confirm every bound action and event exists on the target node.
  • Confirm optional asset paths match the content directory layout.
  • Check the page at phone and desktop widths when the layout is responsive.
  • Treat XML/XSL errors and browser-console errors as implementation failures.

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.