بنقرة واحدة
build-extension
Build, test, and package VSCode extensions in the dart_node repo
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Build, test, and package VSCode extensions in the dart_node repo
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Builds all artifacts for this repo. Use when the user asks to build, compile, or produce artifacts, or when verifying that the project compiles cleanly.
Prepares the current branch for CI by running the exact same checks locally, fixing issues at each step. Use before pushing a branch or when the user wants to verify the branch will pass CI.
Searches for duplicate code, duplicate tests, and dead code, then safely merges or removes them. Use when the user says "deduplicate", "find duplicates", "remove dead code", "DRY up", or "code dedup". Requires test coverage — refuses to touch untested code.
Fix a bug using test-driven development. Use when the user reports a bug, describes unexpected behavior, wants to fix a defect, or says something is broken. Enforces a strict test-first workflow where a failing test must be written and verified before any fix is attempted.
Formats all code in this repo using dart format. Use when the user asks to format code, fix formatting, or before committing changes.
Runs all linters and format checks, then fixes any issues found. Use when the user asks to lint, check code quality, or fix linting errors.
استنادا إلى تصنيف SOC المهني
| name | build-extension |
| description | Build, test, and package VSCode extensions in the dart_node repo |
| argument-hint | [too-many-cooks|dart-node-vsix] [build|test|package|install] |
| disable-model-invocation | true |
| allowed-tools | Bash |
This repo has one VSCode extension component:
| Component | Location | What it is |
|---|---|---|
| dart_node_vsix | packages/dart_node_vsix/ | The SDK package — Dart bindings for the VSCode extension API (commands, tree views, webviews, status bar, etc.) |
Test the SDK (Dart tests compiled to JS, run in VSCode):
cd packages/dart_node_vsix && npm install && npm run compile && npm test
What it provides — Dart bindings for:
commands, window, workspace, statusBarTreeView, Webview, OutputChannelExtensionContext, DisposableMocha test API bindingsPromise, EventEmitter)Both use the same pattern: Dart → dart compile js → wrapper script → VSCode-compatible JS module.
The wrapper scripts (scripts/wrap-extension.js, scripts/wrap-tests.js) bridge dart2js output to VSCode's CommonJS require/module.exports system and inject polyfills (navigator, self) needed by dart2js async scheduling.