Xpersona
G

glmv-prd-to-app

CLAWHUB · Unverified

Build a complete, production-ready full-stack web application from PRD documents, prototype images, and resource files. Handles the entire pipeline: system d... Skill: glmv-prd-to-app Owner: zai-org Summary: Build a complete, production-ready full-stack web application from PRD documents, prototype images, and resource files. Handles the entire pipeline: system d... Tags: latest:1.0.1 Version history: v1.0.1 | 2026-03-30T03:58:42.203Z | user - Renamed the skill from "prd-to-app" to "glmv-prd-to-app" throughout documentation. - Updated all major documentation sections to use

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s173sh1fb6z7xwvxgf5n3z6sdd83sddy:glmv-prd-to-app
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-zai-org-glmv-prd-to-app/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

46,649 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: glmv-prd-to-app
description: >
  Build a complete, production-ready full-stack web application from PRD documents,
  prototype images, and resource files. Handles the entire pipeline: system design,
  database schema, seed data, backend API, frontend UI, visual verification against
  prototypes, and deployment script generation.

  Use this skill whenever the user:
  - Provides a PRD (product requirement document) and wants a working app built
  - Says things like "根据PRD开发", "build from PRD", "implement this product",
    "把需求文档做成应用", "develop this app from requirements"
  - Has prototype images + requirements and wants full-stack implementation
  - Wants to turn product specifications into a running web application
  - Mentions building an app from wireframes/mockups combined with a requirements doc

  Trigger this skill even if the user just says "帮我开发" or "build this" with PRD
  materials present in the working directory.
---

# GLM-V PRD-to-App: Full-Stack Application Builder

> **Language**: Respond in the same language the user uses. Code comments should match.

Build a complete, deployed web application from PRD + prototypes + resources.
The result must be fully reproducible via a single `bash /workspace/start.sh`.

---

## Phase 0: Material Discovery & Analysis

Before anything else, understand what you're working with.

### 0a. Locate all inputs

```
/workspace/prd.md              ← Product requirement document
/workspace/prototypes/*.jpg    ← UI prototype images (the visual truth)
/workspace/resources/**/*      ← Images, videos, icons, and other assets
```

If the materials are in a different location, adapt accordingly. Read the PRD fully.

### 0b. Deep prototype analysis

For **every** prototype image:

1. **Read each image** using the Read tool — you are multimodal, examine them directly.
2. For each image, document:
   - **Page identity**: which page/view this represents
   - **Layout structure**: header, sidebar, main content, footer, modals
   - **Component inventory**: every button, form, card, table, list, nav element
   - **Content inventory**: all visible text, numbers, labels, placeholder content
   - **Color extraction**: primary, secondary, accent, background, text colors (hex values)
   - **Typography**: font sizes, weights, hierarchy observed
   - **Interactive states**: hover effects, active tabs, selected items, toggles
   - **Data patterns**: what data populates lists/tables/cards — this drives seed data

3. Build a **page map** showing navigation flow between prototype pages.

### 0c. Resource inventory

List all files in `/workspace/resources/` and map each to where it appears in the prototypes.
Every resource file must be used in the final application where relevant.

---

## Phase 1: System Design Document

Produce a comprehensive design document at `/workspace/docs/design.md`.

### 1a. Data Model

For each entity, specify:
- Table/collection name
- All fields with types, constraints, defaults
- Relations

_meta.json

{
  "ownerId": "kn7cwqh4gqz0k6gq21k89yjkrd83618x",
  "slug": "glmv-prd-to-app",
  "version": "1.0.1",
  "publishedAt": 1774843122203
}

references/seed_data_guide.md

# Seed Data Generation Guide

Seed data is the bridge between static prototypes and a living application. Poor seed data
makes even a well-built app look broken. Great seed data makes it look production-ready.

## Extraction Process

### Step 1: Content Transcription

For each prototype image, extract ALL visible content:

**Text content:**
- Page titles and headings
- Navigation menu items
- Button labels
- Form field labels and placeholder text
- Table headers and cell values
- Card titles, descriptions, prices
- Status labels, tags, badges
- Footer text
- Any visible numbers, dates, percentages

**Visual content:**
- Number of items in lists/grids (exact count)
- Image descriptions (what each image shows)
- Icon types used
- Color-coded status indicators

### Step 2: Data Modeling

Map extracted content to database entities:

```
Prototype Card "iPhone 15 Pro - ¥8999 - 128GB"
  → products table:
    name: "iPhone 15 Pro"
    price: 8999.00
    spec: "128GB"
    image: "resources/iphone15pro.jpg"  (if exists)
```

### Step 3: Relationship Building

- If a product card shows a category badge, create the category and link them
- If a user avatar appears next to a comment, create the user and the comment
- If a table shows order status, create orders with the matching statuses

### Step 4: Volume Matching

- If the prototype shows 8 product cards, create exactly 8 products
- If a pagination shows "1-10 of 47", create 47 items
- If a sidebar shows 5 categories, create exactly 5 categories

## Common Patterns

### E-commerce
```json
{
  "categories": ["Electronics", "Clothing", "Home", "Sports"],
  "products": [
    {
      "name": "Exact name from prototype",
      "price": "Exact price from prototype",
      "image": "resources/product1.jpg or matching resource file",
      "description": "Description visible in prototype or inferred",
      "category": "Matching category from prototype filter"
    }
  ]
}
```

