算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
hero-ui-craft【设计与创意】Use when Codex works on any front-end implementation, UI polish, dashboard, product screen, internal tool, design system, React component, Tailwind CSS v4 surface, HeroUI React v3 setup, shadcn-to-HeroUI migration, or any task that should use HeroUI. Enforces official HeroUI context, Pencil/Figma component-detail visual approval before coding, HeroUI…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill as the front-end craft layer for HeroUI React v3 and Tailwind CSS v4 work.
Core principle: front-end quality starts before design. Requirements are a layered, testable contract, not one sentence.
Do not write or edit front-end implementation code until all of these are true:
references/official/react/AGENTS.md first.npx heroui-cli@latest agents-md --react --output AGENTS.md when working in a target project, or explained why the target is not a React web project..heroui-docs/react/, the official heroui-react MCP server, or the bundled llms-components.txt docs to check the selected components.docs/full-stack-development/requirements/<feature-slug>/.00-stage.json and kept it current. This stage file is the source of truth for whether the task is in rough intake, requirements, visual design, visual approval, implementation, or verification.00-stage.json has approvals.requirementsApproved: true or currentStage: "visual-design-ready" after user confirmation of the requirement workspace.review_requirement_workspace_stage and it passed for targetStage: "visual-design" before Pencil/Figma visual work.review_requirement_workspace_stage and it passed for targetStage: "implementation" before writing implementation code.If any item is missing, stop before implementation and complete the missing step.
Inspect the project.
@/components/ui/* is present, treat the task as a migration boundary and avoid adding new shadcn usage.Load official HeroUI context.
references/official/react/AGENTS.md, the official HeroUI React v3 agents-md output bundled with this plugin.references/official/react/llms.txt as the quick index.references/official/react/llms-components.txt for component selection and props.references/official/react/llms-patterns.txt for recipes, composition, styling, and theming.references/official/react/llms-full.txt only for deep lookup.npx heroui-cli@latest agents-md --react --output AGENTS.md to sync project-local docs too.@heroui/react and @heroui/styles are installed or plan installation.@import "tailwindcss"; before @import "@heroui/styles";.heroui-react to inspect component docs, props, source styles, and theme variables.Create the requirement workspace before Pencil/Figma.
generate_requirement_workspace from the rough request and write every returned file into docs/full-stack-development/requirements/<feature-slug>/ in the target project.00-stage.json, 01-rough-request.md, 02-business-requirements.md, 03-product-requirements.md, 04-information-architecture.md, 05-interaction-matrix.md, 06-state-requirements.md, 07-visual-requirements.md, 08-engineering-contract.md, 09-acceptance-contract.md, 10-visual-confirmation-plan.md, and changes/0000-initial-intake.md.00-stage.json marks approvals.requirementsApproved: true or currentStage: "visual-design-ready".review_requirement_workspace_stage before Pencil/Figma. If it returns blocked, keep drafting, asking focused questions, and updating the workspace.Plan the UI before design work.
plan_hero_ui_system for screens, redesigns, dashboards, tools, or ambiguous visual direction.select_hero_ui_components to map product needs to official HeroUI components.inspect_tailwind_ui_reference and plan_tailwind_hero_ui_adoption; use it as reference-only and translate all implementation back to HeroUI.Produce visual confirmation before code.
plan_visual_confirmation.plan_visual_design_orchestration before using Pencil or Figma.get_editor_state(include_schema: true) before other Pencil tools.review_visual_design_orchestration and review_visual_evidence before implementation.Implement with HeroUI.
@heroui/react.HeroUIProvider for React v3. Use I18nProvider only when locale setup is required.gap-*, not space-x-* or space-y-*.size-* when width and height are equal.Review and verify.
plan_requirement_change, append the change record under docs/full-stack-development/requirements/<feature-slug>/changes/, update impacted requirement files, and 回退 00-stage.json to the earliest impacted stage.review_requirement_workspace_stage after every requirement change.review_hero_ui_quality on changed JSX/TSX/HTML/CSS.review_hero_ui_component_graph_audit on changed TSX/JSX files.review_visual_inspection_metrics when screenshot or image-analysis metrics exist.review_hero_ui_docs_freshness before release when bundled official docs are used.generate_frontend_verification_checklist before final QA.npx heroui-cli@latest doctor when the HeroUI CLI can run in the target project.review_requirement_workspace_stage passes for visual design.review_requirement_workspace_stage passes for implementation.docs/full-stack-development/requirements/<feature-slug>/ in the target project.changes/, must update 00-stage.json, and must regress the stage to the earliest impacted requirement layer before more design or code.@/components/ui/button.@nextui-org/react for HeroUI v3 work.HeroUIProvider for React v3 unless official docs have changed and you verified that change.Read references/hero-ui-official-workflow.md when setting up HeroUI, migrating from shadcn, or checking official consistency.
Read references/visual-confirmation.md when preparing Pencil/Figma images or deciding what must be shown before user approval.
Read references/requirements-to-visual-workflow.md when a front-end request starts from a rough idea, screenshot, product ask, or ambiguous workflow.
Read references/official/react/AGENTS.md before any HeroUI React front-end implementation. It is the official generated agent index and has priority over remembered HeroUI knowledge.
generate_requirement_workspace: Use to create the fixed project requirement workspace from a rough user request.review_requirement_workspace_stage: Use to block Pencil/Figma or implementation unless the fixed workspace stage passes.plan_requirement_change: Use when requirements change or upgrade; records the change, identifies impacted artifacts, and regresses the stage.plan_frontend_requirement_pipeline: Use for a high-level overview of the layered requirement contract.generate_requirement_artifact_templates: Legacy compatibility only. Do not use as the primary gate for new work; use generate_requirement_workspace.review_frontend_requirement_contract: Legacy compatibility only. Do not use as the primary gate for new work; use review_requirement_workspace_stage.plan_hero_ui_system: Use before implementing a substantial HeroUI UI surface.list_hero_ui_agent_docs: Use to see bundled official HeroUI React agent docs and their priority order.get_hero_ui_agent_doc: Use with doc: "agents" before implementation; use other docs only as needed.select_hero_ui_components: Use when mapping product needs to official HeroUI components.plan_visual_confirmation: Use before coding to define Pencil/Figma image requirements.plan_visual_design_orchestration: Use to plan the one-pass Pencil/Figma flow.review_visual_design_orchestration: Use to verify the visual tool flow produced complete handoff evidence.inspect_tailwind_ui_reference: Use to inspect local TailwindUI folders without copying source.plan_tailwind_hero_ui_adoption: Use to map TailwindUI references back to HeroUI and Tailwind v4 rules.review_hero_ui_quality: Use after editing UI code or before final review.review_hero_ui_component_graph_audit: Use to audit official HeroUI imports and local shadow components.review_visual_inspection_metrics: Use to block blank, high-diff, overlapping, clipped, or contrast-broken screenshots.review_hero_ui_docs_freshness: Use to verify bundled HeroUI official docs are fresh and complete.generate_frontend_verification_checklist: Use before final verification.The local tools are read-only and deterministic. The plugin also exposes the official heroui-react MCP server for current component documentation and source inspection.