Skip to content

fcakyon/claude-codex-settings / plugins/heroui-skills/skills/heroui-migration

heroui-migration

Verified

HeroUI v2 to v3 migration guide for agents. Use when migrating HeroUI v2 apps to v3, upgrading components, or accessing migration documentation. Keywords: HeroUI migration, v2 to v3, migration guide, upgrade HeroUI.

scripts/get_migration_guide.mjs

View on GitHub
#!/usr/bin/env node
/**
 * Get the main migration workflow guide (full or incremental) for HeroUI v2 to v3.
 *
 * Usage:
 *   node get_migration_guide.mjs [full|incremental]
 *
 * Default: full
 *
 * Output:
 *   MDX migration guide content
 */

const DOCS_BASE =
  process.env.HEROUI_MIGRATION_DOCS_BASE ||
  "https://heroui.com/en/docs/react/migration";
const APP_PARAM = "app=migration-skills";

async function fetchDoc(filename) {
  const url = `${DOCS_BASE}/${filename}?${APP_PARAM}`;

  try {
    const response = await fetch(url, {
      headers: {"User-Agent": "HeroUI-Migration-Skill/1.0"},
      signal: AbortSignal.timeout(30000),
    });

    if (!response.ok) {
      throw new Error(`HTTP ${response.status}: ${response.statusText}`);
    }

    return await response.text();
  } catch (error) {
    throw new Error(`Failed to fetch ${filename}: ${error.message}`);
  }
}

async function main() {
  const arg = (process.argv[2] || "full").toLowerCase();
  const migrationType = arg === "incremental" ? "incremental" : "full";
  const filename =
    migrationType === "incremental" ? "agent-guide-incremental.mdx" : "agent-guide-full.mdx";

  console.error(`# Fetching ${migrationType} migration guide...`);

  try {
    const content = await fetchDoc(filename);
    const title =
      migrationType === "incremental"
        ? "HeroUI v2 to v3 Agent Migration Guide - Incremental Migration"
        : "HeroUI v2 to v3 Agent Migration Guide - Full Migration";

    console.log(`# ${title}\n\n**Source:** ${DOCS_BASE}/${filename}\n\n---\n\n${content}`);
  } catch (error) {
    console.error(`# Error: ${error.message}`);
    process.exit(1);
  }
}

main();
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 197kUpdated Claude CodeCodexVerifiedInstall