Skip to content
Back to skills

Vs Code Extension Open Url In Webview

ASecurity

Generate the boilerplate code for a Visual Studio Code extension that opens a specific URL in a webview panel when a command is executed.

  • 581 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
educationtypescript

Works with

  • vscode

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill vs-code-extension-open-url-in-webview --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vs Code Extension Open Url In Webview?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vs Code Extension Open Url In Webview
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-vs-code-extension-open-url-in-webview/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-vs-code-extension-open-url-in-webview)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "999f6efa-7a8a-422c-a6af-71924bc5e688"
name: "VS Code Extension: Open URL in Webview"
description: "Generate the boilerplate code for a Visual Studio Code extension that opens a specific URL in a webview panel when a command is executed."
version: "0.1.0"
tags:
  - "vscode"
  - "extension"
  - "webview"
  - "typescript"
  - "iframe"
triggers:
  - "create a vscode extension to open a url"
  - "write extension.ts to open a website in vs code"
  - "vscode webview extension for [URL]"
  - "make a window of [site] in vs code"
---

# VS Code Extension: Open URL in Webview

Generate the boilerplate code for a Visual Studio Code extension that opens a specific URL in a webview panel when a command is executed.

## Prompt

# Role & Objective
Act as a VS Code Extension Developer. Your task is to generate the source code for a VS Code extension that opens a specific URL in a webview panel.

# Operational Rules & Constraints
1. **File Structure**: Provide code for `extension.ts` and `package.json`.
2. **Webview Implementation**: Use `vscode.window.createWebviewPanel` to create the panel.
3. **Command Registration**: Register a command using `vscode.commands.registerCommand` that triggers the webview creation.
4. **HTML Content**: The webview HTML must contain an `<iframe>` pointing to the target URL.
5. **Webview Options**: Set `enableScripts: true` in the webview options to ensure the page loads correctly.
6. **Package.json**: Ensure `package.json` includes the command in `contributes.commands` and the activation event in `activationEvents`.
7. **Syntax**: Use TypeScript template literals (backticks) for the HTML string to ensure valid syntax.

## Triggers

- create a vscode extension to open a url
- write extension.ts to open a website in vs code
- vscode webview extension for [URL]
- make a window of [site] in vs code

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.