AI Agent Hub
Back to skills
SCP Image To Page Generator icon

SCP Image To Page Generator

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_d4891e98/eeeee into your AI assistant.

About this skill

Problem

scp-img-to-page targets React + Ant Design front-end projects such as aheadofcow_web, where a UI screenshot often needs to become a compilable page without manually reconstructing the table, filters, routing, and component conventions. It is scoped to the aheadofcow_web/ directory, avoids backend_transaction/, and does not generate src/api/ interface files, making it suitable for quickly adding list pages, form pages, routes, and basic interactions.

How It Works

The skill uses screenshots as input, identifies the page title, table columns, filters, action buttons, and dialogs, then generates React components. Key capabilities include:
- Image analysis: extracts column names, order, types, and button placement; continues from visual content if image analysis is unavailable
- Code generation: creates src/views/xxx/index.jsx, child components, and updates src/router/index.js
- Mock data: for list pages, generates 15 records with a unique id, plus filtering, pagination, and a 300ms simulated loading delay
- Component conventions: uses UploadRender for imports and Download for exports/downloads; permission buttons follow module_feature_action
- Compile check: starts the front-end dev server, waits for webpack compilation, fixes syntax issues, and outputs a file list

Boundaries

This is a project-specific front-end tool, not a general-purpose React assistant. It only handles pages, routes, Mock data, and component styling in the target front-end project. It does not generate backend controllers, services, DAOs, database configuration, or @/api/xxx imports. Non-list pages do not receive Mock data, and new routes or permission codes still need to be registered in the backend permission system. It is best used by front-end developers to produce prototype pages, integration pages, and basic CRUD views inside an existing project.

Use Cases

  • Front-end receives a product screenshot and needs a list page with filters, pagination, and an export button.
  • An existing table column, status tag, or action column violates Ant Design conventions and needs unified rendering.
  • A new front-end route and permission button are required without changing backend_transaction code.
  • A list page needs 15 Mock records to verify filtering, pagination, and loading behavior.

Best For

  • Front-end engineers maintaining aheadofcow_web: generate compilable React pages from UI screenshots.
  • React developers iterating on SCP modules: add list pages, routes, Mock data, import/export components.
  • Front-end developers building integration prototypes: run page interactions with hard-coded Mock data.
  • Ant Design interface developers: standardize table columns, buttons, pagination, and permission buttons.