### Dashboard
```json
{
  "stats": {
    "total_users": 12847,    // exact number from prototype stat card
    "revenue": "¥2,384,500", // exact from prototype
    "growth": "+12.5%"       // exact from prototype
  },
  "chart_data": [...],       // data that would produce the chart shape shown
  "recent_activity": [...]   // exact items from activity list
}
```

### Content/Blog
```json
{
  "posts": [
    {
      "title": "Exact title from prototype",
      "excerpt": "Exact preview text visible",
      "author": "Name shown on prototype",
      "date": "Date shown on prototype",
      "cover_image": "resources/blog1.jpg",
      "tags": ["tag1", "tag2"]  // tags visible on prototype
    }
  ]
}
```

## Quality Checks

Before finalizing seed data:
- [ ] Every visible text in prototypes has a corresponding data entry
- [ ] Item counts match prototype exactly
- [ ] All resource files are referenced somewhere
- [ ] Relationships are consistent (no orphan foreign keys)
- [ ] Dates are realistic and consistent
- [ ] Numbers/statistics match prot

references/visual_verification_guide.md

# Visual Verification Guide

## Why Visual Verification Matters

The single biggest quality differentiator is whether the built app actually looks like the
prototype. Without systematic comparison, it's easy to accumulate small differences that
collectively make the app feel "off".

## Comparison Methodology

### 1. Side-by-Side Reading

Read both images (prototype and screenshot) using the Read tool. For each, examine:

**Layout Grid (most impactful)**
- Is the overall page structure correct? (sidebar width, header height, content area)
- Are sections in the right order vertically?
- Are columns the right width proportionally?

**Color Palette**
- Background colors match?
- Primary action color matches?
- Text colors match (headings vs body text)?
- Border/divider colors match?

**Typography Hierarchy**
- Heading sizes look proportionally correct?
- Body text size reasonable?
- Font weight variations match? (bold headings, regular body)

**Spacing**
- Card padding looks similar?
- Gaps between elements proportional?
- Page margins match?

**Component Details**
- Button shapes (rounded? square? pill?)
- Card shadows present?
- Border radius consistency?
- Icon presence and placement?

### 2. Priority Matrix

Fix issues in this order:
1. **Critical**: Wrong layout structure, missing sections, broken content
2. **High**: Wrong colors, missing components, data not loading
3. **Medium**: Spacing differences, typography mismatches
4. **Low**: Shadow differences, border radius, minor alignment

### 3. Iteration Limit

Max 3 visual fix iterations per page:
- Iteration 1: Fix critical and high-priority issues
- Iteration 2: Fix medium-priority issues
- Iteration 3: Polish remaining differences

After 3 iterations, move on. Diminishing returns set in quickly.

## Common Discrepancies and Fixes

### Layout is wrong
- Check if using flexbox/grid correctly
- Verify container max-width
- Check sidebar width (usually 240-280px)
- Check header height (usually 56-72px)

### Colors don't match
- Extract hex values from prototype more carefully
- Check if using transparency/opacity where prototype doesn't
- Verify background colors on nested elements

### Content is missing
- Check if API is returning all data
- Verify seed data has all items
- Check if conditional rendering is hiding elements

### Images not showing
- Verify image paths are correct
- Check if static file serving is configured
- Ensure resource files are copied to public directory

### Spacing feels off
- Use browser dev tools values as reference (8px grid system)
- Check if using margin vs padding correctly
- Verify gap values in flex/grid containers

## Screenshot Capture Tips

When using render_page.py:
- Use `--width 1280` for desktop views (matches most prototype widths)
- Use `--width 375` for mobile views
- Use `--wait 3` if the page has animations or lazy loading
- Use `--full-page` to capture the entire scrollable page
- Use `--routes /,/products,/about` to batch-capture all pages

skill-card.md

## Description:

Build a complete, production-ready full-stack web application from PRD documents, prototype images, and resource files.

This skill is ready for commercial/non-commercial use.

## Publisher:

[zai-org](https://clawhub.ai/user/zai-org)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to turn PRDs, prototype images, and resource files into runnable full-stack web applications with design documentation, seed data, backend APIs, frontend UI, verification checks, and a startup script.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill may ask an agent to install dependencies, reset data, start services, or auto-install browser tooling.

Mitigation: Use it in a disposable or version-controlled workspace and review generated start.sh before running it, especially commands that change data, install packages, or start services.

Risk: PRDs, prototypes, or generated applications may include secrets or private customer data.

Mitigation: Redact sensitive data before use and avoid providing real secrets or private customer data unless the workspace and generated outputs are approved for that data.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/zai-org/skills/glmv-prd-to-app)
- [Seed Data Generation Guide](references/seed_data_guide.md)
- [Visual Verification Guide](references/visual_verification_guide.md)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Files]

**Output Format:** [Markdown guidance, generated application source files, configuration, shell commands, and scripts]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May create a complete workspace including docs/design.md, README.md, backend and frontend code, seed data, screenshots, and start.sh.]

## Skill Version(s):

1.0.1 (source: release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to glmv-prd-to-app and adjacent AI workflows.