ui-demo
यह क्या करती है
यह टूल वेब एप्लिकेशन के प्रोफेशनल डेमो वीडियो बनाता है। यह दिखने वाले कर्सर और सही रफ़्तार के साथ आपकी स्क्रीन रिकॉर्ड करता है, जिससे वीडियो किसी प्रोफेशनल प्रेजेंटेशन जैसा लगता है।
कब इस्तेमाल करें
- ✓जब आप डेमो वीडियो, स्क्रीन रिकॉर्डिंग या ट्यूटोरियल बनवाना चाहते हैं।
- ✓जब आप किसी फीचर या काम के तरीके को वीडियो में दिखाना चाहते हैं।
- ✓जब आपको डॉक्यूमेंटेशन के लिए वीडियो चाहिए या दूसरों को दिखाना हो।
Skill का लिंक
https://github.com/affaan-m/ECC/blob/main/skills/ui-demo/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“एक वीडियो बनाओ जो दिखाए कि खरीद अनुरोध (purchase request) फॉर्म कैसे भरा जाता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल सबसे पहले पेज को देखकर उसके elements (फ़ील्ड्स, बटन आदि) समझता है। फिर बिना रिकॉर्ड किए स्टेप्स का रिहर्सल करता है ताकि पक्का हो जाए कि सब कुछ सही चलेगा। आख़िर में एक कहानी के क्रम में वीडियो रिकॉर्ड करता है, बीच-बीच में स्वाभाविक ठहराव के साथ।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
UI Demo Video Recorder
Record polished demo videos of web applications using Playwright's video recording with an injected cursor overlay, natural pacing, and storytelling flow.
When to Use
- User asks for a "demo video", "screen recording", "walkthrough", or "tutorial"
- User wants to showcase a feature or workflow visually
- User needs a video for documentation, onboarding, or stakeholder presentation
Three-Phase Process
Every demo goes through three phases: Discover -> Rehearse -> Record. Never skip straight to recording.
Phase 1: Discover
Before writing any script, explore the target pages to understand what is actually there.
Why
You cannot script what you have not seen. Fields may be <input> not <textarea>, dropdowns may be custom components not <select>, and comment boxes may support @mentions or #tags. Assumptions break recordings silently.
How
Navigate to each page in the flow and dump its interactive elements:
// Run this for each page in the flow BEFORE writing the demo script
const fields = await page.evaluate(() => {
const els = [];
document.querySelectorAll('input, select, textarea, button, [contenteditable]').forEach(el => {
if (el.offsetParent !== null) {
els.push({
tag: el.tagName,
type: el.type || '',
name: el.name || '',
placeholder: el.placeholder || '',
text: el.textContent?.trim().substring(0, 40) || '',
contentEditable: el.contentEditable === 'true',
role: el.getAttribute('role') || '',
});
}
});
return els;
});
console.log(JSON.stringify(fields, null, 2));
What to look for
- Form fields: Are they
<select>,<input>, custom dropdowns, or comboboxes? - Select options: Dump option values AND text. Placeholders often have
value="0"orvalue=""which looks non-empty. UseArray.from(el.options).map(o => ({ value: o.value, text: o.text })). Skip options where text includes "Select" or value is"0". - Rich text: Does the comment box support
@mentions,#tags, markdown, or emoji? Check placeholder text. - Required fields: Which fields block form submission? Check
required,*in labels, and try submitting empty to see validation errors. - Dynamic content: Do fields appear after other fields are filled?
- Button labels: Exact text such as
"Submit","Submit Request", or"Send". - Table column headers: For table-driven modals, map each
input[type="number"]to its column header instead of assuming all numeric inputs mean the same thing.
Output
A field map for each page, used to write correct selectors in the script. Example:
/purchase-requests/new:
- Budget Code: <select> (first select on page, 4 options)
- Desired Delivery: <input type="date">
- Context: <textarea> (not input)
- BOM table: inline-editable cells with span.cursor-pointer -> input pattern
- Submit: <button> text="Submit"
/purchase-requests/N (detail):
- Comment: <input placeholder="Type a message..."> supports @user and #PR tags
- Send: <button> text="Send" (disabled until input has content)
Phase 2: Rehearse
Run through all steps without recording. Verify every selector resolves.
Why
Silent selector failures are the main reason demo recordings break. Rehearsal catches them before you waste a recording.
How
Use ensureVisible, a wrapper that logs and fails loudly:
async function ensureVisible(page, locator, label) {
const el = typeof locator === 'string' ? page.locator(locator).first() : locator;
const visible = await el.isVisible().catch(() => false);
if (!visible) {
const msg = `REHEARSAL FAIL: "${label}" not found - selector: ${typeof locator === 'string' ? locator : '(locator object)'}`;
console.error(msg);
const found = await page.evaluate(() => {
return Array.from(document.querySelectorAll('button, input, select, textarea, a'))
.filter(el => el.offsetParent !== null)
.map(el => `${el.tagName}[${el.type || ''}] "${el.textContent?.trim().substring(0, 30)}"`)
.join('\n ');
});
console.error(' Visible elements:\n ' + found);
return false;
}
console.log(`REHEARSAL OK: "${label}"`);
return true;
}
Rehearsal script structure
const steps = [
{ label: 'Login email field', selector: '#email' },
{ label: 'Login submit', selector: 'button[type="submit"]' },
…
अक्सर पूछे जाने वाले सवाल
'Playwright' क्या है?
यह एक ऐसा टूल है जो वेब ब्राउज़र में काम अपने-आप करवा सकता है, जैसे बटन क्लिक करना या फॉर्म भरना, ताकि वीडियो या टेस्ट बनाए जा सकें।
'polished' का क्या मतलब है?
इसका मतलब है कि वीडियो प्रोफेशनल लुक वाला होगा, जिसमें कर्सर साफ़ दिखेगा और रफ़्तार न बहुत तेज़ होगी न बहुत धीमी।
रिकॉर्ड करने से पहले रिहर्सल क्यों?
ताकि पक्का हो जाए कि टूल को जिन बटनों और फ़ील्ड्स से काम करना है, वे सही तरीके से मिल रहे हैं। रिहर्सल में कुछ गड़बड़ हो तो वीडियो ठीक से रिकॉर्ड नहीं हो सकता।
जानकारी
लेखक का मूल विवरण
Record polished UI demo videos using Playwright. Use when the user asks to create a demo, walkthrough, screen recording, or tutorial video of a web application. Produces WebM videos with visible cursor, natural pacing, and professional feel.
repo: affaan-m/ECC
लोकप्रियता
- GitHub स्टार
- 280k
- रैंकिंग में स्थान
- #427
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
accessibility
280kयह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।
agent-architecture-audit
280kयह आपके एजेंट को जाँचने देता है कि सब कुछ सही से चल रहा है। यह AI सिस्टम में समस्याएँ ढूँढकर ठीक करता है, ताकि वे उम्मीद के मुताबिक काम करें।
agent-eval
280kयह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।
agent-harness-construction
280kयह आपके एजेंट को काम कैसे करना है, यह बेहतर समझने में मदद करता है। यह उन tools और instructions को बेहतर बनाता है जिनका एजेंट इस्तेमाल करता है, ताकि उसकी सफलता की संभावना बढ़े।
मिलती-जुलती skills
ai-presenter-video
260kकिसी विषय या स्क्रिप्ट और आपकी इस्तेमाल करने की अनुमति वाली एक प्रस्तुतकर्ता तस्वीर से, नैरेशन और कैप्शन के साथ तैयार बोलता प्रस्तुतकर्ता वीडियो बनाती है।
brag-slim
260kआपके एजेंट को किसी प्रोजेक्ट या वेबसाइट के लिए असली इंटरफ़ेस, फ़ॉन्ट और संसाधनों का दोबारा इस्तेमाल करके, संगीत और ध्वनि के साथ, एक छोटा लॉन्च वीडियो बनाने देती है।
kanban-video-orchestrator
260kएक वीडियो प्रोजेक्ट को AI एजेंट्स की टीम के रूप में योजना बनाती है, जहां हर एक दृश्य, संगीत या संपादन जैसा एक हिस्सा संभालता है, छोटे टीज़र से लंबी कहानी तक।