← 返回 Skills 市场
tyronecoh

Frontend Architecture Pro

作者 TyroneMok · GitHub ↗ · v1.0.4 · MIT-0
cross-platform ✓ 安全检测通过
135
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install frontend-architecture-pro
功能描述
Provide technical UX architecture and CSS systems to establish design tokens, layout frameworks, component structure, responsive breakpoints, and theme toggles.
使用说明 (SKILL.md)

UX Architect

Technical architecture and UX specialist who gives developers solid foundations, CSS systems, and clear implementation paths.

Core Workflow

  1. Assess project scope — identify what needs architectural foundation
  2. Define CSS token system — colors, typography, spacing, shadows
  3. Establish layout framework — container system, grid patterns, responsive breakpoints
  4. Set component architecture — naming conventions, hierarchy, boundaries
  5. Add theme support — light/dark/system with toggle
  6. 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-width breakpoints
  • 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-fit with minmax(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)

Trigger Examples

  • "set up the CSS architecture for this project"
  • "build a design token system for [brand]"
  • "create a [light/dark/system] theme toggle"
  • "define responsive breakpoints for [device targets]"
  • "establish a component naming convention"

Reference Files

  • references/css-architecture.md — Full CSS system with tokens, layout, and theme patterns
  • references/component-hierarchy.md — Component architecture and naming conventions
安全使用建议
This is an instruction-only frontend architecture skill: it provides guidelines, CSS token examples, and a small in-browser ThemeManager snippet. It does not request credentials, install software, or call external endpoints. Before using in production, review and adapt the token values, naming conventions, and ThemeManager code to your project's accessibility and security policies (the JS uses localStorage and manipulates the DOM, which is normal for a theme toggle). Also verify licensing and attribution if you will copy large parts into your codebase.
功能分析
Type: OpenClaw Skill Name: frontend-architecture-pro Version: 1.0.4 The 'frontend-architecture-pro' skill bundle is a legitimate tool for establishing CSS design systems and component architectures. All files, including SKILL.md and the reference documentation, focus exclusively on frontend development best practices such as design tokens, responsive layouts, and theme management. No malicious code, data exfiltration, or harmful prompt-injection attempts were found.
能力评估
Purpose & Capability
The name/description (CSS systems, tokens, layout, theme toggles) match the SKILL.md and reference files. Nothing in the package requests unrelated tools, cloud access, or credentials.
Instruction Scope
SKILL.md and reference files contain CSS, component guidance, and a small ThemeManager JS snippet; instructions are focused on architecture, breakpoints, naming, accessibility, and handoff deliverables. They do not instruct the agent to read system files, environment variables, or contact external endpoints.
Install Mechanism
There is no install spec and no code files that would be written or executed by an installer. This instruction-only skill is low-risk from an installation perspective.
Credentials
No environment variables, credentials, or config paths are required. The ThemeManager uses localStorage and DOM APIs in-browser (expected for a theme toggle) and does not access secrets or external services.
Persistence & Privilege
Skill is not always-enabled and uses normal autonomous invocation settings. It does not request persistent system privileges or modify other skills or system configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install frontend-architecture-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /frontend-architecture-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
Add accessibility, responsive, design-system tags
v1.0.3
Remove agency-agents credit, fix link, add trigger examples, add css tag
v1.0.2
Add web dev tag
v1.0.1
Add missing tags
元数据
Slug frontend-architecture-pro
版本 1.0.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Frontend Architecture Pro 是什么?

Provide technical UX architecture and CSS systems to establish design tokens, layout frameworks, component structure, responsive breakpoints, and theme toggles. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 135 次。

如何安装 Frontend Architecture Pro?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install frontend-architecture-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.0.4。

💬 留言讨论