← 返回 Skills 市场
115
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install frontend-pro
功能描述
Provides expertise in CSS architecture, layout frameworks, responsive design, component naming, design tokens, and theme toggle for frontend projects.
使用说明 (SKILL.md)
UX Architect
Technical architecture and UX specialist who gives developers solid foundations, CSS systems, and clear implementation paths.
Core Workflow
- Assess project scope — identify what needs architectural foundation
- Define CSS token system — colors, typography, spacing, shadows
- Establish layout framework — container system, grid patterns, responsive breakpoints
- Set component architecture — naming conventions, hierarchy, boundaries
- Add theme support — light/dark/system with toggle
- Document handoff spec — clear deliverables for developers
CSS Architecture Principles
- Design tokens first — define all CSS custom properties before writing any component styles
- Mobile-first responsive — base styles target mobile, enhance upward with
min-widthbreakpoints - Component naming — use hyphen-case, keep it semantic (
.card-header, not.red-box) - No
!important— architecture should make specificity wars unnecessary - Theme-agnostic by default — component styles reference tokens, not hardcoded colors
Layout System
Container Breakpoints
| Name | Max-width | Target |
|---|---|---|
| sm | 640px | Large phones |
| md | 768px | Tablets |
| lg | 1024px | Laptops |
| xl | 1280px | Desktops |
Grid Patterns
- Hero: Full viewport, vertically centered
- Content Grid: 2-col desktop → 1-col mobile
- Card Grid:
auto-fitwithminmax(300px, 1fr) - Sidebar:
2fr main + 1fr aside
Theme System
Every new project must include light/dark/system theme toggle:
/* Light theme — default */
:root { --bg: #ffffff; --text: #111827; }
/* Dark theme */
[data-theme="dark"] { --bg: #111827; --text: #f9fafb; }
/* System preference */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --bg: #111827; --text: #f9fafb; }
}
Handoff Deliverables
For each project, provide:
- Full CSS token system with all custom properties
- Layout container and grid specifications
- Component hierarchy diagram
- Responsive breakpoint map
- Theme toggle implementation
- Accessibility baseline (keyboard nav, focus states, contrast)
Reference Files
references/css-architecture.md— Full CSS system with tokens, layout, and theme patternsreferences/component-hierarchy.md— Component architecture and naming conventions
安全使用建议
This skill is documentation and code snippets for frontend architecture and is internally consistent with its stated purpose. There are no required credentials or install steps, and the only code modifies browser state (localStorage/DOM) which is normal for a theme toggle. Before using, you may want to: 1) review and adapt the ThemeManager snippet to your project's accessibility and state management patterns; 2) confirm license/source provenance if you need an audited origin (README links to a GitHub repo and clawhub widget but the skill source is listed as unknown); and 3) when letting an autonomous agent use this skill, ensure the agent has no elevated access to repositories or secrets—this skill itself does not request them.
功能分析
Type: OpenClaw Skill
Name: frontend-arch-pro
Version: 1.1.0
The skill bundle provides a comprehensive and well-structured framework for CSS architecture and UX design systems. It includes design tokens, layout patterns, and a standard JavaScript theme manager (ThemeManager) in references/css-architecture.md that uses localStorage for persistence. All instructions in SKILL.md and documentation in README.md are strictly focused on frontend development best practices, with no evidence of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
The name and description (CSS architecture, tokens, layout, theme toggle) match the provided SKILL.md and reference files. No unexpected binaries, environment variables, or external services are requested.
Instruction Scope
Runtime instructions are documentation-style architecture guidance (token system, layout, component hierarchy, theme toggle). The only runtime-like code is a small ThemeManager JS snippet that manipulates localStorage and the DOM — appropriate for a frontend theming feature. The SKILL.md does not direct the agent to read unrelated files, access secrets, or transmit data to external endpoints.
Install Mechanism
There is no install spec and no code files that would be written/executed by an installer. This is instruction-only documentation, which is the lowest-risk install model.
Credentials
The skill requires no environment variables, credentials, or config paths. The ThemeManager uses only browser localStorage and DOM APIs, which is proportional to the stated purpose.
Persistence & Privilege
The skill is not marked always:true and does not request persistent system privileges or modify other skills. It is user-invocable and may be invoked autonomously (platform default), which is expected for an agent skill.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install frontend-pro - 安装完成后,直接呼叫该 Skill 的名称或使用
/frontend-pro触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Full English README, CSS architecture, 4-layer component hierarchy
v1.0.1
Added README, CSS architecture, component hierarchy
v1.0.0
Initial release: CSS architecture, layout systems, theme toggle, component hierarchy
元数据
常见问题
Frontend Architecture Pro 是什么?
Provides expertise in CSS architecture, layout frameworks, responsive design, component naming, design tokens, and theme toggle for frontend projects. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 115 次。
如何安装 Frontend Architecture Pro?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install frontend-pro」即可一键安装,无需额外配置。
Frontend Architecture Pro 是免费的吗?
是的,Frontend Architecture Pro 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Frontend Architecture Pro 支持哪些平台?
Frontend Architecture Pro 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Frontend Architecture Pro?
由 TyroneMok(@tyronecoh)开发并维护,当前版本 v1.1.0。
推荐 Skills