Skip to content

webkubor/ui-craft / skills/frontend-e2e

frontend-e2e

Verified

前端页面'完成/对齐 PRD/可移待验证'的浏览器结构化验收——使用当前环境浏览器与可用遥测取证,逐区逐字段逐交互 diff,禁止关键词命中当验证。触发条件: 声称某前端页做完/对齐原型、移待验证前、验收 UI。触发词: 验收、对齐 PRD、移待验证、页面做完了、浏览器验证、E2E、UI 验证。

FileKindSize
SKILL.mdskill md4.7 KB
references/cf-pages-vite-env-debug.mdmarkdown2.5 KB
scripts/page-check.cjsscript933 B

scripts/page-check.cjs

View on GitHub
const { spawnSync } = require('node:child_process');

// Usage: node page-check.cjs <URL>
// 诊断「页面访问不了」:加载页面、抓 console 错误、网络 404、截图

const url = process.argv[2];
if (!url) { console.error('Usage: node page-check.cjs <URL>'); process.exit(1); }

const egoProgram = `
const task = await useOrCreateTaskSpace('frontend page check')
await openOrReuseTab(${JSON.stringify(url)}, { wait: true, timeout: 30 })
cliLog('PAGE: ' + JSON.stringify(await pageInfo()))
cliLog('\\nPAGE_TEXT:\\n' + (await snapshotText()).slice(0, 1500))
cliLog('\\nEVENTS:\\n' + JSON.stringify(await drainEvents(), null, 2).slice(0, 4000))
cliLog('\\nSCREENSHOT: ' + await captureScreenshot())
await completeTaskSpace(task.id, { keep: false })
`;

const result = spawnSync('ego-browser', ['nodejs'], { input: egoProgram, encoding: 'utf8', stdio: ['pipe', 'inherit', 'inherit'] });
process.exit(result.status || 0);
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 197kUpdated Claude CodeCodexVerifiedInstall