Agent Skills › MODSetter/SurfSense › frontend-workflow

frontend-workflow

GitHub

前端工作流入口,处理React/Next.js组件构建、重构、样式及动画。涵盖shadcn/ui集成、色彩主题、视觉打磨和交互审查,智能加载性能、配色等子技能指导。

.agents/skills/frontend-workflow/SKILL.md MODSetter/SurfSense

Trigger Scenarios

React或Next.js组件开发与重构 UI样式调整与视觉打磨 shadcn/ui组件集成与配置 前端代码审查

Install

npx skills add MODSetter/SurfSense --skill frontend-workflow -g -y
More Options

Non-standard path

npx skills add https://github.com/MODSetter/SurfSense/tree/main/.agents/skills/frontend-workflow -g -y

Use without installing

npx skills use MODSetter/SurfSense@frontend-workflow

指定 Agent (Claude Code)

npx skills add MODSetter/SurfSense --skill frontend-workflow -a claude-code -g -y

安装 repo 全部 skill

npx skills add MODSetter/SurfSense --all -g -y

预览 repo 内 skill

npx skills add MODSetter/SurfSense --list

SKILL.md

Frontmatter
{
    "name": "frontend-workflow",
    "description": "Frontend and UI work in surfsense_web and surfsense_local\/frontend — building, refactoring, styling, animating, or reviewing React and Next.js components, shadcn\/ui, color tokens and themes, visual polish, and motion. Load this first for any UI task, including adding or changing a shadcn\/ui component (dialog, button, dropdown, form, sidebar, table) in a tree with components.json — it owns the color palette, polish rules, and the precedence order, then routes to the separate shadcn skill for component wiring and the CLI. Use for any frontend component, page, style, animation, hover state, icon, layout, or UI review task."
}

Frontend Workflow

Single entry point for frontend work in surfsense_web and surfsense_local/frontend. Both are React + Tailwind + shadcn/ui with their own components.json. Detect which tree the task touches, and treat that tree's package.json, components.json, and styling setup as authoritative. All guidance lives in this skill's own folders; load only what the task touches.

Reference Map

Read this When
react-performance/SKILL.md React or Next.js code — components, pages, data fetching, bundles, re-renders
../shadcn/SKILL.md shadcn/ui components, or any project with components.json. Separate skill — it inspects the project live and grants its own CLI.
base-ui.md Components in surfsense_local/frontend — composition, menus, dialogs, tooltips, tabs, and testing them on Base UI
color/SKILL.md Colors, themes, charts, design tokens, borders, shadows
polish/SKILL.md Typography, surfaces, icons, micro-interactions, enter/exit transitions
motion/apple-design.md Gesture-driven or physical motion — drag, swipe, sheets, springs, momentum, interruptible transitions, translucent materials

Each entry is an index. Open its supporting files only when the touched code needs them:

  • react-performance/rules/ holds one file per rule. Load the applicable ones. react-performance/rules-compiled.md is the same rules compiled into one document — do not load it by default.
  • polish/ splits into typography.md, surfaces.md, animations.md, icons.md, performance.md.
  • ../shadcn/rules/ splits by concern; ../shadcn/cli.md, registry.md, customization.md cover tooling and theming.
  • color/PALETTE.css is the canonical palette contract.

Do not load motion references for work with no motion concern. Apple-style motion is for gesture, physics, and material work; a hover state or a color change does not need it.

Workflow

  1. Understand the task

    • Inspect the relevant implementation and trace the affected interaction.
    • Clarify only decisions that materially change behavior or design.
    • Reuse existing components, helpers, tokens, and patterns.
  2. Select guidance

    • Use the reference map above.
    • Read detailed files only when the touched code needs them.
    • Treat current project configuration and installed APIs as authoritative.
  3. Implement

    • Make the smallest complete change that satisfies the request.
    • Preserve established visual language and component APIs.
    • Cover loading, empty, error, disabled, responsive, keyboard, focus, and reduced-motion states when they are relevant.
  4. Validate

    • Run the smallest relevant lint, type, and test checks.
    • For visible interaction changes, verify the rendered behavior when a runnable frontend is available.
    • If visual details or motion changed, apply the polish review only after functional implementation is complete and resolve blocking findings within scope.
  5. Report

    • Summarize the user-visible result, checks run, and unresolved risks.
    • Use the polish review format only when the user requested a review. For implementation tasks, include relevant visual or motion findings in the normal completion summary.

Precedence and Conflicts

Resolve conflicting guidance in this order:

  1. The user's explicit requirements.
  2. Correctness, security, and accessibility.
  3. Existing project conventions and configuration.
  4. The canonical color system and shadcn/ui composition rules.
  5. React and Next.js performance guidance.
  6. Motion behavior for gesture-driven and interruptible interactions.
  7. Interface and motion polish.

Specific overlaps:

  • Icons — ../shadcn/rules/icons.md governs icon usage inside shadcn components (data-icon, sizing, passing icons as objects). polish/icons.md governs stroke weight, optical detail, states via currentColor, and RTL flipping. Apply the shadcn rule to component wiring, the polish rule to visual detail.
  • Color — color/SKILL.md and color/PALETTE.css are canonical. Where ../shadcn/rules/styling.md or ../shadcn/customization.md describe theming, follow them for mechanism and the palette for values.
  • Motion — motion/apple-design.md governs how motion behaves; polish/animations.md governs concrete values and static detail. Where they conflict, prefer springs and current-value interpolation for anything the user can touch or interrupt, and CSS transitions for everything else.

Never sacrifice correctness or accessibility for visual polish or a micro-optimization. If a rule conflicts with the installed library version or project configuration, verify the current API and follow the project's actual version.

Notes

The SKILL.md and .md files inside react-performance/, color/, polish/, and motion/ retain their original frontmatter from when they were separate skills. That frontmatter is inert here — these are reference files, not independently discovered skills. Read their bodies and ignore their name, description, and invocation fields.

Version History

  • a51f9a3 Current 2026-09-28 18:43

    新增 Base UI 相关文档与规则,补充 surfsense_local/frontend 的组件组合、菜单、对话框等测试规则,并更新概览说明。

  • 014e47a 2026-09-23 08:23

Same Skill Collection

.agents/skills/codebase-design/SKILL.md
.agents/skills/migrate-radix-to-base/SKILL.md
.agents/skills/shadcn/SKILL.md
.agents/skills/tdd/SKILL.md
.agents/skills/translate/SKILL.md
.cursor/skills/alert-manager/SKILL.md
.cursor/skills/animation-vocabulary/SKILL.md
.cursor/skills/backlink-analyzer/SKILL.md
.cursor/skills/competitor-analysis/SKILL.md
.cursor/skills/content-gap-analysis/SKILL.md
.cursor/skills/content-quality-auditor/SKILL.md
.cursor/skills/content-refresher/SKILL.md
.cursor/skills/domain-authority-auditor/SKILL.md
.cursor/skills/emil-design-eng/SKILL.md
.cursor/skills/entity-optimizer/SKILL.md
.cursor/skills/frontend-design/SKILL.md
.cursor/skills/geo-content-optimizer/SKILL.md
.cursor/skills/improve-codebase-architecture/SKILL.md
.cursor/skills/internal-linking-optimizer/SKILL.md
.cursor/skills/keyword-research/SKILL.md
.cursor/skills/memory-management/SKILL.md
.cursor/skills/meta-tags-optimizer/SKILL.md
.cursor/skills/on-page-seo-auditor/SKILL.md
.cursor/skills/performance-reporter/SKILL.md
.cursor/skills/python-patterns/SKILL.md
.cursor/skills/rank-tracker/SKILL.md
.cursor/skills/review-animations/SKILL.md
.cursor/skills/schema-markup-generator/SKILL.md
.cursor/skills/seo-content-writer/SKILL.md
.cursor/skills/serp-analysis/SKILL.md
.cursor/skills/shadcn/SKILL.md
.cursor/skills/system-architecture/SKILL.md
.cursor/skills/tdd/SKILL.md
.cursor/skills/technical-seo-checker/SKILL.md
.cursor/skills/ugc-brief/SKILL.md
.cursor/skills/vercel-react-best-practices/SKILL.md
.cursor/skills/web-design-guidelines/SKILL.md
docker/sandbox/skills/docx/SKILL.md
docker/sandbox/skills/flashcards/SKILL.md
docker/sandbox/skills/html/SKILL.md
docker/sandbox/skills/infographic/SKILL.md
docker/sandbox/skills/mindmap/SKILL.md
docker/sandbox/skills/pdf/SKILL.md
docker/sandbox/skills/pptx/SKILL.md
docker/sandbox/skills/quiz/SKILL.md
docker/sandbox/skills/video/SKILL.md
docker/sandbox/skills/xlsx/SKILL.md
.cursor/skills/playwright-testing/SKILL.md

Metadata

Files
0
Version
176aed2
Hash
18aa96e9
Indexed
2026-09-23 08:23

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-01 13:41
浙ICP备14020137号-1