port-vscode-extension

port-vscode-extension is a skill for Claude Code, Codex from H4D3ZS/vscodium-rust. It costs 62 tokens per session (899 once invoked), scanned A, original, MIT.

A procedure for converting a JavaScript or TypeScript VS Code extension into a Rust package that the target IDE can build and run in a sandbox. It checks the licence, maps supported VS Code APIs, and verifies the result against the original.

In plain words
What is it for?
Use it to inspect an extension, decide what can be ported, translate supported extension logic to Rust, preserve notices, build the package, and compare it with the original.
Why use it?
It replaces an ad hoc rewrite with defined checks for licensing, unsupported extension features, packaging, and behavioural differences.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect an extension, decide what can be ported, translate supported extension logic to Rust, preserve notices, build the package, and compare it with the original.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/h4d3zs/vscodium-rust/port-vscode-extension
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add H4D3ZS/vscodium-rust --skill port-vscode-extension
Clone the repo
git clone --depth 1 https://github.com/H4D3ZS/vscodium-rust

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for port-vscode-extension

README.md
[![agentmods](https://agentmods.dev/badge/skills/h4d3zs/vscodium-rust/port-vscode-extension/github.svg)](https://agentmods.dev/skills/h4d3zs/vscodium-rust/port-vscode-extension)
Your own site
<a href="https://agentmods.dev/skills/h4d3zs/vscodium-rust/port-vscode-extension"><img src="https://agentmods.dev/badge/skills/h4d3zs/vscodium-rust/port-vscode-extension/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for port-vscode-extension

Your own site · 80×15
<a href="https://agentmods.dev/skills/h4d3zs/vscodium-rust/port-vscode-extension"><img src="https://agentmods.dev/badge/skills/h4d3zs/vscodium-rust/port-vscode-extension.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 899 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00899
Opus 5.5 $0.00025 $0.00360
Sonnet 5.5 $0.00012 $0.00180
Haiku 4.5 $0.00006 $0.00090

Measured yesterday against content hash 45b94e0f1c69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

port-vscode-extension scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

crates/engine/bundles/dev-skills/port-vscode-extension/SKILL.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Port a VS Code extension to .rs-vsix

A .rs-vsix is a zip of Rust source (Cargo package using crates/extension-sdk) plus extension.toml; the IDE builds it locally and runs it sandboxed. Docs: docs/porting-extensions.md, docs/extensions.md. Template: examples/hello-extension-rs.

1. License (required)

Read package.json license and LICENSE. Port only permissive licenses (MIT, Apache-2.0, BSD, ISC, MPL). GPL/AGPL, unlicensed or proprietary: stop and report. Keep the original copyright: copy LICENSE, add a NOTICE line naming upstream and version, record it in PORTING.md.

2. Read and classify

Read package.json (main, activationEvents, contributes) and the TS/JS main reaches; list every vscode.* use.

  • Data only (themes, icon themes, grammars, snippets, language configuration, keybindings), no main: no port, tier 1 (Open VSX). Stop.
  • Only launches a language server: no port, tier 2 (LSP). Stop.
  • Logic in the vscode API: port it.
  • Webviews, terminal API, debug adapters, SCM providers, notebooks: unsupported; port the rest and list these.

3. Scaffold

Copy examples/hello-extension-rs: extension-sdk = "0.1", #[extension] fn activate(ctx: &mut Context) -> Result<(), String> in src/main.rs, and extension.toml (id, version, publisher, bin, capabilities, activation_events).

4. Map

VS Code SDK (ctx: &mut Context, api: &mut Api) Capability
commands.registerCommand ctx.command(id, title, |api| ...) none
window.show*Message api.notify(Level::..., msg) none
status bar item ctx.status_item(id, text, Some(tooltip)) none
completion provider ctx.on_complete(|api, path, line, col| ...) language-features
hover provider ctx.on_hover(|api, path, line, col| ...) language-features
diagnostic collection api.publish_diagnostics(path, diags) language-features
workspace.fs api.read_file / api.write_file (workspace-relative) workspace-read / workspace-write
getConfiguration().get api.setting(key) settings-read
fetch api.http_get(url) http

Read the full file on GitHub · 54 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 54 lines · 62 tokens per session scan A 45b94e0f1c69

Subscribe to this mod's changes

port-vscode-extension is a skill published in the GitHub repository H4D3ZS/vscodium-rust (257 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 899 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

port-vscode-extension compared with skills from other repositories

port-vscode-extension next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
port-vscode-extensionH4D3ZS/vscodium-rustSkill257todayMITA62Claude Code, Codex
ax-rust-signatureax-llm/axSkill3.0kyesterdayApache-2.0A36Claude Code, Codex
dd-code-generationDataDog/pupSkill1.1ktodayApache-2.0A16Claude Code
ax-rust-llmax-llm/axSkill3.0kyesterdayApache-2.0A37Claude Code, Codex
developing-the-cliPostHog/posthog-fossSkill736todayMITA185Claude Code, Codex
developing-the-cliPostHog/posthogSkill41ktodaynoneA185Claude Code, Codex
solana-toolkit-guidenirholas/three.wsSkill289todayApache-2.0A50Claude Code, Codex