xiaohongshu
xiaohongshu
landing-page-marketing
Automate landing page updates and marketing asset capture following established patterns
Full skill instructions
This skill automates the complete workflow for updating the Saberloop landing page and capturing marketing assets. It consolidates screenshot capture, image processing, HTML updates, and deployment into a standardized process.
saberloop.com/
├── index.html # Landing page (from ./landing/)
├── app/ # PWA application
├── app-staging/ # Staging PWA
└── [other endpoints]
./landing/
├── index.html # Main landing page HTML
├── images/ # Landing page images (304x584 for mobile screenshots)
│ ├── demo.webm
│ ├── landing-*.png
│ └── party-demo.webm
└── [deployed to root]
Use this skill when ANY of these are true:
| Section | Location (lines) | Purpose |
|---|---|---|
| Hero | ~668-694 | Main headline, video demo, primary CTAs |
| Features | ~697-733 | Feature cards grid (6-7 cards) |
| Party Mode | ~736-759 | Dedicated party mode section |
| How It Works | ~762-788 | 4-step process explanation |
| Screenshots | ~791-803 | App screenshot gallery |
| Share Section | ~806-819 | Social sharing preview |
| CTA | ~822-848 | Final call-to-action columns |
| Footer | ~851-862 | Links and copyright |
File: tests/e2e/capture-[feature]-screenshots.spec.js
import { test, expect } from '@playwright/test';
import { setupAuthenticatedState, clearSessions } from './helpers.js';
const MOBILE_VIEWPORT = { width: 375, height: 667 };
const SCREENSHOT_DIR = 'landing/images';
test.use({ viewport: MOBILE_VIEWPORT });
test.describe('Capture [Feature] Screenshots', () => {
test('[Feature] screenshot', async ({ page }) => {
// Setup authenticated state if needed
await setupAuthenticatedState(page);
await clearSessions(page);
await page.reload();
await page.waitForSelector('[data-testid="welcome-heading"]', { timeout: 10000 });
// Navigate to the screen to capture
await page.goto('/#/[route]');
await page.waitForTimeout(500);
// Setup the UI state (scroll, open modals, etc.)
// ...
// Capture screenshot
await page.screenshot({
path: `${SCREENSHOT_DIR}/landing-[feature-name].png`,
fullPage: false
});
console.log('✓ Captured: [Feature] screenshot');
});
});
# Run with visible browser
npx playwright test tests/e2e/capture-[feature]-screenshots.spec.js --headed
# Or run all capture scripts
npm run test:e2e:capture
# Resize to landing page dimensions (304x584)
# Option 1: Using Sharp CLI
npx sharp-cli landing/images/landing-[feature].png -o landing/images/landing-[feature].png resize 304 584
# Option 2: Using ImageMagick
convert landing/images/landing-[feature].png -resize 304x584 landing/images/landing-[feature].png
# Verify file size (should be <50KB for fast loading)
ls -la landing/images/landing-[feature].png
Location: Features grid in landing/index.html (~line 700)
<!-- Add after existing feature cards -->
<div class="feature-card">
<div class="feature-icon">[EMOJI]</div>
<h3>[Feature Name]</h3>
<p>[Short description - 1-2 sentences]</p>
</div>
Available emojis for consistency:
Location: CTA columns in landing/index.html (~line 822)
<div class="cta-column">
<h3>[Column Title]</h3>
<ul>
<li>[Benefit 1]</li>
<li>[Benefit 2]</li>
<li>[Benefit 3]</li>
<li>[Benefit 4]</li>
</ul>
<a href="[URL]" class="btn btn-secondary" data-track="[tracking_id]">[Button Text]</a>
</div>
Location: Screenshots grid in landing/index.html (~line 794)
<img src="images/landing-[feature].png"
alt="[Descriptive alt text]"
width="304" height="584"
loading="lazy">
Location: JSON-LD in <head> (~line 52)
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "Saberloop",
"description": "[Updated description including new feature]",
"featureList": [
"AI-powered quiz generation",
"[New feature description]",
"Multi-language support",
"Offline mode",
"Party Mode multiplayer"
]
}
# Serve landing page locally
npx serve landing -p 8080
# Or use Python
cd landing && python -m http.server 8080
Test at these breakpoints:
# Use Playwright for responsive screenshots
npx playwright test tests/e2e/capture-landing-responsive.spec.js
# Build and deploy to staging first
npm run deploy:landing -- --staging
# Staging URL: https://saberloop.com/staging/ (if configured)
# Or test via: https://saberloop.com/app-staging/
Checklist:
# Deploy landing page to production
npm run deploy:landing
# Production URL: https://saberloop.com/
# Clear CDN cache if needed (depends on hosting)
# Verify in incognito/private browsing
# Test on actual mobile device
<div class="feature-card">
<div class="feature-icon">🤖</div>
<h3>Feature Name</h3>
<p>Brief description of the feature benefit to users. Keep it to 1-2 sentences.</p>
</div>
<a href="/app/" class="btn btn-primary" data-track="[tracking_id]">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<!-- SVG path here -->
</svg>
Button Text
</a>
import { test, expect } from '@playwright/test';
import { setupAuthenticatedState, clearSessions } from './helpers.js';
const MOBILE_VIEWPORT = { width: 375, height: 667 };
const SCREENSHOT_DIR = 'landing/images';
test.use({ viewport: MOBILE_VIEWPORT });
test.describe('Capture Screenshots for Landing Page', () => {
test.beforeEach(async ({ page }) => {
await setupAuthenticatedState(page);
await clearSessions(page);
await page.reload();
await page.waitForSelector('[data-testid="welcome-heading"]', { timeout: 10000 });
});
test('Screenshot 1: [Description]', async ({ page }) => {
await page.goto('/#/[route]');
await page.waitForTimeout(500);
// Setup UI state...
await page.screenshot({
path: `${SCREENSHOT_DIR}/landing-[name].png`,
fullPage: false
});
console.log('✓ Captured: [Description]');
});
});
.feature-card {
background: var(--background-light); /* #252542 */
padding: 32px;
border-radius: 20px;
text-align: center;
}
.feature-icon {
font-size: 3rem;
margin-bottom: 16px;
}
.feature-card h3 {
font-size: 1.25rem;
margin-bottom: 12px;
}
.feature-card p {
color: var(--text-muted); /* #a0a0b0 */
font-size: 0.95rem;
}
.btn {
padding: 16px 32px;
border-radius: 50px;
font-weight: 600;
font-size: 1rem;
text-decoration: none;
}
.btn-primary {
background: var(--primary); /* #FF6B35 */
color: white;
}
.btn-secondary {
background: var(--background-light);
color: var(--text);
border: 2px solid var(--background-light);
}
:root {
--primary: #FF6B35;
--primary-dark: #e55a2b;
--background: #1a1a2e;
--background-light: #252542;
--text: #ffffff;
--text-muted: #a0a0b0;
}
All clickable elements should have data-track attribute:
<a href="/app/" data-track="web_app_hero">Try in Browser</a>
Events are automatically tracked via the script at the bottom of the landing page:
document.addEventListener('click', function(e) {
const trackable = e.target.closest('[data-track]');
if (trackable && typeof gtag === 'function') {
gtag('event', trackable.dataset.track, {
'event_category': 'engagement',
'event_label': trackable.dataset.track
});
}
});
| Type | Dimensions | Format | Max Size | Location |
|---|---|---|---|---|
| App Screenshot | 304x584 | PNG | 50KB | landing/images/ |
| Demo Video | 375x667 | WebM | 500KB | landing/images/ |
| Hero Video | 300x600 | WebM | 500KB | landing/images/ |
# Landing page only
npm run deploy:landing
# With staging flag (if configured)
npm run deploy:landing -- --staging
# Full app + landing
npm run deploy && npm run deploy:landing
data-track attribute existsThis skill integrates with:
tests/e2e/capture-landing-assets.spec.jstests/e2e/capture-playstore-screenshots.spec.jstests/e2e/capture-party-demo.spec.jsVersion: 1.0.0 Last Updated: 2026-01-23 Compatible with: Saberloop v2.0.0+
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience