Communitygithub.com

brainzcode/premium-landing

プロフェッショナル向けプレミアムランディングページを構築するスキル。リファレンス画像やURLからの正確な複製、または簡潔な指示に基づくデザインをHTML、React、Next.js、Astroで実現します。

premium-landing とは?

このスキルは、高品質なランディングページを構築するための包括的なガイドラインと実装手順を提供します。リファレンスモード(スクリーンショット、PDF、URLからの正確な複製)とブリーフモード(ビジネスやターゲットユーザーの説明のみからデザイン)の2つの動作モードに対応し、それぞれに適したアプローチで品質を保証します。主にHTML、React、Next.js、Astroスタックをサポートし、デザイントークン、セクションパターン、レイアウトの落とし穴(グリッドやマーキーの非表示バグなど)についての参考文献が豊富に用意されています。また、320pxから1920pxまでのレスポンシブ検証を自動化するスクリプト(verify.sh)を提供し、「プレミアム」の基準として流動的なタイポグラフィ、トランジション最適化、適切なスペーシング、モバイルファーストの設計を重視します。このスキルは、コード生成エージェント(Claude Code、Cursor等)がランディングページ開発時に一貫性と高品質を維持するための不可欠なリソースです。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/brainzcode/premium-landing/tree/HEAD/plugins/premium-landing/skills/landing-page

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

プレミアムランディングページ

ランディングページは、3つのチェックをクリアして初めて完成します。リファレンスまたはブリーフに一致していること、320から1920までのすべての幅で崩れないこと、そして要素が偶然に配置されていないことです。作業の大部分は3つ目のチェックに費やされます。

最初にモードを決める

リファレンスモード — ユーザーがスクリーンショット、PDF、URL、「これを複製して」と指定した場合。正確さが目標であり、「大体合っている」は失敗です。CSSを書く前にリファレンスを数値で計測してください。reference-replication をロードします。

ブリーフモード — ユーザーがビジネス、ターゲット層、または雰囲気を説明し、画像がない場合。構成はあなたが選びます。ハウスルールとセクションライブラリが品質の下限を設定します。

両方が存在する場合、リファレンスがカバーする部分はそれを優先し、ブリーフで残りのギャップを埋めます。どちらも明確でない場合は、質問してください。間違ったモードで構築されたランディングページは無駄になります。

ビルドに影響を与える項目のみ質問する

詮索しないでください。実際に出力を変更するのは以下の4項目です。

  1. スタック — HTML / React / Next / Astro。templates/<stack>/ からスキャフォールドします。
  2. ブランドの基本情報 — 名前、およびパレットまたは「リファレンスから取得」の指示。
  3. ロケール — 通貨、日付形式、イギリス英語とアメリカ英語のスペルを決定します。一度質問し、一貫性を保ちます。
  4. セクション — リファレンスも明確なページタイプもセクションを示唆しない場合のみ質問します。

その他すべては、説明可能なデフォルトがあります。それを使用し、仮定した内容を伝えてください。

ビルド順序

順序を間違えると手戻りが発生します。ヒーローの高さがファーストビューのすべてを制約し、デザイントークンがすべてのセクションを制約するからです。

  1. トークン — サーフェス、インク、線、アクセント、角丸、イージング、1つの流動的なタイプスケール。 references/design-system.md を参照。
  2. ヒーロー — すべてのビルドで最も修正される要素。100svh、リズムは vh で指定。 references/house-rules.md を参照。
  3. セクション(リファレンスの順序で)。references/sections.md を参照。 写真が必要なスロットは、今すぐ調達してください。グレーのボックスを残さないでください。 — ../stock-imagery/SKILL.md を参照。
  4. フッター、次に下記の仕上げシーケンス。
  5. 検証。省略不可 — 下記参照。

落とし穴

グリッド、マーキー、SVGアイコン、フルブリード画像のコードを書く前に references/traps.md を読んでください。そこには6つの静かな失敗が含まれています。CSSは有効、エラーなし、しかしどこか別の場所でレイアウトが壊れます。初回はそれぞれに何時間もかかりますが、リファレンスを開いていれば数分で解決します。

検証はビルドの一部です

実際の幅でスクリーンショットを撮っていないランディングページは、完成していません。バンドルされたハーネスを実行してください:

scripts/verify.sh <url> --sweep          # 320→1920 のオーバーフロー + ヒーローフィット
scripts/verify.sh <url> --shot 390x844   # 単一のビューポート

これは、macOSの500pxウィンドウクランプ(すべてのモバイルスクリーンショットを静かに偽装する)を処理します。詳細と手動フォールバックは references/verification.md を参照してください。

3つのチェックをパスする必要があります:

  • 水平オーバーフローなし 320から1920までのすべての幅で。
  • ヒーローが1画面に収まる 390×844、414×896、1600×900で、または意図的に拡大されていること。
  • 動きを減らす設定でも すべてのセクションがレンダリングされること。アニメーション途中の要素がないこと。

