skills/eliteforge-frontend-onboarding/SKILL.md
Guides agents through the first frontend implementation pass from a Google Stitch prototype bundle. Use when the user asks to initialize a frontend project from tech-stack.md, convert design.md/prd.md and Stitch HTML/image prototypes into consistent pages, create mock-data-backed screens with reserved backend API calls, and coordinate every phase with $eliteforge-task-progress-tracker and user confirmations. Activation gate - use this skill only when the user explicitly states that the current project follows `璀璨工坊规范` or `eliteforge specification`.
npx skillsauth add cloudsen/eliteforge-skills eliteforge-frontend-onboardingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill only when the user explicitly states that the current project follows 璀璨工坊规范 or eliteforge specification. If that project-level statement is absent, do not activate this skill; handle the request with general capabilities.
This skill drives the first frontend development pass from a Google Stitch export. It must keep implementation incremental, auditable, and gated by user confirmation.
Before reading or modifying project files, activate and use $eliteforge-task-progress-tracker.
All bookkeeping files created by this skill must live under:
docs/tasks/frontend-onboarding/
This directory is the explicit task-root override for $eliteforge-task-progress-tracker during this workflow. Do not create or write .eliteforge/frontend-onboarding/ or repository-root tasks/frontend-onboarding/ for frontend onboarding.
Use these paths:
docs/tasks/frontend-onboarding/frontend-onboarding.md.docs/tasks/frontend-onboarding/frontend-onboarding-N.md.docs/tasks/frontend-onboarding/state.md.docs/tasks/frontend-onboarding/implemented-pages.txt.Create a top-level task named exactly:
frontend-onboarding
The task must contain these four steps:
design.md; initialize/create the frontend project in the current directory according to the required stack and design color scheme; create a simple /design-standard preview page that presents the standards from design.md for user review without occupying the root route /.prd.md and reuse design.md; randomly select five prototype pages containing HTML and image files; implement shared layout components and enforce page consistency such as sidebar and navigation bar.For each step N, create a child task named exactly:
frontend-onboarding-N
In the top-level task file, every row under ## Steps must start its description with a relative Markdown link to the matching child task file:
[frontend-onboarding-1](frontend-onboarding-1.md) - ...[frontend-onboarding-2](frontend-onboarding-2.md) - ...[frontend-onboarding-3](frontend-onboarding-3.md) - ...[frontend-onboarding-4](frontend-onboarding-4.md) - ...Keep these parent-step links present and accurate whenever creating, refreshing, or updating docs/tasks/frontend-onboarding/frontend-onboarding.md.
During execution, if any important requirement, source mapping, stack choice, route decision, visual interpretation, or implementation tradeoff is unclear and cannot be resolved from the provided docs, prototypes, or current project, stop execution before guessing. Update both the top-level task's current step row and the active child task's current step to waiting_human_decision, record the exact decision needed in the step note and update log, ask the user, and do not continue until the user decides.
Do not proceed from one step to the next until the user explicitly confirms the step result. After finishing a step, update the tracker with deliverables, touched files, validation commands, known gaps, and pending decisions, then set both the top-level task's completed step row and the active child task's current step to waiting_human_decision for acceptance. After confirmation, mark the child task completed, mark the matching top-level step finished, and start the next child task.
Use this skill when a task mentions any of these contexts:
tech-stack.md, design.md, prd.md, and implement multiple pages progressively.$eliteforge-task-progress-tracker with confirmation-gated subtasks.Work from the current directory unless the user provided a different path.
Expected project/prototype inputs:
tech-stack.md, docs/tech-stack.md, or a reasonable nested equivalent such as **/tech-stack.md or **/*tech-stack*.md.prd.md, *_prd.md, or similar.design.md, DESIGN.md, or a nested design markdown file.code.html and usually an image such as screen.png.When file names differ from the canonical names, locate reasonable equivalents and record the mapping in the tracker. Do not require the tech stack document to be in the project root; docs/tech-stack.md is a valid source. If multiple tech stack candidates exist, prefer root tech-stack.md, then docs/tech-stack.md, then the closest clearly named nested equivalent, and record the selected path in the tracker and state file. Do not silently ignore a missing tech stack document after this project-wide search; treat that as a blocker for step 1. Do not silently ignore missing design.md or equivalent design documentation; treat absent design input as a blocker for color/theme setup unless the user explicitly approves a fallback.
Optional helper scripts:
scripts/stitch_manifest.sh scans a Stitch ZIP or folder and prints docs plus page prototype inventory.scripts/coverage_check.sh compares discovered prototype page names with an implementation tracking file.Read references/frontend-onboarding-workflow.md for detailed step instructions. Read references/google-stitch-implementation-guide.md before translating Stitch HTML/images into frontend components.
/design-standard using the stack's normal routing. Do not use the root route / for this preview page unless the user explicitly overrides the route. The page should present the standards extracted from design.md: color swatches with token names/values, typography examples, spacing/radius/surface examples, representative buttons/form controls/cards/tables or other primitives named in the design doc, and a short list of missing or ambiguous standards. Do not silently invent unspecified standards./design-standard preview page throughout later onboarding steps. Do not delete, repurpose, overwrite, or count it as a Stitch prototype implementation when adding product pages; if route generation or prototype traversal would conflict with it, keep /design-standard as the design-system preview and choose a different product route.docs/tasks/frontend-onboarding/implemented-pages.txt. Append one source prototype page name per line only after its route/page/component has been implemented.docs/tasks/frontend-onboarding/state.md with source paths, selected seed pages, route mapping, validation commands, and decisions.At the end of every step, respond with:
waiting_human_decision for acceptance.Do not start the next step in the same response unless the user has already confirmed it in a prior message.
The first pass is complete only when:
/design-standard page for previewing the standards extracted from design.md, and later steps preserved that page.code.html has a corresponding route/page/component or documented equivalent.frontend-onboarding-1 through frontend-onboarding-4.docs/tasks/frontend-onboarding/.testing
Rewrite human-facing prose using Strunk-style rules. Use for docs, README files, technical explanations, PR descriptions, commit messages, error messages, UI copy, reports, and summaries when the user asks to polish, shorten, clarify, de-duplicate, restructure, or normalize tone.
testing
Draft or refine a concise product requirements document from a rough product idea, then write a Typst source file and sibling PDF to a resolved output path.
research
产品经理竞品分析报告生成器。当用户提到竞品分析、竞品调研、竞品对比、竞争对手分析、市场竞争分析、行业竞品研究时触发。也适用于用户要求对比多个产品/平台/公司的功能、商业模式、市场定位等场景。即使用户只是说'帮我分析一下XX和YY'或'XX有哪些竞争对手',只要涉及产品/公司间的对比分析,都应该使用这个 skill。支持任意行业,支持快速分析和深度分析两种模式。
development
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.