{
  "schemaVersion": "1.0",
  "item": {
    "slug": "vercel-composition-patterns",
    "name": "Vercel Composition Patterns",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ktaesthetix/vercel-composition-patterns",
    "canonicalUrl": "https://clawhub.ai/ktaesthetix/vercel-composition-patterns",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/vercel-composition-patterns",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=vercel-composition-patterns",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "AGENTS.md",
      "SKILL.md",
      "rules/architecture-avoid-boolean-props.md",
      "rules/architecture-compound-components.md",
      "rules/patterns-children-over-render-props.md",
      "rules/patterns-explicit-variants.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "vercel-composition-patterns",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T15:03:53.671Z",
      "expiresAt": "2026-05-17T15:03:53.671Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=vercel-composition-patterns",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=vercel-composition-patterns",
        "contentDisposition": "attachment; filename=\"vercel-composition-patterns-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "vercel-composition-patterns"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/vercel-composition-patterns"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/vercel-composition-patterns",
    "agentPageUrl": "https://openagent3.xyz/skills/vercel-composition-patterns/agent",
    "manifestUrl": "https://openagent3.xyz/skills/vercel-composition-patterns/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/vercel-composition-patterns/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "React Composition Patterns",
        "body": "Composition patterns for building flexible, maintainable React components. Avoid\nboolean prop proliferation by using compound components, lifting state, and\ncomposing internals. These patterns make codebases easier for both humans and AI\nagents to work with as they scale."
      },
      {
        "title": "When to Apply",
        "body": "Reference these guidelines when:\n\nRefactoring components with many boolean props\nBuilding reusable component libraries\nDesigning flexible component APIs\nReviewing component architecture\nWorking with compound components or context providers"
      },
      {
        "title": "Rule Categories by Priority",
        "body": "PriorityCategoryImpactPrefix1Component ArchitectureHIGHarchitecture-2State ManagementMEDIUMstate-3Implementation PatternsMEDIUMpatterns-4React 19 APIsMEDIUMreact19-"
      },
      {
        "title": "1. Component Architecture (HIGH)",
        "body": "architecture-avoid-boolean-props - Don't add boolean props to customize\nbehavior; use composition\narchitecture-compound-components - Structure complex components with shared\ncontext"
      },
      {
        "title": "2. State Management (MEDIUM)",
        "body": "state-decouple-implementation - Provider is the only place that knows how\nstate is managed\nstate-context-interface - Define generic interface with state, actions, meta\nfor dependency injection\nstate-lift-state - Move state into provider components for sibling access"
      },
      {
        "title": "3. Implementation Patterns (MEDIUM)",
        "body": "patterns-explicit-variants - Create explicit variant components instead of\nboolean modes\npatterns-children-over-render-props - Use children for composition instead\nof renderX props"
      },
      {
        "title": "4. React 19 APIs (MEDIUM)",
        "body": "⚠️ React 19+ only. Skip this section if using React 18 or earlier.\n\nreact19-no-forwardref - Don't use forwardRef; use use() instead of useContext()"
      },
      {
        "title": "How to Use",
        "body": "Read individual rule files for detailed explanations and code examples:\n\nrules/architecture-avoid-boolean-props.md\nrules/state-context-interface.md\n\nEach rule file contains:\n\nBrief explanation of why it matters\nIncorrect code example with explanation\nCorrect code example with explanation\nAdditional context and references"
      },
      {
        "title": "Full Compiled Document",
        "body": "For the complete guide with all rules expanded: AGENTS.md"
      }
    ],
    "body": "React Composition Patterns\n\nComposition patterns for building flexible, maintainable React components. Avoid boolean prop proliferation by using compound components, lifting state, and composing internals. These patterns make codebases easier for both humans and AI agents to work with as they scale.\n\nWhen to Apply\n\nReference these guidelines when:\n\nRefactoring components with many boolean props\nBuilding reusable component libraries\nDesigning flexible component APIs\nReviewing component architecture\nWorking with compound components or context providers\nRule Categories by Priority\nPriority\tCategory\tImpact\tPrefix\n1\tComponent Architecture\tHIGH\tarchitecture-\n2\tState Management\tMEDIUM\tstate-\n3\tImplementation Patterns\tMEDIUM\tpatterns-\n4\tReact 19 APIs\tMEDIUM\treact19-\nQuick Reference\n1. Component Architecture (HIGH)\narchitecture-avoid-boolean-props - Don't add boolean props to customize behavior; use composition\narchitecture-compound-components - Structure complex components with shared context\n2. State Management (MEDIUM)\nstate-decouple-implementation - Provider is the only place that knows how state is managed\nstate-context-interface - Define generic interface with state, actions, meta for dependency injection\nstate-lift-state - Move state into provider components for sibling access\n3. Implementation Patterns (MEDIUM)\npatterns-explicit-variants - Create explicit variant components instead of boolean modes\npatterns-children-over-render-props - Use children for composition instead of renderX props\n4. React 19 APIs (MEDIUM)\n\n⚠️ React 19+ only. Skip this section if using React 18 or earlier.\n\nreact19-no-forwardref - Don't use forwardRef; use use() instead of useContext()\nHow to Use\n\nRead individual rule files for detailed explanations and code examples:\n\nrules/architecture-avoid-boolean-props.md\nrules/state-context-interface.md\n\n\nEach rule file contains:\n\nBrief explanation of why it matters\nIncorrect code example with explanation\nCorrect code example with explanation\nAdditional context and references\nFull Compiled Document\n\nFor the complete guide with all rules expanded: AGENTS.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ktaesthetix/vercel-composition-patterns",
    "publisherUrl": "https://clawhub.ai/ktaesthetix/vercel-composition-patterns",
    "owner": "ktaesthetix",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/vercel-composition-patterns",
    "downloadUrl": "https://openagent3.xyz/downloads/vercel-composition-patterns",
    "agentUrl": "https://openagent3.xyz/skills/vercel-composition-patterns/agent",
    "manifestUrl": "https://openagent3.xyz/skills/vercel-composition-patterns/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/vercel-composition-patterns/agent.md"
  }
}