marko-best-practices

Apply Marko syntax and best practices when editing `.marko` files and building Marko components.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "marko-best-practices" with this command: npx skills add marko-js/marko/marko-js-marko-marko-best-practices

Marko Best Practices

Marko is a modern UI framework for building web applications. It features a declarative component-based syntax, fine-grained reactivity, and a highly optimized compiler. Marko is designed for both server-rendered and interactive client-side experiences with a focus on streaming, partial hydration, and shipping the smallest possible amount of JavaScript to each page.

Marko Documentation

The Marko documentation is the source of truth for all Marko-related information. Always refer to the official docs for information about syntax and behavior. Marko changes over time, so prefer fetching current docs over relying on training data.

The docs index lists every available page with its URL and a short description.

All Marko docs pages can be fetched as markdown by appending .md to the URL (https://markojs.com/docs/introduction/getting-started.md)

Marko 6 Syntax

Documentation and this skill target Marko 6. Do not use Marko 5 syntax.

Checklist for New or Edited .marko Files

  • Uses Marko 6 syntax only (no scriptlets, old event syntax, or Marko 5 blocks).
  • <script> is never used when state (<let> or <const>) could accomplish the same behavior.
  • Event handlers use function form: onClick() { ... } or a reference, not string names.
  • Component stays small and readable; consider splitting large templates.
  • No unnecessary client-side JS; prefer built-in browser APIs and HTML/CSS features over scripts.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Xiaohongshu Post (Browser Auto)

Create and publish Xiaohongshu (小红书/RED) notes. Use when: user wants to publish a note to Xiaohongshu, schedule or batch post content, generate Xiaohongshu-s...

Registry SourceRecently Updated
General

Jsonlint

JSON validator, formatter, and toolkit. Validate JSON files for syntax errors, pretty-print with customizable indentation, minify for production, extract val...

Registry SourceRecently Updated
General

Unitconv

Unit converter for length, weight, temperature, volume, speed, and data sizes. Convert between metric and imperial units, Celsius and Fahrenheit, bytes and g...

Registry SourceRecently Updated
General

Arbitrage Finder

Scan price differences across exchanges, score arbitrage opportunities, and track historical success rates. Use when you need arbitrage finder capabilities....

Registry SourceRecently Updated
marko-best-practices | V50.AI