仕上げシーケンス

実際のビルドでは常に要求されます。これは「完了」の定義であり、あれば良いものではありません:

  1. lenis-smooth-scroll
  2. premium-mobile-menu
  3. social-share-favicons
  4. build-credit
  5. ページについての README.md — セクション、トークン、ブレークポイント、デプロイ手順。作成に使用したツールについてではありません。
  6. .gitignore;コミットメッセージには、特に要求がない限りAI共著者行を入れない。
  7. デプロイに関する注意(GitHub Pagesでは、パスが _ で始まる場合に .nojekyll が必要)。

ここで「プレミアム」が実際に意味すること

グラデーションやガラス効果ではありません。それは、ブレークポイントでジャンプせずに流動的にスケールするタイポグラフィ、transform と opacity のみに触れるモーション、配置されている軸に対して測定されたスペーシング、デッドバンドがないこと、そしてデスクトップから継承されるのではなく設計されたモバイルレイアウトです。これらのすべてはチェック可能であり、だからこそ基準となっています。

リファレンス

ファイル読むタイミング
references/house-rules.md常に — すべてのビルドで繰り返される修正事項
references/traps.mdグリッド、マーキー、SVGアイコン、フルブリード画像の前
references/design-system.mdトークンとタイプスケールの設定時
references/sections.mdヒーロー、マーキー、アコーディオン、カードレール、フッターの構築時
references/verification.md検証時、またはスクリーンショットがおかしい場合
../reference-replication/SKILL.mdリファレンス画像またはURLが提供された場合
../stock-imagery/SKILL.mdページに写真が必要で、提供されていない場合

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

brainzcode/premium-landing

Add a studio or agency build credit to a website footer — "Site by <Studio>" linking to the studio's site. Use when finishing or shipping a site, adding a footer, or when asked for an agency credit, build credit, designed-by line, or attribution. Covers wording, placement opposite the client's copyright, markup for each stack, styling from the host site's tokens, and the sitewide-footer-link SEO footprint when the same credit runs across many client sites.

brainzcode/premium-landing

Add Lenis smooth scrolling to a site correctly — setup, anchor offsets for sticky headers, scroll locking for modals and menus, reduced-motion handling. Use when asked for smooth scroll, Lenis, momentum/eased scrolling, or when smooth scroll broke a sticky header, a modal lock, or anchor links. Includes the sticky-position trap that only appears at non-zero scroll.

brainzcode/premium-landing

Build true Apple-style liquid glass in the browser — real refraction via SVG displacement maps, chromatic dispersion, specular edges. Use when asked for liquid glass, glassmorphism, frosted/glass cards, glass navbars, or when a blur-based "glass" effect looks flat. Includes the performance trap that makes backdrop-filter stutter on scroll and the contrast trap that makes text unreadable on glass.

brainzcode/premium-landing

Build a premium mobile nav — a hamburger button that morphs into a close X, a full-screen overlay panel with staggered link reveal, scroll lock, focus trap, and reduced-motion handling. Use when asked for a mobile menu, hamburger/burger button, nav drawer, off-canvas menu, or when a menu loses scroll position, still scrolls behind on iOS, leaks Tab focus to the page underneath, or the close button stops responding. Includes the z-index trap that swallows the close button and the iOS rubber-band trap.

brainzcode/premium-landing

Rebuild a design accurately from a supplied reference — a screenshot, PDF page, mockup or live URL — by measuring it numerically instead of eyeballing it. Use when asked to replicate, clone, match or rebuild a design "exactly", "1 to 1" or "with no mistakes", or when a build drifts from its reference. Covers extracting the true content box from a padded screenshot, deriving element positions as percentages, solving object-fit framing, and knowing when a reference cannot be matched.

brainzcode/premium-landing

Ship link previews and favicons that actually work - Open Graph and Twitter card tags, a correctly framed 1200x630 share image, and a full favicon set (SVG, ICO, apple-touch, maskable manifest icons). Use when asked for social sharing, OG image, open graph, twitter card, link preview, share image, favicon, app icon, apple touch icon, or web manifest. Also use when a shared link previews blank, shows the wrong image, or a favicon will not appear. Includes the absolute-URL trap that silently blanks every preview and the font trap that breaks SVG favicons on other machines.

brainzcode/premium-landing

Source free, licence-clear photography for a site from Unsplash — searching by mood rather than noun, sizing and cropping for the slot, honouring the API's hotlink and download-tracking requirements, and writing real alt text. Use when a page needs a hero image, section photography, avatars or card art and none was supplied; when placeholder greys need replacing with real imagery; or when asked to find, pick or swap photos for a design.

関連スキル