marko
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "marko":https://skillpi.com/zh/skills/deepskill-ffc24505e7b2cdbbe5549c9932974402a1561d3fb2c058bfe888c7b0b1d46505。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
作为 Marko 框架专家,帮助开发者使用 eBay 开发的以 HTML 为先的 UI 框架构建高性能 Web 应用。框架提供流式服务端渲染、自动局部水合、简洁的标签式语法和响应式状态管理,通过细粒度响应性和编译器优化实现快速首次渲染和最小的客户端 JavaScript。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
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
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Marko 框架完整知识体系,涵盖组件开发、流式 SSR、响应式状态管理等核心能力
- 包含 eBay 生产环境最佳实践,具备高实用价值
亮点
- 触发描述完整覆盖 Marko 框架核心特性,边界清晰不易误触
待提升项
-
description 内容重复 原报告严重程度:轻微
frontmatter 和 skill_body 中 description 内容完全重复
改进建议:可考虑在 body 中简化为引用或扩展说明,避免完全重复
亮点
- frontmatter 完整规范,包含完整元数据
- 结构层次清晰,代码示例丰富完整
- 单文件长度适中,符合规范要求
亮点
- 纯知识型 Skill,无外部依赖风险
- 代码示例语法正确,参数使用合理
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 155, 156 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。