Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

convert-url-to-nextjsconvert URL TO Next.js 搜索

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

269

周安装

11

GitHub Stars

5

下载量

87
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:convert-url-to-nextjs(convert URL TO Next.js 搜索)
来源仓库:https://github.com/yigitkonur/skills-by-yigitkonur
仓库路径:skills/convert-url-to-nextjs
安装命令:
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill convert-url-to-nextjs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill convert-url-to-nextjs

简介

convert-url-to-nextjs 将实时网站转换为基于 Next.js App Router 的重建项目。

  • 适用于网站复刻、离线保存或跨平台移植任务。
  • 强调忠实还原原站结构与样式,而非快速原型或创意设计。
  • 建议配合本地预览与构建检查,验证组件层级与交互逻辑正确性。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Capture / Snapshot to Next.js

Convert live sites or saved HTML snapshots into grounded Next.js App Router builds. Treat the source as evidence, not inspiration: capture first when the source is live, extract before build, then prove the rebuilt page matches with visual QA artifacts.

Use this skill when

  • Input is a live URL, a saved snapshot (.html + companion assets), a SingleFile export, or an unpacked offline site capture.
  • The user wants to rebuild, recreate, convert, clone, recover, or extract a site into Next.js.
  • Fidelity matters more than speed or creative redesign.
  • The source repo is partially or fully lost, but production pages or browser artifacts still exist.

Do not use this skill when

  • The only source is a single screenshot, PDF export, Figma design, or loose design idea with no accessible live route or parseable HTML/CSS artifacts.
  • The task is general Next.js UI coding with no reconstruction or grounded extraction requirement.
  • The goal is a redesign, simplification, or same vibe rewrite instead of faithful reconstruction.

Setup

KeyValue
Output locationnextjs-project/ plus .design-soul/ beside the capture or snapshot working root
NamingRoute folders, capture identifiers, manifests, asset folders, CSS classes, and token names use kebab-case. React component files and exported component symbols use PascalCase.
Minified CSS warningCaptured or saved CSS may be minified (no trailing ; before }). All grep patterns in references use [^;}]+ to handle this — do not simplify to [^;]+.

Start with these decisions

SituationAction
Only a live URL existsRun the Capture Wave first. Inventory routes, group page families, choose canonical exemplars, mirror route assets locally, then continue to Wave 0.
Live URL plus a narrow scope requestCapture only the in-scope routes, but still build a route manifest and page-family grouping before implementation.
.html + _files/ folders presentSkip the Capture Wave. Start at Wave 0 and treat the snapshot as the primary artifact set.
.html with adjacent/local .css files but no _files/Use adjacent-asset snapshot mode. Treat the referenced local CSS and assets as the Wave 0 corpus.
.html with inline <style> blocks but no _files/ or local .css filesUse SingleFile fallback mode. Extract from inline styles and document reduced confidence.
package.json + source repo but no live site or snapshotFallback mode only. Read source directly, but keep the same grounding and verification rules.
Request says extract, document, design system, or tokensStop after the Capture Wave or Waves 0–2 unless the user explicitly asks for a build.
Request says rebuild, recreate, convert, clone, recover, or pixel-perfectRun the full pipeline: Capture Wave (if needed) → Waves 0–4.
Source spans many routes or templatesInventory routes first, group them into page families, finish one family completely, then fan out.
Request is ambiguousDefault to grounded extraction first. Do not assume a full rebuild.

Read references/input-output-spec.md for input detection, working-root rules, route normalization, output trees, and ambiguity handling. Read references/capture-workflow.md when the source starts from a live URL.

