Convert Lanhu HTML/CSS output into project frontend code for Vue, React, or the detected stack, with component reuse and design token mapping.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Scan frontend src directories and generate docs/components.md so Claude Code can reuse existing Vue/React components during design-to-code generation.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
职责: 扫描项目 src/ 目录,提取组件 props/emits/用法,生成 docs/components.md 初稿。
运行场景: GitLab/Codeup 定时 CI Pipeline,不在 design-to-code 流程中内联调用。
不做: 生成 tech-spec.md(API 路径只有人知道)、修改现有组件代码。
bash scripts/detect-components.sh <项目根目录>
输出每行格式:<shared|page>:<components目录>:<组件文件路径>
shared → 通用组件(跨页面可用)page → 页面级组件(仅所属页面使用)读取每个组件文件,提取:
| 提取项 | Vue 3 来源 | React/TSX 来源 |
|---|---|---|
| 组件名 | 文件名 / name 选项 | 函数名 / export default |
| Props | defineProps<T>() 或 withDefaults | TypeScript interface / PropTypes |
| Emits | defineEmits() | 回调 props(onXxx) |
| 用法示例 | 从 props 推断基础用法 | 从 props 推断基础用法 |
提取规则:
⚠️ 需人工确认格式见 → output-format.md
生成完成:
通用组件:N 个
页面级组件:M 个(来自 K 个页面)
需人工确认:P 项(已在文件中标注 ⚠️)
docs/components.md 已写入,请审阅后提交 MR。
⚠️ 自动生成 提示,合并后由开发者手动删除아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Convert Lanhu HTML/CSS output into project frontend code for Vue, React, or the detected stack, with component reuse and design token mapping.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Extract Lanhu design HTML, CSS, and assets through Lanhu MCP for Claude Code design-to-code workflows. Called by design-to-code.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Lanhu to Code workflow for Claude Code. Convert Lanhu design URLs into Vue/React frontend code with component reuse, design token mapping, TODO-safe business logic, and optional code review.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.