Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

zul-writer祖尔作家

Agent Skill

zul-writer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

894

周安装

38

GitHub Stars

2

下载量

313
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:zul-writer(祖尔作家)
来源仓库:https://github.com/zkoss-demo/agent-skill
仓库路径:skills/zul-writer
安装命令:
npx skills add https://github.com/zkoss-demo/agent-skill --skill zul-writer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zkoss-demo/agent-skill --skill zul-writer

简介

zul-writer 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

ZUL Writer

Workflow Overview

This skill creates well-structured zul pages through a 4-step process:

  1. Clarify Requirements - Gather page purpose, pattern, and layout needs
  2. Generate ZUL - Create the ZUL file based on requirements
  3. Validate ZUL - Verify correctness of the generated ZUL
  4. Generate Controller Class - Create the corresponding Java class (ViewModel or Composer)

Alternative entry: When user provides a UI image (screenshot/mockup), perform the Visual Analysis below first, then proceed to the 4-step process.


Visual Analysis (for Images/Mockups)

When a UI screenshot or mockup image is provided, perform this analysis before starting the 4-step workflow:

  1. Visual Breakdown: Identify all UI elements (layout, inputs, buttons, tables, navigation).
  2. Component & Layout Strategy: Plan the ZK component mapping (refer to references/ui-to-component-mapping.md) and determine the overall layout (e.g., <borderlayout>, nested <vlayout>).
  3. Tab Content Scope: If tabs are present, determine content boundaries. Items switching with tabs must go INSIDE <tabpanel>. See assets/content-tabbox.zul.
  4. Identify Custom Styling: Mark areas that require fallback HTML elements or custom CSS.

Transition: Use these findings to inform Step 1: Clarify User Requirements and eventually Step 2: Generate ZUL File.


Step 1: Clarify User Requirements

Ask targeted questions to understand needs. If starting from an image, use the results of the Visual Analysis to inform these questions.

Questions to Ask

1. ZK Version

Detect from user's project (check pom.xml, ivy.xml, or build.gradle for ZK dependency version). If not found, ask:

  • 9 or before
  • 10.x

2. Page Purpose

  • Data entry form
  • Data list/grid display
  • Dashboard with multiple sections
  • Dialog/popup window
  • Master-detail view
  • Search and results page
  • Other: [specify]

3. MVC or MVVM Pattern

Present both options with equal weight — do NOT mark either as "(Recommended)":

  • MVVM: ViewModel-based with @bind/@command data binding — testable, requires more ZK familiarity
  • MVC: Composer-based with apply and wired components — straightforward, beginner-friendly

4. Layout Requirements

  • Borderlayout (north/south/east/west/center)
  • Vertical layout (vlayout)
  • Horizontal layout (hlayout)
  • Grid-based layout
  • Tabbed layout (tabbox)
  • Combined layouts

5. ZK Charts (only when charts are needed)

If the ZUL page requires a <charts> component, follow references/charts-guidelines.md before generating any chart code.

6. Theme and Data Density

If a page is designed to show a high density of data, suggest to the user to use another free theme called iceblue_c, a compact theme that has smaller padding, margin, and font-size.


Step 2: Generate a ZUL File

Generation Guidelines

When generating the ZUL file, follow these technical guidelines:

  1. Map UI Elements: Consult references/ui-to-component-mapping.md to choose the correct ZK components.

- Prioritize ZK components over native HTML. - Use layout components like <borderlayout>, <vlayout>, and <hlayout> effectively.

  1. Handle CSS Inclusion:

- If fallback native HTML elements (e.g. <n:div>) are used, identify and include the necessary CSS. - Use the <style> element for inline CSS; do not use the <?style?> processing instruction.

  1. ZK Documentation:

- Query zk-doc-mcp-server for detailed component info if available. - Use ZK Javadoc for properties and event details.

  1. Best Practices:

- Don't specify hflex="min" on <button> (it's display: inline-block by default). - Use meaningful IDs and follow the assets/template.zul structure.

Layout & Component Patterns

XML & Pattern Structures

Sizing & Layouts

Common MVVM Patterns


Step 3: Validate Generated ZUL

Run validation using the script from this skill's base directory (provided as "Base directory for this skill:" in the skill context header):

python3 <skill-base-dir>/scripts/validate-zul.py <path-to-zul-file>

Example: if the skill base directory is /Users/hawk/.claude/skills/zul-writer, run:

python3 /Users/hawk/.claude/skills/zul-writer/scripts/validate-zul.py path/to/file.zul
  • Layer 1: XML well-formedness (no dependencies)
  • Layer 2: XSD schema validation (requires lxml)
  • Layer 3: Attribute placement check (requires lxml) - catches misplaced attributes (e.g. iconSclass on textbox)
  • Layer 4: ZK 10 compatibility checks (only if target ZK version is 10)

Prerequisites

Layer 2 and 3 require lxml. The script handles this automatically — it will install lxml via uv pip install (preferred) or pip install if missing. No manual setup needed before running the script.

Post-Validation Checklist

Pattern Consistency

  • MVC: Uses apply attribute, no MVVM binding expressions
  • MVVM: Uses viewModel attribute, proper binding syntax
  • No mixing of patterns on same component

Best Practices

  • IDs are unique within each ID space owner (<window>, <idspace>)
  • Prefer sclass over inline styles
  • Prefer hflex/vflex over fixed dimensions
  • Include meaningful labels and tooltips for accessibility

Step 4: Generate Controller Class

Generate the corresponding Java controller class (ViewModel or Composer) for the ZUL page.

Controller Generation Guidelines

  1. Pattern Consistency:

- Use ViewModel for MVVM patterns. - Use Composer for MVC patterns.

  1. Implementation Details: Follow the technical requirements in references/controller-guidelines.md.

MVC Pattern - Composer Class

assets/MyComposer.java

MVVM Pattern - ViewModel Class

assets/MyViewModel.java

Complete Examples & Patterns

For complex UI patterns like Kanban Boards or Dashboards, and for complete template examples, refer to references/use-case-guidelines.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.98%
按下载量换算119

Claude

28.98%
按下载量换算91

Cursor

18.59%
按下载量换算58

Gemini CLI

10.03%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills