AgentSkillsCN

solid-design-patterns

在 SolidJS 架构与设计模式中,清晰阐明各项权衡取舍,并对反模式进行警示。适用于在 SolidJS 系统中选择组件组合方式、状态所有权归属、异步数据流,或 SSR/水合策略时使用。

SKILL.md
--- frontmatter
name: solid-design-patterns
description: Recommend SolidJS architecture and design patterns with explicit tradeoffs and anti-pattern warnings. Use when selecting component composition, state ownership, async data flow, or SSR/hydration strategies in SolidJS systems.

solid-design-patterns

  1. Frame the architecture decision and constraints.
  2. Compare 2-3 viable patterns with tradeoffs.
  3. Call out anti-patterns and migration risks.
  4. Cross-check with ../../references/solidjs/stores-context.md and ../../references/solidjs/async-data.md.
  5. Return a recommendation and a lightweight adoption plan.