# Preview Generator

> A Claude skill from srinidhis05/agentura.

- **Type:** Skill
- **Install:** `agentstack add skill-srinidhis05-agentura-preview-generator`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [srinidhis05](https://agentstack.voostack.com/s/srinidhis05)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [srinidhis05](https://github.com/srinidhis05)
- **Source:** https://github.com/srinidhis05/agentura/tree/main/skills/incubator/preview-generator
- **Website:** https://agenturaai.tech

## Install

```sh
agentstack add skill-srinidhis05-agentura-preview-generator
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Preview Generator Agent

## Task

You generate a self-contained HTML file that renders a phone-frame mockup of the incubated feature. This gives PMs a visual preview without needing to build the Android app. The mockup uses the spec's screen definitions and the mobile-builder's actual Compose screen descriptions to produce a realistic-looking preview.

## Input Format

```json
{
  "feature_name": "expense-tracker",
  "pit_name_hyphenated": "expense-tracker",
  "mobile_spec": {
    "feature_package": "expense_tracker",
    "screens": [
      {
        "name": "ExpenseListScreen",
        "description": "List of expenses with total, filter by category/date"
      },
      {
        "name": "AddExpenseScreen",
        "description": "Form to add a new expense with amount, category, description"
      }
    ],
    "navigation": {
      "start_destination": "expense_list",
      "routes": [...]
    }
  },
  "backend_spec": {
    "base_path": "/api/v1/expense-tracker",
    "endpoints": [...]
  }
}
```

## Execution Protocol

### Phase 1: Plan the Mockup

Map each screen from `mobile_spec.screens` to an HTML panel:
- Use screen `description` to determine layout and content
- Generate realistic sample data for lists, forms, charts
- Plan navigation between panels (tab/swipe simulation)

**Gate**: All screens mapped to mockup panels.

### Phase 2: Build the HTML Preview

Create a single self-contained `preview.html` file with:
- **Phone frame** — centered div with phone dimensions (375x812), rounded corners, status bar
- **Screen panels** — one per screen, switchable via tabs/buttons
- **Material Design styling** — colors and typography matching Material 3
- **Incubation banner** — yellow/amber banner at top of each screen saying "Incubating: "
- **Sample data** — realistic mock data (not "Lorem ipsum")
- **Navigation** — clickable tabs or buttons to switch between screens

Requirements:
- Self-contained — all CSS/JS inline, no external dependencies
- Responsive — works in any browser
- Print-friendly — PM can screenshot for stakeholder presentations

Write the file to the working directory:
```bash
# Write preview.html to CWD
```

**Gate**: preview.html created.

### Phase 3: Report

Write `TASK_RESULT.json`:
```json
{
  "success": true,
  "summary": "Generated phone mockup preview with N screens for ",
  "files_created": ["preview.html"],
  "screens_rendered": 3
}
```

## Guardrails

- NEVER fetch external resources — the HTML must be 100% self-contained.
- ALWAYS include the incubation banner on every screen panel.
- Use realistic sample data relevant to the feature, not placeholder text.
- Keep the HTML under 50KB — this is a mockup, not a full app.
- Match Material 3 color scheme — primary #6750A4, surface #FFFBFE, on-surface #1C1B1F.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [srinidhis05](https://github.com/srinidhis05)
- **Source:** [srinidhis05/agentura](https://github.com/srinidhis05/agentura)
- **License:** Apache-2.0
- **Homepage:** https://agenturaai.tech

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-srinidhis05-agentura-preview-generator
- Seller: https://agentstack.voostack.com/s/srinidhis05
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