Operating contract

  1. Capture before extract when the source is live. Build the route inventory, page-family manifest, screenshots, runtime metadata, mirrored asset roots, and grounded DOM artifacts before Wave 0. Read references/capture-workflow.md and references/wave-pipeline.md.
  2. Preserve the strongest offline artifact set. _files/ folders, adjacent local CSS, and inline styles are all valid snapshot evidence. Do not discard a snapshot because it does not match one filename convention.
  3. Route families before route fan-out. Identify the shared shell and canonical page types before rebuilding every route. A convincing recovery comes from reusable structure, not bespoke one-off pages.
  4. Parse, don't guess. Every value must trace to captured CSS, HTML, runtime metadata, or documented behavior. Read references/principles-and-rules.md.
  5. Screenshots are for verification, not invention. Use screenshots and scroll slices to detect missed structure and measure fidelity; do not derive exact token values from pixels when CSS/HTML evidence exists.
  6. Build from extracted values only. tokens.ts, tailwind.config.ts, globals.css, components, and route data must trace to Capture/Wave 0/Wave 1 artifacts. Mark incomplete values UNVERIFIED instead of substituting defaults.
  7. Self-host everything. Fonts, images, icons, and other assets must end up local. No CDN fonts. No remote image URLs.
  8. Write signals last. done.signal and foundation-ready.signal are written only after verification passes.
  9. If something cannot be grounded, mark it UNVERIFIED. Honest gaps are allowed. Invented values are not.

Do this / not that

Do thisNot that
Capture live routes with a browser first and preserve DOM, screenshots, runtime metadata, and mirrored asset rootsJump straight from a live homepage to hand-built JSX
Treat adjacent local CSS and assets as first-class snapshot evidence when _files/ is missingReject a usable snapshot because it does not use the _files/ naming convention
Group routes into page families and choose canonical exemplars before implementationTreat every route as a unique page and duplicate similar layouts
Use CSS Module prefixes, semantic tags, heading outlines, and screenshot coverage together to identify sectionsInfer structure from generic <div> nesting or above-the-fold screenshots alone
Search across the full discovered CSS corpus for the page, then deduplicate shared filesRead minified CSS by eye or treat each hashed CSS file as an isolated system
Carry exact source values through Capture/Wave 0 → Wave 4Round, normalize, or replace values because they look close enough
Run full-page and scroll-slice visual comparison loops before calling a route doneDeclare success from build success or spot-checking only the top viewport
Keep the build dependency set limited to the scaffold rules in references/system-template.mdAdd UI, icon, animation, or font packages for convenience

Required sequence

PhaseGoalRequired referencePrimary outputsGate
Capture WaveRoute inventory, canonical page families, grounded browser artifactsreferences/capture-workflow.md + references/input-output-spec.md + references/wave-pipeline.md.design-soul/capture/route-manifest.json, page-types.md, capture/{route}/dom.html, mirror/, screenshots, runtime-metadata.json.design-soul/capture/done.signal
Wave 0Per-page exploration and deobfuscationreferences/foundations-agent.mdwave0/{page}/exploration.md, deobfuscated.css, behavior-spec.md, assets/wave0/{page}/done.signal
Wave 1Unified design soul by page familyreferences/sections-agent.mdwave1/{group}/design-soul.md, token-values.json, responsive-map.mdwave1/{group}/done.signal
Wave 2Self-contained page build briefsreferences/section-template.mdwave2/{page}/agent-brief.mdwave2/{page}/done.signal
Wave 3Next.js scaffold and design-system foundationreferences/system-template.mdnextjs-project/, wave3/foundation-brief.md, traceability-matrix.mdwave3/foundation-ready.signal
Wave 4Page builds plus visual QA loopsreferences/wave-pipeline.md + references/quality-checklist.mdroute files, page components, copied public assets, visual compare artifactsfinal verification passes

If the user only asked for extraction or documentation, stop after the appropriate phase instead of pushing to build.

Asset and style handling rules

  • Extract CSS custom properties, @font-face, @media, @keyframes, and transition values before touching the build.
  • Treat Wave 1 token-values.json as the source of truth for tokens; Wave 3 only re-expresses those exact values in tokens.ts, Tailwind config, and globals.css.
  • Copy fonts to public/assets/fonts/, images to public/assets/images/..., and icons to public/assets/icons/ or inline them only when the source uses inline SVG.
  • Preserve exact typography, spacing, gradients, shadows, radii, z-index, and breakpoint values.
  • Preserve responsive behavior from real source media queries; do not substitute defaults if the capture uses different breakpoints.
  • Preserve extracted interaction behavior, but only if it can be grounded from CSS or documented JS/runtime behavior specs.
  • For inline style="" attributes or JS-driven states, extract the base CSS and the trigger separately; do not freeze computed runtime values into guessed static styles.

Recovery rules

  • Live site available: capture desktop, tablet, and mobile screenshots plus scroll slices before building. Preserve final DOM, script URLs, runtime metadata, mirrored stylesheets, and exposed asset URLs.
  • Next.js / runtime-heavy site: record __NEXT_DATA__, self.__next_f, build IDs, chunk URLs, and route-level script/style manifests when present.
  • Missing _files/ folder: if the HTML references local CSS files, use adjacent-asset snapshot mode; if it only contains inline CSS, use SingleFile mode; otherwise full reconstruction may be blocked unless a live site can be captured.
  • Missing assets or remote-only assets: download them during extraction and record original → local path mapping.
  • Missing fonts: inspect captured network artifacts and stylesheet URLs. Download font files to public/assets/fonts/ and create @font-face declarations. If the original font cannot be recovered, mark the substitution clearly.
  • External JS (analytics, chat widgets): do not embed third-party scripts blindly. Document them separately and only re-add them if the user explicitly wants that behavior.
  • Missing CSS or JS evidence for a value or behavior: mark it UNVERIFIED and avoid inventing the implementation.
  • Incomplete capture: continue extraction where possible, but do not claim a pixel-perfect rebuild if core layout, type, asset, or below-the-fold evidence is missing.
  • Shared headers, footers, or page-family sections across routes: deduplicate them intentionally; note route-specific overrides rather than re-documenting the whole component each time.

CLI-verifiable acceptance criteria

Every conversion must pass these checks before declaring success:

# Install deps in nextjs-project/ first
npm install

# Type-check passes
npx tsc --noEmit

# Production build succeeds
npm run build

# No UNVERIFIED comments remain in shipped app code
grep -r 'UNVERIFIED' app/ components/ lib/ styles/ && echo "FAIL: unverified values" || echo "PASS"

# No external URLs leak into components or styles
grep -rE 'https?://' components/ styles/ | grep -v '// original:' && echo "FAIL: external URLs" || echo "PASS"

Verification before claiming completion

  • After the Capture Wave: verify route inventory completeness, route normalization, canonical page-family selection, mirrored asset roots, and screenshot coverage at desktop, tablet, mobile, plus scroll slices for long pages.
  • After extraction (before Wave 3): run the grounding test and cross-reference checks from references/quality-checklist.md.
  • Before foundation-ready.signal: verify extracted CSS custom properties and shared tokens are accounted for, allowed dependency set, self-hosted fonts/assets, traceability matrix, and clean TypeScript/build checks.
  • Before final completion: compare source vs build at 1280px, 768px, and 375px using full-page and scroll-segment captures; record visual summaries instead of relying on subjective judgment.
  • If any verification fails, fix it before writing the completion signal or calling the build done.

Reference map

NeedRead
Live-capture prerequisites, working root, route normalization, canonical exemplar selectionreferences/capture-workflow.md
Input detection, capture outputs, output trees, ambiguous requestsreferences/input-output-spec.md
Hard rules: grounding, section identification, zero inventionreferences/principles-and-rules.md
Wave 0 extraction methodreferences/foundations-agent.md
Wave 1 design-soul extractionreferences/sections-agent.md
Wave 2 build-brief formatreferences/section-template.md
Wave 3 scaffold, token wiring, allowed depsreferences/system-template.md
Full orchestration, Capture Wave, and gatesreferences/wave-pipeline.md
Acceptance criteria, visual QA, and failure modesreferences/quality-checklist.md
Section-type and anatomy heuristicsreferences/website-patterns.md

Read only the references needed for the current phase. Keep the top-level skill focused on decisions, sequencing, and guardrails; keep implementation detail in the reference files.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.4%
按下载量换算33

Claude

33.14%
按下载量换算29

Cursor

17.73%
按下载量换算15

Gemini CLI

8.79%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills