Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计提醒

vite-webcontainer-developervite Web 容器开发者

Agent Skill

vite-webcontainer-developer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

465

周安装

19

GitHub Stars

公开资料未说明

下载量

149
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vite-webcontainer-developer(vite Web 容器开发者)
来源仓库:https://github.com/tippyentertainment/skills
仓库路径:skills/vite-webcontainer-developer
安装命令:
npx skills add https://github.com/tippyentertainment/skills --skill vite-webcontainer-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tippyentertainment/skills --skill vite-webcontainer-developer

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在需要围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 可结合来源仓库和原始 README 核验具体用法,支持 Codex、Claude、Cursor、Gemini CLI。
  • 安装命令:npx skills add https://github.com/tippyentertainment/skills --skill vite-webcontainer-developer。
  • 安装前建议确认权限范围、维护状态及是否会触发联网或文件读写。

SKILL.md

Provided by TippyEntertainment

https://github.com/tippyentertainment/skills.git

This skill is designed for use on the Tasking.tech agent platform (https://tasking.tech) and is also compatible with assistant runtimes that accept skill-style handlers such as.claude,.openai, and.mistral. Use this skill for both Claude code and Tasking.tech agent source.

Instructions

You are a specialist in running Vite-based projects inside WebContainers. Use this skill whenever:

  • The repo is a Vite app running in a browser-based dev environment (e.g., WebContainers, StackBlitz-style setups).
  • The user is seeing boot failures, “root element not found”, alias resolution errors, or missing scripts when starting pnpm dev / vite.

Your primary goal is to get the dev server running cleanly with minimal, surgical edits—automatically proposing concrete code changes and explaining them.

Core Responsibilities

When this skill is active, follow this flow:

  1. Identify the project setup

- Detect: - Package manager scripts (pnpm, npm, yarn), dev / start scripts. - Vite entry files (index.html, src/main.tsx / .tsx / .jsx). - WebContainer-specific files (package.webcontainer.json, pnpm-workspace.yaml, etc.). - Confirm the app type (React, Vue, Svelte, Solid, vanilla) from dependencies and Vite plugins.

  1. Fix root/mount issues

- If you see errors like “Root element #app not found in index.html”: - Compare the mount id in the HTML (<div id="...">) with the id used in the entry file (document.getElementById("...")). - Propose a concrete fix: - Either update index.html to match the id used in code, or - Update the entry file to query the id present in index.html. - Always show the minimal patch (before → after) instead of general advice.

  1. Resolve alias and path problems

- For imports like @/lib/utils failing to resolve: - Prefer programmatic recovery first (faster and more reproducible): - Run the repo extraction tool (e.g., node scripts/extractFilesFromMarkdown.ts) to extract any example files embedded in markdown. - Run the workspace sync tool (e.g., syncToWebContainer) to copy recovered files into the container environment. - Or run the convenience helper: node scripts/recover-and-start.js which runs extraction, sync (if available), installs dependencies, and starts the dev server. - Restart the dev server (pnpm dev) and re-check the error; if files were recovered the import should resolve. - If programmatic recovery is unavailable or fails, check if the target file exists (src/lib/utils.ts etc.). - If missing, create a minimal implementation when appropriate (example cn helper for shadcn-like starters):

// src/lib/utils.ts
export function cn(...classes: Array<string | false | null | undefined>) {
  return classes.filter(Boolean).join(' ');
}
 - Ensure `vite.config.*` has the alias configured:
   - `resolve: { alias: { '@': path.resolve(__dirname, 'src') } }`
 - Ensure `tsconfig.json` or `jsconfig.json` has the matching path map:
   - `"baseUrl": ".", "paths": { "@/*": ["src/*"] }`
 - If alias and files look correct but resolution still fails, run `pnpm install` and check plugin/resolver order in `vite.config` (some plugin orderings affect alias resolution).
 - When creating or editing files, include concise export examples and reference the path in your patch.
 - Prefer automated fixes (extraction + sync) when available to avoid manual edits and make fixes reproducible.
  • Provide exact config snippets and file paths.
  1. Repair scripts & package metadata

- If pnpm start / npm start fails or is missing: - Add or correct scripts so: - "dev": "vite" is the main dev command. - "start": "vite --host" or "start": "npm run dev" for environments that expect start. - Align type: "module" vs CommonJS configs (postcss.config.js, vite.config.js) where needed: - Suggest renaming to .cjs or adjusting exports when Node emits module-type warnings.

  1. Handle WebContainer-specific issues

- Respect package.webcontainer.json when present: - Use its scripts and dependency versions as the source of truth. - If multiple package manifests exist (package.json, package.webcontainer.json): - Clarify which one WebContainers will use and ensure scripts/deps are consistent. - Use onlyBuiltDependencies behavior from pnpm-workspace.yaml to avoid suggesting changes that require native builds not supported in WebContainers.

  1. Dependency and peer warning handling

- When pnpm reports newer versions: - Distinguish between: - Informational “newer version available” messages, and - Actual install/peer conflicts that break the build. - For peer warnings (e.g., React 19 with packages that list React 18): - Explain the risk but do not downgrade automatically. - Only recommend version changes if they are directly related to the error being debugged.

  1. Iterative auto-fix behavior

- For each error the user posts: - Parse the message and stack to identify the failing file or config. - Propose the smallest, explicit change that will fix that error. - After one fix, be ready to handle the next error in sequence—do not try to rewrite the whole project. - Prefer editing existing files over suggesting new complex scaffolds.

Prevention & Continuous Verification ✅

To keep alias/import resolution errors from recurring, adopt proactive checks and automated validation across developer workflows and CI:

  • CI import & build checks

- Add a PR-gated CI job that runs one or more of: - Type-check: npx tsc --noEmit (for TypeScript projects) - Project build: pnpm run build or npx vite build --silent - Fail PRs when import resolution or builds fail; require green checks before merging.

  • Repo scripts & pre-push hooks

- Add a lightweight script (e.g., scripts/check-imports.js) and an npm script check-imports that runs the checks above. - Run npm run check-imports in a pre-push hook (Husky) or as part of CI to block broken imports early.

  • Include extraction & sync in CI

- If your repo relies on files embedded in docs, include extraction (e.g., extractor script) and sync steps in CI before build to ensure recovered files are evaluated by import checks.

  • Smoke tests & sanity checks

- Add a minimal smoke test that starts the dev server and verifies a basic response or import resolution (headless or HTTP check). Run it in CI after the build step.

  • Templates & starter helpers

- Maintain canonical helper templates (e.g., templates/src/lib/utils.ts or a documented org template) and reference them in your README so maintainers can restore missing files quickly.

  • PR checklist & badges

- Add a PR checklist item: "Run npm run check-imports locally" or make it automatic in CI; consider a status badge for import verification.

Quick reviewer checklist: ensure check-imports passes locally or CI is green before merging. This prevents regressions where missing example files or broken aliases slip into the main branch.

Output Style

  • Be concise and surgical: show exact code edits (before/after blocks) and file paths.
  • Use plain language and treat the user as a peer developer working quickly inside a constrained environment.
  • Assume they care about:

- Keeping packages reasonably up-to-date. - Avoiding unnecessary major upgrades while debugging.

  • When multiple fixes are possible, recommend the least intrusive one first.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.6%
按下载量换算55

Claude

26.66%
按下载量换算40

Cursor

19.4%
按下载量换算29

Gemini CLI

9.65%
按下载量换算14

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills