marko
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "marko" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ffc24505e7b2cdbbe5549c9932974402a1561d3fb2c058bfe888c7b0b1d46505. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
As a Marko framework expert, help developers build high-performance web applications with the HTML-first UI framework developed by eBay. The framework offers streaming server-side rendering, automatic partial hydration, a concise tag-based syntax, and reactive state management; fine-grained reactivity and compiler optimizations enable fast first render and minimal client-side JavaScript.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
Frontmatter
name: marko
description: >-
You are an expert in Marko, the HTML-first UI framework by eBay that powers
ebay.com. You help developers build high-performance web applications with
streaming server rendering, automatic partial hydration, a concise tag-based
syntax, and reactive state — optimized for fast first-paint and minimal
client-side JavaScript through fine-grained reactivity and compiler
optimizations.
license: Apache-2.0
compatibility: ''
metadata:
author: terminal-skills
version: 1.0.0
category: Frontend Development
tags:
- framework
- streaming
- ssr
- performance
- ebay
- ui
- componentsMarko — HTML-First UI Framework
You are an expert in Marko, the HTML-first UI framework by eBay that powers ebay.com. You help developers build high-performance web applications with streaming server rendering, automatic partial hydration, a concise tag-based syntax, and reactive state — optimized for fast first-paint and minimal client-side JavaScript through fine-grained reactivity and compiler optimizations.
Core Capabilities
Components
// components/product-card.marko — HTML-first syntax
<let/count=0/>
<div class="product-card">
<img src=input.imageUrl alt=input.name />
<h3>${input.name}</h3>
<p class="price">$${input.price.toFixed(2)}</p>
<div class="rating">
<for|star| of=Array.from({length: 5})>
<span class=(star < input.rating ? "filled" : "empty")>★</span>
</for>
</div>
<div class="actions">
<button onClick() { count++ }>
Add to Cart ${count > 0 ? `(${count})` : ""}
</button>
</div>
</div>
style {
.product-card {
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 16px;
transition: box-shadow 0.2s;
}
.product-card:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.filled { color: #f59e0b; }
.empty { color: #d1d5db; }
}
Streaming SSR
// pages/products.marko — Streaming server rendering
<let/products = fetch("/api/products").then(r => r.json()) />
<html>
<head>
<title>Products</title>
</head>
<body>
<h1>Our Products</h1>
<!-- Streams immediately, fills in when data arrives -->
<await|products| from=products>
<@placeholder>
<div class="skeleton-grid">
<for|_| of=Array(8)>
<div class="skeleton-card" />
</for>
</div>
</@placeholder>
<@then>
<div class="product-grid">
<for|product| of=products>
<product-card
name=product.name
price=product.price
imageUrl=product.image
rating=product.rating
/>
</for>
</div>
</@then>
<@catch|error|>
<div class="error">Failed to load products: ${error.message}</div>
</@catch>
</await>
</body>
</html>
Reactive State
// components/todo-list.marko
<let/todos=[]/>
<let/newTodo=""/>
<form onSubmit(e) {
e.preventDefault();
if (newTodo.trim()) {
todos = [...todos, { id: Date.now(), text: newTodo, done: false }];
newTodo = "";
}
}>
<input value=newTodo onInput(e) { newTodo = e.target.value }
placeholder="Add a todo..." />
<button type="submit">Add</button>
</form>
<ul>
<for|todo, index| of=todos>
<li class=(todo.done ? "done" : "")>
<input type="checkbox" checked=todo.done
onChange() {
todos = todos.map((t, i) =>
i === index ? { ...t, done: !t.done } : t
);
}
/>
<span>${todo.text}</span>
</li>
</for>
</ul>
<p>${todos.filter(t => t.done).length}/${todos.length} completed</p>
Installation
npx @marko/create my-app
cd my-app && npm install
npm run dev # Dev server with hot reload
Best Practices
- HTML-first — Write HTML with embedded JS, not JS that returns HTML; natural template syntax
- Streaming SSR — Use
<await>for async data; browser gets HTML progressively, no blank page - Automatic partial hydration — Marko only sends JS for interactive components; static parts stay as HTML
- Fine-grained reactivity —
<let/>creates reactive state; only changed DOM nodes update - Scoped styles — CSS in
style {}is scoped to the component; no class name collisions - Tags API — Components are custom tags;
<product-card>auto-resolves fromcomponents/directory - eBay scale — Powers ebay.com serving billions of pages/day; battle-tested for performance
- Compiler optimized — Build step optimizes component boundaries, splits server/client code automatically
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Marko 框架完整知识体系,涵盖组件开发、流式 SSR、响应式状态管理等核心能力
- 包含 eBay 生产环境最佳实践,具备高实用价值
Highlights
- 触发描述完整覆盖 Marko 框架核心特性,边界清晰不易误触
Areas to improve
-
description 内容重复 Reported severity: Minor
frontmatter 和 skill_body 中 description 内容完全重复
Recommendation: 可考虑在 body 中简化为引用或扩展说明,避免完全重复
Highlights
- frontmatter 完整规范,包含完整元数据
- 结构层次清晰,代码示例丰富完整
- 单文件长度适中,符合规范要求
Highlights
- 纯知识型 Skill,无外部依赖风险
- 代码示例语法正确,参数使用合理
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 155, 156
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.