.agents/skills/bilibili-evolved-dev-server/SKILL.md
AGENTS.md and CONTRIBUTING.md before making repo changes.pnpm; do not use npm.pnpm tsx dev-tools/dev-server/index.ts
/registry/dist/components/<id>.js or /registry/dist/plugins/<id>.js may trigger build-on-request before serving the file.dist/, registry/dist/, and generated feature docs are not normal development changes.Use these commands when the dev server is already running:
pnpm tsx dev-tools/dev-server/command.ts sessions
pnpm tsx dev-tools/dev-server/command.ts build component style/hide/banner
pnpm tsx dev-tools/dev-server/command.ts build plugin video/player/speed
pnpm tsx dev-tools/dev-server/command.ts watch component style/hide/banner
pnpm tsx dev-tools/dev-server/command.ts stop component style/hide/banner
pnpm tsx dev-tools/dev-server/command.ts shutdown
build compiles one feature once without creating a watcher.watch starts or reuses one feature watcher.stop stops one watcher.sessions prints active watched feature paths.shutdown gracefully exits the dev server and its core and feature watchers. Prefer it over terminating the process tree externally.Create new registry component/plugin scaffolds through the dev server command:
$authorName = gh api user --jq ".login"
$authorLink = gh api user --jq ".html_url"
pnpm tsx dev-tools/dev-server/command.ts create component style/my-feature myFeature "My Feature" $authorName $authorLink "Feature description."
pnpm tsx dev-tools/dev-server/command.ts create plugin video/player/my-plugin myPlugin "My Plugin" $authorName $authorLink "Plugin description."
Before creating a feature, get the current GitHub user from gh with gh api user --jq ".login" and use that as authorName; get the profile URL with gh api user --jq ".html_url" and use that as authorLink. If gh is unavailable, not authenticated, or returns a blank value, ask the user for the GitHub username/profile link before running create. Do not use the code agent name, local OS username, or local Git user.name / user.email for author metadata.
After creation, inspect and edit the generated index.ts and index.md. Keep component/plugin names specific and camelCase, include author metadata for contributor-created features, and keep descriptions in index.md.
ws://localhost:<port>./registry/dist/... URL and relies on HTTP build-on-request.devRecords and auto-update URLs.pnpm run type.pnpm run lint-check.pnpm tsx dev-tools/dev-server/command.ts build <component|plugin> <id> while the dev server is running; the compiled output is served from memory.pnpm run build-core and pnpm run build-features are production CI or release validations. Run them locally only when explicitly requested, reproducing a CI failure, changing shared build infrastructure, or preparing a release.